/* ==========================================================================
   Public landing page — HTML + CSS only (no JavaScript; CSP blocks it).
   Modals open via :target (#download, #demo, #thanks) and close via #close.
   All motion lives inside @media (prefers-reduced-motion: no-preference).
   ========================================================================== */

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #f0f3fa;
  --ink: #0b1324;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e8f2;
  --primary: #4f46e5;
  --primary-ink: #ffffff;
  --accent: #06b6d4;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, .18);

  /* page-local tokens (derived, AA-safe for text) */
  --grad-text: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #0891b2 90%, #4f46e5 100%);
  --grad-btn: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #4f46e5 100%);
  --grad-deep: linear-gradient(135deg, #3730a3 0%, #6d28d9 50%, #0e7490 100%);
  --danger-ink: #b91c1c;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .9);
  --ring: 0 0 0 4px rgba(79, 70, 229, .16);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body:has(.modal:target) { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: var(--primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- background decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(79, 70, 229, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
}
.orb--1 { width: 520px; height: 520px; top: -180px; left: -140px; background: radial-gradient(circle, #a5b4fc, transparent 70%); }
.orb--2 { width: 460px; height: 460px; top: 8%; right: -160px; background: radial-gradient(circle, #67e8f9, transparent 70%); opacity: .4; }
.orb--3 { width: 420px; height: 420px; bottom: -200px; left: 30%; background: radial-gradient(circle, #c4b5fd, transparent 70%); opacity: .35; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }

.btn--primary {
  color: var(--primary-ink);
  background: var(--grad-btn);
  background-size: 200% 100%;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { box-shadow: 0 14px 32px rgba(79, 70, 229, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }

.btn--ghost {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: #c7cbf6; color: var(--primary); }

.btn--light { color: #3730a3; background: #fff; box-shadow: 0 10px 26px rgba(11, 19, 36, .22); }
.btn--light:hover { background: #f5f3ff; }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

@media (max-width: 420px) {
  .btn--lg { white-space: normal; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(227, 232, 242, .8);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  min-width: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.main-nav a:hover { color: var(--primary); background: rgba(79, 70, 229, .07); }
.header-inner > .btn { margin-left: 8px; }

@media (max-width: 759px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; gap: 12px; }
  .header-inner > .btn { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: #4338ca;
  font-weight: 600;
  font-size: .85rem;
}
.eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 4.6vw + .6rem, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.grad-text {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  margin-top: 20px;
  max-width: 40rem;
  color: var(--ink-2);
  font-size: clamp(1.02rem, .4vw + .95rem, 1.18rem);
}
.hero-lead strong { color: var(--ink); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-ctas--center { justify-content: center; }
@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { color: #059669; }

/* ---------- hero visual: animated process flow ---------- */
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% -6% 4%;
  border-radius: 32px;
  background: var(--grad);
  filter: blur(48px);
  opacity: .22;
  z-index: -1;
}

.flow-card {
  position: relative;
  padding: 16px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg), var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .45;
  pointer-events: none;
}
@media (min-width: 520px) { .flow-card { padding: 20px 22px 24px; } }

.flow-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.dots i:nth-child(1) { background: #fca5a5; }
.dots i:nth-child(2) { background: #fcd34d; }
.dots i:nth-child(3) { background: #6ee7b7; }
.flow-card-title {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .1);
  color: #047857;
  font-size: .72rem;
  font-weight: 700;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  grid-template-rows: auto 34px auto 34px auto;
  grid-template-areas:
    "a  l1 b"
    ".  .  l2"
    "d  l3 c"
    "l4 .  ."
    "e  .  m";
}
@media (max-width: 420px) {
  .flow { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); grid-template-rows: auto 26px auto 26px auto; }
}

.node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 16px rgba(15, 23, 42, .06);
}
.node-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(79, 70, 229, .09);
  color: var(--primary);
}
.node-ico .icon { width: 18px; height: 18px; }
.node--done .node-ico { background: rgba(16, 185, 129, .12); color: #047857; }
.node-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.node-text b { font-size: .84rem; font-weight: 700; color: var(--ink); }
.node-text small {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .node { padding: 9px; gap: 8px; }
  .node-ico { width: 28px; height: 28px; border-radius: 8px; }
  .node-text b { font-size: .76rem; }
}

/* connectors */
.link { position: relative; }
.link::before {
  content: "";
  position: absolute;
  border-radius: 2px;
}
.link--h::before {
  left: -2px; right: -2px; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, #a5b4fc 0 6px, transparent 6px 11px);
}
.link--v::before {
  top: -2px; bottom: -2px; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(180deg, #a5b4fc 0 6px, transparent 6px 11px);
}
.pulse {
  display: none;
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .18), 0 0 14px rgba(124, 58, 237, .7);
}
.link--h .pulse { top: 50%; margin-top: -5px; left: 0; }
.link--v .pulse { left: 50%; margin-left: -5px; top: 0; }

.metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(6, 182, 212, .1));
  border: 1px solid rgba(79, 70, 229, .14);
}
.metric-label { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 4px; }
.bars i {
  flex: 1;
  max-width: 10px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: var(--grad);
  transform-origin: bottom;
}

/* ---------- sections ---------- */
.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section--alt {
  background: linear-gradient(180deg, rgba(240, 243, 250, 0) 0%, rgba(232, 236, 252, .75) 50%, rgba(240, 243, 250, 0) 100%);
}

.section-head { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin: 0; text-align: left; }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 2.6vw + .8rem, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 1.06rem; }
.section-head--left .btn { margin-top: 24px; }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4338ca;
}
.kicker::before { content: "// "; color: #0e7490; }

/* features */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.feature-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
}
.feature-card:hover { border-color: #c7cbf6; box-shadow: var(--shadow-lg); }
.feature-card:hover::after { opacity: 1; }
.feature-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .28);
}
.feature-ico .icon { width: 24px; height: 24px; }
.feature-card h3 { margin-top: 20px; font-size: 1.14rem; font-weight: 700; }
.feature-card p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; }

/* how it works */
.steps {
  position: relative;
  display: grid;
  gap: 28px;
  counter-reset: none;
}
.steps::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, #a5b4fc, #c4b5fd 50%, #67e8f9);
}
.step {
  position: relative;
  padding-left: 72px;
  min-height: 48px;
}
.step-num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: .9rem;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 22px rgba(79, 70, 229, .3);
}
.step h3 { font-size: 1.12rem; font-weight: 700; padding-top: 10px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: .96rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .steps::before {
    left: 10%; right: 10%; top: 23px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, #a5b4fc, #c4b5fd 50%, #67e8f9);
  }
  .step { padding-left: 0; text-align: center; }
  .step-num { position: relative; margin: 0 auto; }
  .step h3 { padding-top: 20px; }
}

/* stats band */
.stats-band { padding: 8px 0 24px; }
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 28px;
  border-radius: 28px;
  background: var(--grad-deep);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.stats-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 70%);
}
@media (min-width: 420px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 48px 44px; } }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-size: clamp(2rem, 3vw + 1rem, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label { color: rgba(255, 255, 255, .88); font-size: .95rem; font-weight: 500; }
.stats-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: .82rem; }

/* faq */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-list { display: grid; gap: 12px; }
.faq {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.faq[open] { border-color: #c7cbf6; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 32px rgba(79, 70, 229, .1); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { color: var(--primary); }
.faq-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--primary);
}
.faq-toggle::after { transform: rotate(90deg); }
.faq[open] .faq-toggle { background: var(--grad); }
.faq[open] .faq-toggle::before { background: #fff; }
.faq[open] .faq-toggle::after { background: #fff; transform: rotate(0deg); }
.faq p { padding: 0 20px 20px; color: var(--ink-2); }

/* final CTA */
.cta-band { padding: 24px 0 88px; }
.cta-card {
  position: relative;
  padding: 56px 24px;
  border-radius: 32px;
  background: var(--grad-deep);
  background-size: 200% 200%;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.cta-card::before, .cta-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
}
.cta-card::before { width: 340px; height: 340px; left: -120px; top: -160px; background: rgba(103, 232, 249, .45); }
.cta-card::after { width: 300px; height: 300px; right: -100px; bottom: -160px; background: rgba(196, 181, 253, .55); }
.cta-card h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw + .8rem, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-card p { max-width: 38rem; margin: 16px auto 0; color: rgba(255, 255, 255, .9); font-size: 1.06rem; }
.cta-card :focus-visible { outline-color: #fff; }
@media (min-width: 760px) { .cta-card { padding: 72px 48px; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }
.copyright { color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .copyright { margin-left: auto; } }

/* ---------- modals (:target) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.modal:target { visibility: visible; opacity: 1; pointer-events: auto; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 36, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: default;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 20px 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(11, 19, 36, .3), 0 0 0 1px rgba(79, 70, 229, .08);
}
.modal-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--grad);
}
@media (min-width: 520px) { .modal-panel { padding: 36px 32px 28px; } }
.modal-panel--center { text-align: center; max-width: 440px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--surface-2);
  text-decoration: none;
}
.modal-close:hover { color: var(--ink); background: #e5e9f5; }
.modal-close .icon { width: 20px; height: 20px; }

.modal-head { padding-right: 44px; margin-bottom: 22px; }
.modal-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .28);
}
.modal-ico .icon { width: 24px; height: 24px; }
.modal-head h2, .modal-panel--center h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.modal-head p { margin-top: 8px; color: var(--ink-2); font-size: .97rem; }

/* ---------- forms ---------- */
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* >= 16px prevents iOS zoom */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #94a3b8; }
.field input:hover { border-color: #cbd2e1; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"],
.field input:user-invalid { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus,
.field input:user-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.field input[type="date"], .field input[type="time"] { min-width: 0; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field-hint { color: var(--muted); font-size: .8rem; }
.field-error {
  display: flex;
  gap: 6px;
  color: var(--danger-ink);
  font-size: .84rem;
  font-weight: 600;
}
.field-error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--danger-ink); color: #fff; font-size: .7rem; font-weight: 800; }

.form-row { display: grid; gap: 16px; }
@media (min-width: 440px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 500;
}
.alert .icon { margin-top: 2px; }
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.lead-form .btn--block { margin-top: 4px; }
.privacy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.privacy-note .icon { margin-top: 2px; width: 14px; height: 14px; }

/* thank-you */
.success-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, .12), 0 14px 30px rgba(16, 185, 129, .35);
}
.success-ico .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.thanks-msg { margin-top: 12px; color: var(--ink-2); font-size: 1.02rem; }
.thanks-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .85rem;
}
.modal-panel--center > .btn { margin-top: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Motion — only for people who haven't asked to reduce it
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* load-in */
  .reveal { animation: fade-up .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }

  /* scroll-in for cards where supported (progressive enhancement) */
  @supports (animation-timeline: view()) {
    .feature-card, .step, .stat, .faq {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }

  /* ambient background */
  .orb--1 { animation: drift-1 22s ease-in-out infinite alternate; }
  .orb--2 { animation: drift-2 26s ease-in-out infinite alternate; }
  .orb--3 { animation: drift-3 30s ease-in-out infinite alternate; }

  /* gradients that slowly move */
  .grad-text, .metric-value { animation: grad-shift 8s ease-in-out infinite alternate; background-size: 200% 100%; }
  .logo-mark, .stats-grid, .cta-card { animation: grad-shift 14s ease-in-out infinite alternate; }
  .eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
  }
  .live-dot { animation: blink 1.6s ease-in-out infinite; }

  /* buttons & cards */
  .btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, background-position .5s ease, border-color .2s ease, color .2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn--primary:hover { background-position: 100% 0; }
  .btn .icon:last-child:not(:first-child) { transition: transform .2s ease; }
  .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
  .main-nav a, .footer-nav a, .modal-close { transition: color .2s ease, background-color .2s ease; }
  .feature-card { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease; }
  .feature-card:hover { transform: translateY(-6px); }
  .feature-card::after { transition: opacity .3s ease; }
  .feature-ico { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .feature-card:hover .feature-ico { transform: rotate(-6deg) scale(1.06); }
  .faq { transition: border-color .2s ease, box-shadow .2s ease; }
  .faq-toggle::after { transition: transform .25s ease; }
  .field input { transition: border-color .15s ease, box-shadow .15s ease; }

  /* hero flow animation (5s loop) */
  .flow-card { animation: float 7s ease-in-out infinite; }
  .link--h::before { animation: dash-x 1.2s linear infinite; }
  .link--v::before { animation: dash-y 1.2s linear infinite; }
  .link--rev::before { animation-direction: reverse; }
  .pulse { display: block; opacity: 0; animation: travel-x 5s cubic-bezier(.45, 0, .55, 1) infinite; }
  .link--v .pulse { animation-name: travel-y; }
  .link--rev .pulse { animation-name: travel-x-rev; }
  .pulse--1 { animation-delay: 0s; }
  .pulse--2 { animation-delay: 1.25s; }
  .pulse--3 { animation-delay: 2.5s; }
  .pulse--4 { animation-delay: 3.75s; }
  .node { animation: lit 5s ease-out infinite; }
  .node--1 { animation-delay: -.1s; }
  .node--2 { animation-delay: 1s; }
  .node--3 { animation-delay: 2.25s; }
  .node--4 { animation-delay: 3.5s; }
  .node--5 { animation-delay: 4.75s; }
  .bars i { animation: grow 2.4s cubic-bezier(.2, .7, .2, 1) infinite alternate; }
  .bars i:nth-child(2) { animation-delay: .15s; }
  .bars i:nth-child(3) { animation-delay: .3s; }
  .bars i:nth-child(4) { animation-delay: .45s; }
  .bars i:nth-child(5) { animation-delay: .6s; }

  /* modal open: fade + scale-in */
  .modal { transition: opacity .25s ease, visibility 0s linear .25s; }
  .modal:target { transition: opacity .25s ease, visibility 0s linear 0s; }
  .modal-panel { transform: translateY(14px) scale(.96); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .modal:target .modal-panel { transform: none; }
  .modal:target .success-ico { animation: pop .6s cubic-bezier(.2, .9, .3, 1.4) .15s both; }
}

@media print {
  .reveal, .feature-card, .step, .stat, .faq { animation: none !important; opacity: 1 !important; transform: none !important; }
  .bg-decor, .site-header, .modal { display: none !important; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift-1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift-2 { to { transform: translate(-100px, 120px) scale(.9); } }
@keyframes drift-3 { to { transform: translate(-80px, -60px) scale(1.15); } }
@keyframes grad-shift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .8; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}
@keyframes blink { 50% { opacity: .35; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes dash-x { to { background-position: 22px 0; } }
@keyframes dash-y { to { background-position: 0 22px; } }
@keyframes travel-x {
  0%        { left: 0; opacity: 0; }
  3%        { opacity: 1; }
  20%       { left: calc(100% - 10px); opacity: 1; }
  24%, 100% { left: calc(100% - 10px); opacity: 0; }
}
@keyframes travel-x-rev {
  0%        { left: calc(100% - 10px); opacity: 0; }
  3%        { opacity: 1; }
  20%       { left: 0; opacity: 1; }
  24%, 100% { left: 0; opacity: 0; }
}
@keyframes travel-y {
  0%        { top: 0; opacity: 0; }
  3%        { opacity: 1; }
  20%       { top: calc(100% - 10px); opacity: 1; }
  24%, 100% { top: calc(100% - 10px); opacity: 0; }
}
@keyframes lit {
  0%, 22%, 100% { border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 16px rgba(15, 23, 42, .06); }
  4%            { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12), 0 10px 26px rgba(79, 70, 229, .25); }
}
@keyframes grow {
  from { transform: scaleY(.55); }
  to   { transform: scaleY(1); }
}
@keyframes pop {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
