/* ============================================================
   Face Scan — marketing site
   Dark futuristic / neon. Tokens mirror docs/DESIGN_TOKENS.md
   ============================================================ */

:root {
  /* Palette */
  --bg: #05060A;
  --bg-elev: #0B0D16;
  --surface: #12162B;
  --surface-2: #1A1F3A;
  --stroke: #232A4D;
  --neon-cyan: #22E4FF;
  --neon-violet: #8B5CFF;
  --neon-mint: #2BFFC6;
  --neon-pink: #FF3B6B;
  --neon-amber: #FFC24B;
  --text: #F5F7FF;
  --text-dim: #9AA3C7;
  --text-muted: #5B6485;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #22E4FF 0%, #8B5CFF 100%);
  --grad-live: linear-gradient(135deg, #2BFFC6 0%, #22E4FF 100%);
  --grad-danger: linear-gradient(135deg, #FF3B6B 0%, #8B5CFF 100%);

  /* Glow / elevation */
  --glow-neon: 0 0 40px rgba(34, 228, 255, .35), 0 0 80px rgba(139, 92, 255, .20);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, .55);

  /* Radii */
  --r-chip: 10px;
  --r-input: 14px;
  --r-card: 20px;
  --r-modal: 28px;
  --r-pill: 999px;

  /* Type */
  --font-ui: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 68px;
}

/* ----------------------------- Reset ----------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code, pre, .mono { font-family: var(--font-mono); }
::selection { background: rgba(34, 228, 255, .28); color: #fff; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--surface-2); color: var(--text);
  padding: 10px 16px; border-radius: var(--r-chip);
  border: 1px solid var(--stroke); transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

/* --------------------------- Ambience --------------------------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .14; }
.glow--cyan { width: 60vw; height: 60vw; background: var(--neon-cyan); top: -18vw; left: -14vw; }
.glow--violet { width: 62vw; height: 62vw; background: var(--neon-violet); bottom: -22vw; right: -16vw; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(35, 42, 77, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 42, 77, .35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5, 6, 10, .6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--stroke); background: rgba(5, 6, 10, .82); }
.nav__inner { display: flex; align-items: center; gap: 24px; width: min(1180px, 92vw); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(34, 228, 255, .5)); }
.brand__name { font-size: 17px; }

.nav__links { display: flex; gap: 28px; margin-left: 8px; }
.nav__links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; position: relative; transition: color .2s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-primary); border-radius: 2px; transition: width .25s var(--ease-spring);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(11, 13, 22, .96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
  display: none; flex-direction: column; gap: 4px; padding: 16px 4vw 22px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a { padding: 12px 8px; color: var(--text-dim); border-radius: var(--r-chip); font-weight: 500; }
.nav__mobile a:hover { color: var(--text); background: var(--surface); }
.nav__mobile .btn { margin-top: 8px; justify-content: center; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: var(--r-pill);
  transition: transform .18s var(--ease-spring), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--grad-primary); color: #04121a; box-shadow: 0 8px 30px rgba(34, 228, 255, .28); }
.btn--primary:hover { box-shadow: var(--glow-neon); transform: translateY(-2px); }
.btn--primary:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.btn--ghost {
  background: rgba(26, 31, 58, .5); color: var(--text);
  border: 1px solid var(--stroke); backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--neon-cyan); color: #fff; transform: translateY(-2px); box-shadow: 0 0 24px rgba(34, 228, 255, .18); }

.btn__pulse {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--grad-primary); filter: blur(14px); opacity: .55;
  animation: btnPulse 2.4s ease-in-out infinite;
}
@keyframes btnPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.06); } }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--neon-mint);
  box-shadow: 0 0 0 0 rgba(43, 255, 198, .7); animation: liveDot 1.8s ease-out infinite;
}
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(43, 255, 198, .6); }
  70% { box-shadow: 0 0 0 9px rgba(43, 255, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 255, 198, 0); }
}

/* --------------------------- Copy minis --------------------------- */
.copy-mini {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--neon-cyan); border: 1px solid var(--stroke); border-radius: var(--r-chip);
  padding: 5px 10px; transition: all .2s ease;
}
.copy-mini:hover { border-color: var(--neon-cyan); background: rgba(34, 228, 255, .08); }
.copy-mini.is-copied { color: var(--neon-mint); border-color: var(--neon-mint); }

/* ============================ HERO ============================ */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 80px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-dim); background: rgba(26, 31, 58, .5);
  border: 1px solid var(--stroke); padding: 7px 14px; border-radius: var(--r-pill);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon-mint); box-shadow: 0 0 10px var(--neon-mint); }

.hero__title {
  font-size: clamp(38px, 6.2vw, 66px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.03em; margin: 22px 0 20px;
}
.grad-text {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__sub { font-size: clamp(16px, 2vw, 18.5px); color: var(--text-dim); max-width: 46ch; }
.hero__sub em { color: var(--neon-cyan); font-style: normal; font-weight: 600; }
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }

.hero__oneliner {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--bg-elev); border: 1px solid var(--stroke);
  border-radius: var(--r-input); padding: 12px 14px; max-width: 500px;
  font-size: 13.5px; overflow-x: auto;
}
.hero__oneliner code { white-space: nowrap; }
.tok-tag { color: var(--neon-violet); }
.tok-attr { color: var(--neon-cyan); }
.tok-str { color: var(--neon-mint); }

.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero__badges li {
  position: relative; padding-left: 20px; font-size: 13.5px; color: var(--text-dim);
}
.hero__badges li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px;
  border-radius: 3px; background: var(--grad-live); box-shadow: 0 0 8px rgba(43, 255, 198, .5);
}

/* --------- Scan-ring hero visual --------- */
.hero__visual { display: grid; place-items: center; }
.scanstage {
  position: relative; width: min(420px, 78vw); aspect-ratio: 1; display: grid; place-items: center;
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Three.js hero upgrade: canvas fills the stage; CSS motif hides once 3D loads. */
.scanstage__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease; z-index: 1; pointer-events: none;
}
.scanstage.has-3d { animation: none; }
.scanstage.has-3d .scanstage__canvas { opacity: 1; }
.scanstage.has-3d .ring,
.scanstage.has-3d .scanline,
.scanstage.has-3d .face { opacity: 0 !important; }
.scanstage.has-3d .scanstage__glow { opacity: .85; }

.scanstage__glow {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 228, 255, .22), transparent 65%);
  filter: blur(10px);
}
.ring { position: absolute; border-radius: 50%; }
.ring--sweep {
  inset: 4%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 228, 255, .05) 120deg, var(--neon-cyan) 300deg, var(--neon-violet) 355deg, transparent 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: spin 2.4s linear infinite;
  filter: drop-shadow(0 0 12px rgba(34, 228, 255, .45));
}
.ring--dashed {
  inset: 16%;
  border: 1.5px dashed rgba(139, 92, 255, .5);
  animation: spin 14s linear infinite reverse;
}
.ring--pulse {
  inset: 28%;
  border: 1.5px solid rgba(34, 228, 255, .35);
  box-shadow: inset 0 0 30px rgba(34, 228, 255, .18), 0 0 30px rgba(139, 92, 255, .15);
}
@keyframes spin { to { transform: rotate(360deg); } }

.scanline {
  position: absolute; left: 22%; right: 22%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 14px 2px rgba(34, 228, 255, .55);
  animation: scanY 2.6s ease-in-out infinite;
}
@keyframes scanY { 0%, 100% { top: 30%; opacity: .3; } 50% { top: 68%; opacity: 1; } }

.face { position: relative; width: 52%; filter: drop-shadow(0 0 12px rgba(34, 228, 255, .35)); }
.face circle[fill="#22E4FF"] { animation: blink 4s steps(1) infinite; }
@keyframes blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: .15; } }

.corner {
  position: absolute; width: 26px; height: 26px; border: 2px solid var(--neon-cyan); opacity: .8;
  filter: drop-shadow(0 0 6px rgba(34, 228, 255, .6));
}
.corner--tl { top: 2%; left: 2%; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.corner--tr { top: 2%; right: 2%; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.corner--bl { bottom: 2%; left: 2%; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.corner--br { bottom: 2%; right: 2%; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.scanstage__caption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.scanstage__caption .mono { font-size: 12px; color: var(--text-muted); letter-spacing: .18em; }
.pill { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; }
.pill--live { background: rgba(43, 255, 198, .12); color: var(--neon-mint); border: 1px solid rgba(43, 255, 198, .4); }

/* ============================ TRUST STRIP ============================ */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 26px 30px; margin-bottom: clamp(40px, 7vw, 90px);
  background: linear-gradient(180deg, rgba(18, 22, 43, .6), rgba(11, 13, 22, .3));
  border: 1px solid var(--stroke); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.strip__item { text-align: center; }
.strip__item b { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip__item span { font-size: 13px; color: var(--text-dim); }

/* ============================ SECTIONS ============================ */
.section { padding: clamp(56px, 9vw, 112px) 0; position: relative; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 22, .6) 12%, rgba(11, 13, 22, .6) 88%, transparent);
}
.section__head { max-width: 620px; margin-bottom: 44px; }
.label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--neon-cyan); margin-bottom: 14px;
  padding: 4px 12px; border: 1px solid rgba(34, 228, 255, .3); border-radius: var(--r-pill);
  background: rgba(34, 228, 255, .06);
}
.section__head h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.section__lead { color: var(--text-dim); font-size: 17px; margin-top: 16px; max-width: 60ch; }
.muted { color: var(--text-dim); }

/* --------------------------- Cards --------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-card);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease-spring), border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(34, 228, 255, .35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 228, 255, .35); box-shadow: var(--shadow-card); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card code { color: var(--neon-cyan); font-size: .9em; background: rgba(34, 228, 255, .08); padding: 1px 6px; border-radius: 6px; }

.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-input); display: grid; place-items: center;
  color: var(--neon-cyan); background: rgba(34, 228, 255, .08);
  border: 1px solid rgba(34, 228, 255, .22); margin-bottom: 18px;
}
.card__topline { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--cyan { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.dot--violet { background: var(--neon-violet); box-shadow: 0 0 8px var(--neon-violet); }

.ticks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--grad-live); box-shadow: 0 0 10px rgba(43, 255, 198, .35);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 5px; height: 8px;
  border: solid #04121a; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* --------------------------- Demo --------------------------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card--demo { padding: 30px; }
.card--demo h3 { margin-bottom: 6px; }
.card--demo .btn { margin-top: 20px; }

.result {
  margin-top: 20px; border: 1px solid var(--stroke); border-radius: var(--r-input);
  background: var(--bg-elev); padding: 18px; font-size: 14px; min-height: 72px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.result--slim { min-height: 54px; padding: 14px 18px; }
.result__idle { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; }
.scan-mini {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--stroke); border-top-color: var(--neon-cyan); animation: spin 1.1s linear infinite;
}
.result[data-state="running"] { border-color: rgba(255, 194, 75, .5); box-shadow: 0 0 26px rgba(255, 194, 75, .12); }
.result[data-state="success"] { border-color: rgba(43, 255, 198, .5); box-shadow: 0 0 30px rgba(43, 255, 198, .14); }
.result[data-state="error"] { border-color: rgba(255, 59, 107, .5); box-shadow: 0 0 30px rgba(255, 59, 107, .12); animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.result__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.result__badge { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); }
.result__badge--ok { background: rgba(43, 255, 198, .14); color: var(--neon-mint); border: 1px solid rgba(43, 255, 198, .4); }
.result__badge--bad { background: rgba(255, 59, 107, .14); color: var(--neon-pink); border: 1px solid rgba(255, 59, 107, .4); }
.result__badge--warn { background: rgba(255, 194, 75, .14); color: var(--neon-amber); border: 1px solid rgba(255, 194, 75, .4); }

.result__rows { display: grid; gap: 8px; }
.result__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.result__row .k { color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .06em; }
.result__row .v { color: var(--text); font-family: var(--font-mono); text-align: right; }
.result__token {
  margin-top: 12px; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--stroke); border-radius: var(--r-chip);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--neon-cyan);
}
.result__token span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* Score meter */
.meter { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.meter__fill { height: 100%; border-radius: inherit; background: var(--grad-live); box-shadow: 0 0 12px rgba(43, 255, 198, .5); width: 0; transition: width .8s var(--ease-spring); }

/* --------------------------- Steps --------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-card); padding: 30px;
  position: relative; transition: transform .3s var(--ease-spring), border-color .3s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(139, 92, 255, .4); }
.step__num {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: .1em;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(139, 92, 255, .1); border: 1px solid rgba(139, 92, 255, .35); color: var(--neon-violet);
  margin-bottom: 20px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }
.step p code { color: var(--neon-cyan); background: rgba(34, 228, 255, .08); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* --------------------------- Grids --------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card--sec { padding: 24px; }
.card--sec h3 { font-size: 17px; }
.card--sec p { font-size: 14px; }

/* --------------------------- Integration code --------------------------- */
.integr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.code-card {
  background: #070911; border: 1px solid var(--stroke); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.code-card__head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-elev); border-bottom: 1px solid var(--stroke);
}
.code-card__dots { display: flex; gap: 6px; }
.code-card__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.code-card__dots i:nth-child(1) { background: rgba(255, 59, 107, .6); }
.code-card__dots i:nth-child(2) { background: rgba(255, 194, 75, .6); }
.code-card__dots i:nth-child(3) { background: rgba(43, 255, 198, .6); }
.code-card__file { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.copy-btn {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--neon-cyan); border: 1px solid var(--stroke); border-radius: var(--r-chip); padding: 5px 12px;
  transition: all .2s ease;
}
.copy-btn:hover { border-color: var(--neon-cyan); background: rgba(34, 228, 255, .08); }
.copy-btn.is-copied { color: var(--neon-mint); border-color: var(--neon-mint); }

pre.code {
  margin: 0; padding: 22px; overflow-x: auto; font-family: var(--font-mono);
  font-size: 12.8px; line-height: 1.75; color: #cbd3f5;
}
pre.code .c { color: var(--text-muted); font-style: italic; }
pre.code .t { color: var(--neon-violet); }
pre.code .a { color: var(--neon-cyan); }
pre.code .s { color: var(--neon-mint); }
pre.code .f { color: var(--neon-amber); }
pre.code .k { color: #ff8fb0; }

/* --------------------------- Pricing --------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-card); padding: 30px;
  display: flex; flex-direction: column; gap: 4px; position: relative;
  transition: transform .3s var(--ease-spring), border-color .3s ease;
}
.price:hover { transform: translateY(-4px); border-color: rgba(34, 228, 255, .3); }
.price--featured { border-color: rgba(34, 228, 255, .5); box-shadow: var(--glow-neon); background: linear-gradient(180deg, rgba(18, 22, 43, 1), rgba(18, 22, 43, .7)); }
.price__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #04121a;
  background: var(--grad-primary); padding: 5px 14px; border-radius: var(--r-pill); white-space: nowrap;
}
.price__head h3 { font-size: 18px; font-weight: 700; color: var(--text-dim); }
.price__amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price__amt--word { font-size: 30px; }
.price__cur { font-size: 24px; vertical-align: super; color: var(--text-dim); margin-right: 2px; }
.price__per { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price .ticks { flex: 1; margin: 20px 0 24px; }
.price .btn { margin-top: auto; }

/* --------------------------- CTA band --------------------------- */
.ctaband {
  position: relative; text-align: center; padding: clamp(56px, 8vw, 96px) 32px;
  margin: clamp(40px, 7vw, 90px) auto; border-radius: var(--r-modal);
  background: linear-gradient(135deg, rgba(34, 228, 255, .1), rgba(139, 92, 255, .1));
  border: 1px solid var(--stroke); overflow: hidden;
}
.ctaband__ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(34, 228, 255, .18);
  box-shadow: 0 0 0 60px rgba(139, 92, 255, .04), 0 0 0 120px rgba(34, 228, 255, .03);
  animation: breathe 3.2s ease-in-out infinite; pointer-events: none;
}
.ctaband h2 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.025em; position: relative; }
.ctaband p { color: var(--text-dim); font-size: 17px; margin: 14px 0 28px; position: relative; }
.ctaband .btn { position: relative; }

/* --------------------------- Sign-in slot --------------------------- */
.signin-slot { margin-top: 20px; min-height: 52px; display: flex; }
.signin-slot--compact { margin-top: 0; min-height: 0; }
/* Fallback branded button (used if the SDK hasn't loaded) */
.fs-signin-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--stroke);
  transition: all .2s var(--ease-spring);
}
.signin-slot--compact .fs-signin-btn { width: auto; padding: 9px 16px; font-size: 14px; }
.fs-signin-btn:hover { border-color: var(--neon-violet); box-shadow: 0 0 22px rgba(139, 92, 255, .22); transform: translateY(-2px); }
.fs-signin-btn__mark {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-primary); display: grid; place-items: center; flex: none;
  box-shadow: 0 0 10px rgba(34, 228, 255, .5);
}
.fs-signin-btn__mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #04121a; }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--stroke); background: rgba(7, 9, 17, .6); padding: 56px 0 28px; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { font-size: 14px; max-width: 30ch; }
.footer__col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--neon-cyan); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--stroke); font-size: 13px; flex-wrap: wrap; }

/* ============================ Toast ============================ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--surface); border: 1px solid var(--stroke); color: var(--text);
  padding: 12px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; z-index: 300;
  transition: opacity .3s ease, transform .3s var(--ease-spring); max-width: 90vw;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast--ok { border-color: rgba(43, 255, 198, .5); }
.toast--bad { border-color: rgba(255, 59, 107, .5); }

/* ============================ Reveal ============================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================ Responsive ============================ */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 56px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__oneliner { margin-inline: auto; }
  .hero__visual { order: -1; }
  .demo-grid, .integr-grid { grid-template-columns: 1fr; }
  .cards-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .price--featured { order: -1; }
}
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: clamp(32px, 9vw, 44px); }
  .btn--lg { width: 100%; }
}

/* ============================ Reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .scanstage, .ctaband__ring { animation: none; }
}
