/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --ink: #0b1120;
  --ink-2: #3b4658;
  --ink-3: #697588;
  --line: #e6eaf2;
  --brand: #5b8cff;
  --brand-2: #22d3a6;
  --brand-ink: #2f66ff;
  --dark: #0b1120;
  --dark-2: #111a2e;
  --dark-line: #1e2a44;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 17, 32, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 17, 32, .35);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--solid {
  background: linear-gradient(135deg, var(--brand-ink), var(--brand));
  color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 102, 255, .6);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(47, 102, 255, .7); }
.btn--ghost {
  background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-ink), var(--brand-2)); color: #fff;
}
.brand__name { font-size: 18px; }
.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }
.nav__burger { display: none; margin-left: auto; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; }
.hero__glow {
  position: absolute; inset: -30% 0 auto 0; height: 620px; pointer-events: none;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(91, 140, 255, .22), transparent 60%),
    radial-gradient(50% 50% at 85% 0%, rgba(34, 211, 166, .18), transparent 60%);
  filter: blur(10px);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-muted); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(34,211,166,.2); }
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -.03em;
  font-weight: 800; margin-bottom: 20px;
}
.grad {
  background: linear-gradient(120deg, var(--brand-ink), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 22px; font-size: 14px; color: var(--ink-3); font-weight: 500; }

/* Demo window */
.demo { position: relative; }
.demo__window {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo__titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--bg-muted); border-bottom: 1px solid var(--line);
}
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl--r { background: #ff5f57; } .tl--y { background: #febc2e; } .tl--g { background: #28c840; }
.demo__title { margin-left: 10px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.demo__body { padding: 28px 26px; min-height: 220px; font-size: 18px; color: var(--ink); position: relative; }
.demo__typed { white-space: pre-wrap; }
.demo__caret {
  display: inline-block; width: 2px; height: 22px; background: var(--brand-ink);
  vertical-align: text-bottom; animation: blink 1s steps(1) infinite; margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

.pill {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.pill__label { font-size: 14px; font-weight: 500; color: #cdd6ea; }
.pill__label kbd {
  font-family: var(--mono); font-size: 12px; background: #1e2a44;
  padding: 2px 7px; border-radius: 6px; color: #fff;
}
.pill__wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.pill__wave span {
  width: 3px; height: 6px; border-radius: 3px;
  background: linear-gradient(var(--brand-2), var(--brand));
  animation: wave 1s ease-in-out infinite;
}
.pill__wave span:nth-child(2){animation-delay:.1s}.pill__wave span:nth-child(3){animation-delay:.2s}
.pill__wave span:nth-child(4){animation-delay:.3s}.pill__wave span:nth-child(5){animation-delay:.4s}
.pill__wave span:nth-child(6){animation-delay:.5s}.pill__wave span:nth-child(7){animation-delay:.6s}
.pill__wave span:nth-child(8){animation-delay:.7s}.pill__wave span:nth-child(9){animation-delay:.8s}
.pill__wave span:nth-child(10){animation-delay:.9s}
@keyframes wave { 0%,100%{height:6px} 50%{height:20px} }

/* ===== Trust bar ===== */
.trustbar { border-block: 1px solid var(--line); background: var(--bg-muted); }
.trustbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: 14px; color: var(--ink-3); }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--dark); color: #eaf0ff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700;
  color: var(--brand-ink); margin-bottom: 12px;
}
.section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.12; }
.sub { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.section--dark .sub { color: #9fb0d0; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); position: relative;
}
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-ink), var(--brand-2));
}
.step h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--ink-2); font-size: 15.5px; }
kbd {
  font-family: var(--mono); font-size: .85em; background: var(--bg-muted);
  border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 7px; border-radius: 6px;
}

/* Privacy */
.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.privacy .kicker { color: var(--brand-2); }
.privacy h2 { color: #fff; }
.checklist { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: #cdd6ea; font-size: 16px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--dark);
  background: var(--brand-2);
}
.privacy__card {
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 34px 30px;
}
.privacy__lock { font-size: 32px; margin-bottom: 18px; }
.privacy__quote { font-size: 18px; line-height: 1.5; color: #eaf0ff; }
.privacy__meta { margin-top: 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); font-weight: 700; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5def0; }
.card__icon { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--ink-2); font-size: 15px; }

/* Models */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.model {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; position: relative;
}
.model--primary { border-color: var(--brand); box-shadow: 0 20px 40px -22px rgba(47,102,255,.5); }
.model__tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--brand-ink);
  background: rgba(47,102,255,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.model__tag--alt { color: var(--ink-2); background: var(--bg-muted); }
.model h3 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px; }
.model__desc { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.model__list { list-style: none; display: grid; gap: 10px; }
.model__list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.model__list li::before { content: "◆"; position: absolute; left: 0; color: var(--brand-2); font-size: 12px; top: 2px; }
.models__note { text-align: center; color: var(--ink-3); font-size: 14.5px; margin-top: 30px; max-width: 640px; margin-inline: auto; }

/* CTA */
.section--cta {
  background: linear-gradient(135deg, var(--dark), #10203f);
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); }
.section--cta .sub { color: #9fb0d0; max-width: 560px; margin-inline: auto; }
.cta__actions { display: flex; gap: 14px; justify-content: center; margin: 30px 0 20px; flex-wrap: wrap; }
.section--cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.section--cta .btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.cta__fine { color: #7f8fb0; font-size: 14px; max-width: 520px; margin-inline: auto; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq__item summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--brand-ink); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--ink-2); padding: 0 0 20px; font-size: 15.5px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: var(--bg-muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { font-weight: 800; letter-spacing: -.02em; }
.footer__tag { color: var(--ink-3); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.footer__links a:hover { color: var(--ink); }
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 13.5px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .privacy { grid-template-columns: 1fr; gap: 32px; }
  .steps, .grid, .models { grid-template-columns: 1fr; }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 60px; }
  .demo__body { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
