:root {
  --navy: #141d38;
  --navy-2: #133b73;
  --cyan: #43baff;
  --cyan-dark: #2aa3ea;
  --heading: #1b1d21;
  --body: #6d6d6d;
  --line: #e8e8e8;
  --bg: #ffffff;
  --tint: #f6f8fb;
  --font: "Nunito Sans", sans-serif;
  --display: Montserrat, sans-serif;
  --header-h: 86px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ai-accent: #2ec4b6;
  --ai-accent-rgb: 46, 196, 182;
  --ai-gradient-start: #3db8ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-2);
  text-decoration: none;
}

a:hover {
  color: var(--cyan-dark);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--navy-2);
  background: #eef6ff;
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 200;
  background: var(--cyan);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.label {
  margin: 0 0 10px;
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-lg {
  padding: 16px 32px;
}

.btn-cyan {
  background: var(--cyan);
  color: #fff;
}

.btn-cyan:hover {
  background: var(--cyan-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy-2);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cyan-dark);
}

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 16px;
}

.topbar a {
  color: #fff;
}

.topbar a:hover {
  color: var(--cyan);
}

.topbar-social,
.topbar-contact {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar-social a {
  font-weight: 800;
  font-size: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-fallback {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy-2);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  color: var(--heading);
}

.nav a:hover {
  color: var(--navy-2);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--heading);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(20, 29, 56, 0.92) 0%, rgba(19, 59, 115, 0.78) 55%, rgba(20, 29, 56, 0.7) 100%),
    #141d38;
  color: #dbe7f3;
  padding: 92px 0 80px;
}

.hero .label {
  color: var(--cyan);
}

.hero .lead {
  font-size: 1.12rem;
  max-width: 38em;
  color: #d5e0ee;
}

.hero .lead strong {
  color: #fff;
}

.hero .lead a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero .lead a:hover {
  color: var(--cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.hero-note {
  color: rgba(213, 224, 238, 0.85);
  font-size: 0.95rem;
  max-width: 36em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-facts {
  display: grid;
  gap: 14px;
}

.hero-facts article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
}

.hero-facts span {
  display: block;
  color: var(--cyan);
  font-family: var(--display);
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-facts h3 {
  color: #fff;
  margin-bottom: 6px;
}

.hero-facts p {
  margin: 0;
  color: #c9d6e6;
  font-size: 0.94rem;
}

.pillars {
  background: var(--navy);
  color: #c9d6e6;
  padding: 72px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillars h2 {
  color: #fff;
  font-size: 1.35rem;
}

.pillars .label {
  color: var(--cyan);
}

.pillars p {
  color: #b7c5d6;
}

.section {
  padding: 88px 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0 28px;
}

.about-card {
  background: var(--navy);
  color: #c9d6e6;
  padding: 32px;
}

.about-card h3,
.about-card .label {
  color: #fff;
}

.about-card .label {
  color: var(--cyan);
}

.about-card a {
  color: var(--cyan);
}

.about-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.about-card li {
  margin: 8px 0;
}

.feature-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.security-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid article,
.security-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}

.section-tint .feature-grid article,
.section-tint .security-grid article {
  box-shadow: 0 10px 30px rgba(20, 29, 56, 0.04);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  border-top: 3px solid var(--cyan);
  padding: 20px 0 0;
}

.steps span {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  color: var(--cyan-dark);
  margin-bottom: 10px;
}

.faq-wrap {
  max-width: 760px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--heading);
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--cyan-dark);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "–";
}

.cta {
  background: var(--navy);
  color: #c9d6e6;
  padding: 88px 0;
  text-align: center;
}

.cta-inner {
  max-width: 720px;
}

.cta h2 {
  color: #fff;
}

.cta .label {
  color: var(--cyan);
}

.cta .hero-actions {
  justify-content: center;
}

.nav a.is-current {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.page-hero {
  padding: 64px 0 56px;
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px 0;
}

.legal-toc p {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal-toc a:hover {
  color: var(--cyan-dark);
}

.legal {
  max-width: 760px;
}

.legal h2 {
  margin: 2.2em 0 12px;
  font-size: 1.35rem;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal h3 {
  margin: 1.4em 0 8px;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--body);
}

.legal ul,
.legal ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.legal li {
  margin: 0.35em 0;
}

.legal a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  margin: 0 0 1.4em;
  color: #8a8a8a;
  font-size: 0.92rem;
}

.legal-callout {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  background: var(--tint);
  border-left: 3px solid var(--cyan);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: #0e1528;
  color: #9aa8bb;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
}

.site-footer a {
  color: #c9d6e6;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 0.85rem;
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bar nav {
  display: flex;
  gap: 16px;
}

.book-call {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 40;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--navy-2);
  color: #fff;
  padding: 18px 10px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-call:hover {
  background: var(--navy);
  color: #fff;
}

#ai-chat {
  font-family: Outfit, system-ui, sans-serif;
}

.ai-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ai-gradient-start) 0%, var(--ai-accent) 78%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 80;
  box-shadow: 0 12px 36px rgba(var(--ai-accent-rgb), 0.38), 0 4px 14px rgba(0, 0, 0, 0.28);
}

.ai-chat-toggle__glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ai-accent-rgb), 0.5), transparent 70%);
  animation: ai-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.ai-chat-toggle__icon {
  position: relative;
  z-index: 1;
}

.ai-chat-toggle.is-open {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.9; }
}

.ai-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 100px;
  width: min(400px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #121c30 0%, #0c1424 42%);
  border-radius: 18px;
  border: 1px solid rgba(243, 246, 251, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 81;
  color: #f3f6fb;
}

.ai-chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(243, 246, 251, 0.12);
  background: rgba(12, 20, 36, 0.92);
}

.ai-chat-header__brand {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.ai-chat-avatar,
.ai-message__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ai-accent);
  background: rgba(var(--ai-accent-rgb), 0.14);
  border: 1px solid rgba(var(--ai-accent-rgb), 0.28);
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.ai-chat-title {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  color: #fff;
}

.ai-chat-header__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ai-accent);
  background: rgba(var(--ai-accent-rgb), 0.14);
}

.ai-chat-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-accent);
  animation: ai-dot 1.8s ease-in-out infinite;
}

@keyframes ai-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ai-chat-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #b7c5d9;
}

.ai-chat-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b7c5d9;
  cursor: pointer;
}

.ai-chat-close:hover {
  background: #1a2740;
  color: #fff;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: ai-msg-in 0.28s var(--ease) both;
}

@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ai-message--assistant {
  padding-right: 8%;
}

.ai-message--user {
  justify-content: flex-end;
  padding-left: 12%;
}

.ai-message__avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ai-message--user .ai-message__avatar {
  display: none;
}

.ai-message__content {
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ai-message--assistant .ai-message__content.ai-md {
  white-space: normal;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  max-width: 100%;
}

.ai-md-live {
  display: inline;
  white-space: inherit;
  min-height: 0;
}

.ai-md > .ai-md-live {
  min-height: 1.2em;
}

.ai-md-live::after {
  content: "▍";
  color: #43baff;
  margin-left: 1px;
  animation: ai-caret 1s step-end infinite;
}

@keyframes ai-caret {
  50% { opacity: 0; }
}

.ai-md-h {
  margin: 0.15rem 0 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  animation: ai-fade-in 0.35s ease both;
}

.ai-md-h1 { font-size: 1.15rem; }
.ai-md-h2 { font-size: 1.02rem; color: #e8eef8; }
.ai-md-h3 { font-size: 0.95rem; color: #d5deeb; }

.ai-md-p {
  margin: 0;
  color: #f4f7fb;
}

.ai-md-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.ai-md-list li {
  padding-left: 0.15rem;
}

.ai-md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(12, 20, 36, 0.65);
  border: 1px solid rgba(243, 246, 251, 0.12);
  border-radius: 6px;
  padding: 0.08em 0.35em;
}

.ai-md-pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(67, 186, 255, 0.22);
  border-radius: 10px;
  animation: ai-fade-in 0.3s ease both;
}

.ai-md-codeblock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d7ecff;
  white-space: pre;
}

.ai-md-link {
  color: #43baff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-md-table-wrap {
  overflow-x: auto;
}

.ai-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.ai-md-table th,
.ai-md-table td {
  border: 1px solid rgba(243, 246, 251, 0.14);
  padding: 6px 8px;
  text-align: left;
}

.ai-md-table th {
  background: rgba(67, 186, 255, 0.12);
}

.ai-md-quote {
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-left: 3px solid rgba(67, 186, 255, 0.55);
  background: rgba(67, 186, 255, 0.08);
  color: #dce7f4;
  border-radius: 0 8px 8px 0;
}

.ai-md-hr {
  border: 0;
  height: 1px;
  margin: 0.15rem 0;
  background: rgba(243, 246, 251, 0.22);
}

.ai-md-tok-kw { color: #7dd3fc; }
.ai-md-tok-str { color: #86efac; }
.ai-md-tok-cmt { color: #8b9bb4; font-style: italic; }
.ai-md-tok-num { color: #fcd34d; }

.ai-step {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: rgba(12, 20, 36, 0.45);
  border: 1px solid rgba(67, 186, 255, 0.2);
  animation: ai-step-in 0.4s ease both;
}

.ai-step__head {
  font-family: Montserrat, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #43baff;
}

.ai-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-step__check {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7dffc3;
  animation: ai-fade-in 0.35s ease both;
}

.ai-step.is-complete {
  border-color: rgba(125, 255, 195, 0.28);
}

.ai-callout {
  display: grid;
  gap: 0.25rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(243, 246, 251, 0.12);
  animation: ai-fade-in 0.3s ease both;
}

.ai-callout__label {
  font-size: 0.8rem;
}

.ai-callout--tip { background: rgba(67, 186, 255, 0.12); border-color: rgba(67, 186, 255, 0.28); }
.ai-callout--warning { background: rgba(250, 204, 21, 0.12); border-color: rgba(250, 204, 21, 0.35); }
.ai-callout--note { background: rgba(243, 246, 251, 0.06); }
.ai-callout--success { background: rgba(46, 196, 182, 0.14); border-color: rgba(125, 255, 195, 0.3); }

@keyframes ai-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes ai-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-md-live::after,
  .ai-step,
  .ai-md-h,
  .ai-callout,
  .ai-md-pre {
    animation: none;
  }
}

.ai-message--assistant .ai-message__content {
  background: #243552;
  border: 1px solid rgba(243, 246, 251, 0.1);
  border-bottom-left-radius: 5px;
  color: #ffffff;
}

.ai-message--user .ai-message__content {
  background: rgba(46, 196, 182, 0.22);
  border: 1px solid rgba(46, 196, 182, 0.35);
  border-bottom-right-radius: 5px;
  color: #ffffff;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 36px;
}

.ai-chips button {
  border: 1px solid rgba(46, 196, 182, 0.35);
  background: rgba(46, 196, 182, 0.1);
  color: #f3f6fb;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ai-chat-typing {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 14px 10px;
}

.ai-chat-typing[hidden] {
  display: none;
}

.ai-chat-typing__bubble {
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  background: #243552;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7c5d9;
  animation: ai-typing 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes ai-typing {
  0%, 80%, 100% { opacity: 0.35; transform: none; }
  40% { opacity: 1; transform: translateY(-3px); }
}

.ai-chat-footer {
  padding: 10px 12px 12px;
  background: rgba(12, 20, 36, 0.96);
  border-top: 1px solid rgba(243, 246, 251, 0.12);
}

.ai-chat-composer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 12px;
  border-radius: 14px;
  background: #182640;
  border: 1px solid rgba(243, 246, 251, 0.12);
}

.ai-chat-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.ai-chat-send {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--ai-gradient-start) 0%, var(--ai-accent) 78%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ai-chat-disclaimer {
  margin: 8px 2px 0;
  font-size: 11px;
  color: rgba(183, 197, 217, 0.85);
}

.ai-chat-disclaimer a {
  color: #9fd4ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-chat-disclaimer a:hover {
  color: #fff;
}

.ai-chat-error {
  margin: 0 14px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.25);
  color: #fecaca;
  border: 1px solid rgba(254, 202, 202, 0.25);
  font-size: 0.84rem;
}

.ai-chat-error[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .pillars-grid,
  .about-grid,
  .feature-grid,
  .steps,
  .security-grid,
  .footer-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    padding: 0 0 12px;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-actions .btn {
    display: none;
  }

  .book-call {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero,
  .page-hero,
  .section,
  .cta {
    padding: 56px 0;
  }

  .ai-chat-panel {
    right: 10px;
    bottom: 90px;
    height: min(70vh, 560px);
  }
}
