/* ============================================================
   SODA — "Composed Effervescence"
   Dark, calm, premium. One accent (club-soda cyan).
   Gradients are grayscale only. Motion is scroll-triggered.
   ============================================================ */

/* ---------- tokens ---------- */
:root{
  /* near-black canvas, faintly GREEN-tinted (never pure #000) */
  --bg:        oklch(0.160 0.014 155);
  --bg-2:      oklch(0.192 0.015 155);
  --surface:   oklch(0.224 0.016 156);
  --surface-2: oklch(0.264 0.017 156);
  --line:      oklch(0.34 0.019 156);
  --line-soft: oklch(0.30 0.016 156 / 0.6);

  /* tinted off-whites (whisper of green) */
  --ink:   oklch(0.975 0.006 150);
  --text:  oklch(0.86 0.013 152);
  --muted: oklch(0.66 0.017 154);
  --faint: oklch(0.63 0.017 155); /* WCAG AA: ~5:1 on bg for small mono text */

  /* accent — luminous emerald green (single accent, used <=10%) */
  --soda:      oklch(0.82 0.19 150);
  --soda-deep: oklch(0.70 0.17 152);
  --soda-glow: oklch(0.82 0.19 150 / 0.35);
  --soda-ghost:oklch(0.82 0.19 150 / 0.09);

  /* data semantics only */
  --pos: oklch(0.84 0.17 148);
  --neg: oklch(0.68 0.17 22);
  --warn:oklch(0.82 0.13 85);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --r: 16px;
  --r-lg: 22px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);     /* ease-out-quint-ish */
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle atmospheric depth — grayscale only */
body::before{
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 78% -5%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(90% 60% at 10% 110%, rgba(255,255,255,0.025), transparent 60%);
  pointer-events: none; z-index: 0;
}

.grain{
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.wrap{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }

.skip{ position: absolute; left: -999px; top: 0; background: var(--soda); color: #04140b; padding: .6rem 1rem; border-radius: 0 0 10px 0; z-index: 200; font-weight: 600; }
.skip:focus{ left: 0; }

.ink{ color: var(--ink); }
.pos{ color: var(--pos) !important; }
.neg{ color: var(--neg) !important; }

::selection{ background: var(--soda-glow); color: var(--ink); }

/* ---------- buttons ---------- */
.btn{
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: var(--bh); padding: 0 1.25rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--solid{ background: var(--soda); color: #04140b; box-shadow: 0 0 0 0 var(--soda-glow); }
.btn--solid:hover{ transform: translateY(-2px); box-shadow: 0 10px 34px -8px var(--soda-glow); background: oklch(0.89 0.14 196); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover{ border-color: var(--soda); color: var(--soda); transform: translateY(-2px); }
.btn--block{ width: 100%; }
.btn:focus-visible{ outline: 2px solid var(--soda); outline-offset: 3px; }
/* visible keyboard focus for every interactive custom control */
.seg__btn:focus-visible, .toggle__opt:focus-visible, .deploy__live:focus-visible,
.acc__item summary:focus-visible, .nav__links a:focus-visible, .nav__mobile a:focus-visible,
.footer__col a:focus-visible, .hero__secondary:focus-visible, .brand:focus-visible,
.hero__scrollcue:focus-visible{ outline: 2px solid var(--soda); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck{
  background: oklch(0.165 0.013 220 / 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav__inner{ display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand{ display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__word{ font-family: var(--font-display); font-weight: 800; letter-spacing: .14em; color: var(--ink); font-size: 1.18rem; }
.brand__mark{
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--soda);
  display: grid; place-items: center; overflow: hidden;
}
.brand__fizz{ width: 7px; height: 7px; border-radius: 50%; background: var(--soda); box-shadow: 0 0 12px 1px var(--soda-glow); animation: fizz 2.4s var(--ease) infinite; }
@keyframes fizz{ 0%,100%{ transform: translateY(2px) scale(.85); opacity:.7 } 50%{ transform: translateY(-3px) scale(1.05); opacity:1 } }

.nav__links{ display: flex; gap: 2rem; }
.nav__links a{ color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a:hover{ color: var(--ink); }
.nav__links a::after{ content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--soda); transition: width .25s var(--ease); }
.nav__links a:hover::after{ width: 100%; }
.nav__actions{ display: flex; align-items: center; gap: .75rem; }
.nav__actions .btn{ --bh: 40px; }

.nav__burger{ display:none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span{ width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:first-child{ transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child{ transform: translateY(-7px) rotate(-45deg); }
.nav__mobile{ display: none; flex-direction: column; gap: .25rem; padding: 1rem var(--pad) 1.5rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.nav__mobile a{ color: var(--text); text-decoration: none; padding: .7rem 0; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.nav__mobile .btn{ margin-top: .5rem; }

/* ---------- reveal ---------- */
.reveal{ opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; } }

/* ---------- section heads ---------- */
.kicker{ display: inline-block; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--soda); margin-bottom: 1.1rem; }
.section-title{ font-family: var(--font-serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); font-size: clamp(2.4rem, 5.6vw, 4rem); }
.section-title .ital{ font-style: italic; color: var(--soda); }
.section-lede{ color: var(--muted); font-size: 1.12rem; max-width: 58ch; margin-top: 1.1rem; }
.section-head{ margin-bottom: clamp(2.5rem, 6vw, 4rem); }

section{ padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position: relative; min-height: 94vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: clamp(7rem, 14vw, 9rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }

/* faint, STATIC baseline grid — a quiet architectural datum, not a synthwave floor */
.hero__floor{ position: absolute; left: 50%; bottom: 0; width: 240%; height: 44vh; z-index: 0;
  transform: translateX(-50%) perspective(60vh) rotateX(68deg); transform-origin: bottom center;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent 72%);
          mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent 72%); }

/* the single signature: a quiet glowing cyan horizon line (solid colour + bloom, NOT a gradient) */
.hero__horizon{ position: absolute; left: 50%; bottom: 56vh; transform: translateX(-50%); z-index: 0;
  width: min(760px, 76vw); height: 1px; background: var(--soda); opacity: .5;
  box-shadow: 0 0 16px 1px var(--soda-glow), 0 0 48px 6px var(--soda-glow); }

/* grayscale ambient pool above the horizon */
.hero__glow{ position: absolute; left: 50%; bottom: 40vh; transform: translateX(-50%); z-index: 0; pointer-events: none;
  width: 110vw; height: 56vh; max-width: 1000px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.07), transparent 70%); }

.hero__inner{ position: relative; z-index: 2; max-width: 880px; }
.eyebrow{ display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--text);
  background: var(--soda-ghost); border: 1px solid var(--line-soft); padding: .42rem .9rem; border-radius: 999px; }
.eyebrow .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--soda); box-shadow: 0 0 10px var(--soda-glow); animation: blink 2s infinite; }
@keyframes blink{ 0%,100%{opacity:1} 50%{opacity:.4} }

.hero__title{ font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.0; color: var(--ink);
  font-size: clamp(3rem, 8vw, 6rem); margin-top: 1.7rem; }
.hero__title .ital{ font-style: italic; color: var(--soda); }
.hero__sub{ font-size: clamp(1.06rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 54ch; margin: 1.5rem auto 0; }
.hero__chips{ font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 1.5rem; }

.hero__form{ display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.2rem auto 0; max-width: 460px; }
.form-status{ flex-basis: 100%; width: 100%; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .01em; text-align: center; min-height: 1.1em; margin-top: .1rem; }
.hero__form input, .cta__form input{
  flex: 1; min-width: 0; height: 48px; padding: 0 1.1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.hero__form input::placeholder, .cta__form input::placeholder{ color: var(--faint); }
.hero__form input:focus, .cta__form input:focus{ outline: none; border-color: var(--soda); box-shadow: 0 0 0 4px var(--soda-ghost); }
.hero__under{ display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 1.3rem; }
.hero__secondary{ font-family: var(--font-body); color: var(--text); text-decoration: none; font-size: .96rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.hero__secondary:hover{ color: var(--soda); border-color: var(--soda); }
.hero__fineprint{ font-family: var(--font-mono); font-size: .74rem; color: var(--faint); letter-spacing: .01em; }

/* proof band — live backtest, directly under the hero */
.proof{ padding-top: clamp(1rem, 3vw, 2.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.proof__inner{ max-width: 760px; margin-inline: auto; }
.proof__kicker{ text-align: center; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.3rem; }
.proof .panel{ margin-inline: auto; }

/* instrument panel */
.panel{ background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.35rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7); backdrop-filter: blur(6px); position: relative; }
.panel::after{ content:""; position:absolute; inset:0; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,0.05); pointer-events:none; }
.panel__top{ display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel__tag{ font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; color: var(--faint); display: block; }
.panel__name{ font-family: var(--font-mono); font-size: .92rem; color: var(--ink); font-weight: 500; }
.panel__status{ display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--soda); background: var(--soda-ghost); border: 1px solid var(--line-soft); padding: .35rem .6rem; border-radius: 999px; }
.panel__status.done{ color: var(--pos); }
.pulse{ width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 var(--soda-glow);} 70%{ box-shadow: 0 0 0 7px transparent;} 100%{ box-shadow: 0 0 0 0 transparent;} }

.panel__chartwrap{ margin-top: 1.1rem; position: relative; }
.panel__chart{ width: 100%; height: 168px; display: block; }
.panel__legend{ display: flex; gap: 1.2rem; margin-top: .6rem; font-size: .76rem; color: var(--muted); font-family: var(--font-mono); }
.panel__legend span{ display: inline-flex; align-items: center; gap: .4rem; }
.swatch{ width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch--soda{ background: var(--soda); box-shadow: 0 0 8px var(--soda-glow); }
.swatch--bh{ background: var(--faint); }

.panel__metrics{ display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.2rem; }
.metric{ background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: .7rem .65rem; }
.metric__label{ display: block; font-size: .68rem; color: var(--faint); letter-spacing: .04em; margin-bottom: .25rem; }
.metric__val{ font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; color: var(--ink); }
.panel__foot{ font-family: var(--font-mono); font-size: .68rem; color: var(--faint); margin-top: 1rem; text-align: center; }

.hero__scrollcue{ position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2; display: block; width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 999px; }
.hero__scrollcue span{ position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 2px; background: var(--soda); transform: translateX(-50%); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue{ 0%{ opacity:0; transform: translate(-50%,0);} 40%{opacity:1} 80%{ opacity:0; transform: translate(-50%,14px);} 100%{opacity:0} }

/* ============================================================
   TRUST
   ============================================================ */
.trust{ padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust__lead{ text-align: center; color: var(--muted); font-size: .98rem; }
.brokers{ display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 1.4rem; }
.broker{ font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--text); letter-spacing: .01em; display: inline-flex; align-items: baseline; gap: .5rem; }
.broker.is-soon{ color: var(--faint); }
.broker em{ font-family: var(--font-mono); font-style: normal; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--soda); border: 1px solid var(--line); padding: .15rem .4rem; border-radius: 6px; }

.stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.stat{ text-align: center; padding: 0 .5rem; }
.stat__num{ font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); display: block; letter-spacing: -.02em; }
.stat__label{ color: var(--muted); font-size: .9rem; display: block; margin-top: .5rem; max-width: 22ch; margin-inline: auto; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem .section-head{ text-align: center; max-width: 760px; margin-inline: auto; }
.problem .section-lede{ margin-inline: auto; }
.research{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.research__card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 1.6rem; transition: transform .35s var(--ease), border-color .35s; }
.research__card:hover{ transform: translateY(-5px); border-color: var(--faint); }
.research__stat{ font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--ink); letter-spacing: -.02em; display: block; }
.research__stat span{ font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: .15rem; }
.research__card h3{ font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-top: .9rem; font-weight: 600; }
.research__card p{ color: var(--muted); font-size: .98rem; margin-top: .55rem; }
.research__card cite{ display: block; margin-top: 1.1rem; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); font-style: normal; line-height: 1.5; }
.problem__punch{ text-align: center; max-width: 50ch; margin: 3rem auto 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-family: var(--font-display); font-weight: 500; color: var(--muted); line-height: 1.4; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.step{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.step + .step{ border-top: 1px solid var(--line-soft); }
.step--rev .step__text{ order: 2; }
.step__no{ font-family: var(--font-mono); font-size: .85rem; color: var(--soda); letter-spacing: .2em; }
.step__text h3{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ink); margin-top: .7rem; letter-spacing: -.02em; }
.step__text p{ color: var(--muted); margin-top: .9rem; max-width: 44ch; }
.ticks{ list-style: none; margin-top: 1.4rem; display: grid; gap: .65rem; }
.ticks li{ position: relative; padding-left: 1.7rem; color: var(--text); font-size: .98rem; }
.ticks li::before{ content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2px solid var(--soda); border-bottom: 2px solid var(--soda); transform: rotate(-45deg); }
.ticks--lg li{ font-size: 1.04rem; padding-block: .2rem; }

.step__visual{ min-width: 0; }

/* code block */
.code{ background: oklch(0.14 0.012 222); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.7); }
.code__bar{ display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: .74rem; color: var(--faint); }
.code__bar span{ width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.code pre{ padding: 1.1rem 1.2rem; overflow-x: auto; }
.code code{ font-family: var(--font-mono); font-size: .82rem; line-height: 1.7; color: var(--text); }
.c-key{ color: var(--soda); } .c-str{ color: var(--text); } .c-num{ color: var(--muted); } .c-cmt{ color: var(--faint); font-style: italic; }

/* ministat */
.ministat{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.ministat__row{ display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.ministat__row b{ color: var(--ink); }
.bar{ height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-bottom: 1.3rem; }
.bar i{ display: block; height: 100%; width: 0; border-radius: 999px; background: var(--soda); transition: width 1.1s var(--ease); }
.bar i.bar--neg{ background: var(--neg); }
.in .bar i{ width: var(--w); }

/* ai card */
.ai{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.ai__head{ display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .82rem; color: var(--soda); letter-spacing: .04em; }
.ai__spark{ animation: spark 3s infinite; }
@keyframes spark{ 0%,100%{ opacity:.5; transform: scale(.9);} 50%{ opacity:1; transform: scale(1.15);} }
.ai__msg{ margin-top: 1rem; color: var(--text); font-size: 1.02rem; line-height: 1.55; }
.ai__msg b{ color: var(--ink); }
.ai__actions{ display: flex; gap: .6rem; margin-top: 1.3rem; }
.ai__apply{ background: var(--soda); color: #04140b; font-weight: 600; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px; }
.ai__dismiss{ border: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: .5rem .9rem; border-radius: 999px; }

/* deploy */
.deploy{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.deploy__row{ display: flex; align-items: center; justify-content: space-between; }
.deploy__broker{ font-family: var(--font-mono); font-size: .85rem; color: var(--text); }
.deploy__live{ display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; }
.deploy__knob{ width: 42px; height: 24px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); position: relative; transition: background .3s; }
.deploy__knob::after{ content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .3s; }
.deploy__live[aria-checked="true"] .deploy__knob{ background: var(--soda-ghost); border-color: var(--soda); }
.deploy__live[aria-checked="true"] .deploy__knob::after{ transform: translateX(18px); background: var(--soda); }
.deploy__mode{ font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); font-style: normal; }
.deploy__live[aria-checked="true"] .deploy__mode{ color: var(--soda); }
.deploy__feed{ margin-top: 1.2rem; display: grid; gap: .55rem; }
.tick{ font-family: var(--font-mono); font-size: .8rem; color: var(--text); display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; background: var(--bg-2); border-radius: 9px; border: 1px solid var(--line-soft); }
.tick__t{ color: var(--faint); }
.tick__tag{ margin-left: auto; font-size: .68rem; color: var(--muted); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 5px; }
.tick__tag.pos{ color: var(--pos); border-color: color-mix(in oklch, var(--pos), transparent 60%); }
.tick__tag.warn{ color: var(--warn); border-color: color-mix(in oklch, var(--warn), transparent 60%); }

/* ============================================================
   INTERACTIVE DEMO
   ============================================================ */
.demo{ background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.demo .section-head{ text-align: center; max-width: 720px; margin-inline: auto; }
.demo .section-lede{ margin-inline: auto; }
.lab{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.5rem; align-items: stretch; }
.lab__controls{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.control{ margin-bottom: 1.5rem; }
.control label{ display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .65rem; }
.control--split{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seg{ display: flex; flex-wrap: wrap; gap: .4rem; }
.seg__btn{ font-family: var(--font-body); font-size: .86rem; font-weight: 500; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; cursor: pointer; transition: all .2s var(--ease); }
.seg__btn:hover{ color: var(--ink); border-color: var(--faint); }
.seg__btn.is-active{ color: #04140b; background: var(--soda); border-color: var(--soda); font-weight: 600; }
.seg--sm .seg__btn{ font-size: .8rem; padding: .45rem .7rem; }
#runBtn{ margin-top: auto; }
#runBtn.is-running{ opacity: .8; pointer-events: none; }
.lab__note{ font-family: var(--font-mono); font-size: .68rem; color: var(--faint); margin-top: .9rem; text-align: center; }

.lab__result{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.lab__charthead{ display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lab__finallabel{ font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; }
.lab__finalval{ font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ink); display: inline-block; margin-top: .2rem; letter-spacing: -.02em; }
.lab__finaldelta{ font-family: var(--font-mono); font-size: .95rem; margin-left: .6rem; color: var(--muted); }
.lab__chartwrap{ position: relative; margin-top: 1.1rem; flex: 1; min-height: 220px; }
#labChart{ width: 100%; height: 240px; display: block; }
.lab__empty{ position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: .95rem; text-align: center; padding: 1rem; }
.lab__empty b{ color: var(--soda); }
.lab__metrics{ display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: 1.2rem; }
@media (max-width: 520px){ .lab__metrics{ grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   FEATURES BENTO
   ============================================================ */
.bento{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cell{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem; grid-column: span 2; transition: transform .35s var(--ease), border-color .35s; position: relative; overflow: hidden; }
.cell:hover{ transform: translateY(-4px); border-color: var(--faint); }
.cell--wide{ grid-column: span 2; }
@media (min-width: 861px){
  .bento{ grid-template-columns: repeat(6, 1fr); }
  .cell{ grid-column: span 2; }
  .cell--wide{ grid-column: span 3; }
}
.cell__icon{ width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soda-ghost); border: 1px solid var(--line-soft); color: var(--soda); }
.cell__icon svg{ width: 22px; height: 22px; stroke: var(--soda); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai__spark svg, .vault__core svg{ stroke: var(--soda); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cell h3{ font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-top: 1.1rem; }
.cell p{ color: var(--muted); font-size: .96rem; margin-top: .5rem; }
.cell__viz{ height: 56px; margin-top: 1.2rem; }
.cell__viz--pulse{ display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.cell__viz--pulse span{ flex: 1; background: var(--soda-ghost); border-radius: 4px 4px 0 0; animation: eq 1.4s var(--ease) infinite; }
.cell__viz--pulse span:nth-child(odd){ animation-duration: 1.9s; }
.cell__viz--pulse span:nth-child(1){ animation-delay: 0s } .cell__viz--pulse span:nth-child(2){ animation-delay: .15s }
.cell__viz--pulse span:nth-child(3){ animation-delay: .3s } .cell__viz--pulse span:nth-child(4){ animation-delay: .1s }
.cell__viz--pulse span:nth-child(5){ animation-delay: .25s } .cell__viz--pulse span:nth-child(6){ animation-delay: .05s } .cell__viz--pulse span:nth-child(7){ animation-delay: .2s }
@keyframes eq{ 0%,100%{ height: 25%; background: var(--soda-ghost);} 50%{ height: 100%; background: var(--soda);} }

/* ============================================================
   SECURITY
   ============================================================ */
.security__grid{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.security__visual{ display: grid; place-items: center; }
.vault{ position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.vault__ring{ position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.vault__ring--2{ inset: 38px; border-color: var(--line-soft); border-style: dashed; animation: spin 28s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg);} }
.vault__core{ width: 92px; height: 92px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--soda); display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 40px -8px var(--soda-glow); }
.vault__chip{ position: absolute; font-family: var(--font-mono); font-size: .72rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: .4rem .7rem; border-radius: 999px; white-space: nowrap; }
.vault__chip--1{ top: 6%; left: 50%; transform: translateX(-50%); }
.vault__chip--2{ bottom: 16%; left: -6%; }
.vault__chip--3{ bottom: 16%; right: -10%; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing .section-head{ text-align: center; }
.toggle{ display: inline-flex; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; margin-top: 1.6rem; }
.toggle__opt{ font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--muted); background: transparent; border: 0; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: .4rem; }
.toggle__opt em{ font-style: normal; font-family: var(--font-mono); font-size: .66rem; color: var(--soda); }
.toggle__opt.is-active{ background: var(--bg); color: var(--ink); }

.plans{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; margin-top: 3rem; }
.plan{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.7rem; position: relative; transition: transform .35s var(--ease), border-color .35s; }
.plan:hover{ transform: translateY(-4px); }
.plan--feature{ border-color: var(--soda); box-shadow: 0 30px 70px -45px var(--soda-glow); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)); transform: scale(1.05); z-index: 1; }
.plan--feature:hover{ transform: scale(1.05) translateY(-4px); }
.plan__badge{ position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--soda); color: #04140b; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan__name{ font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.plan__desc{ color: var(--muted); font-size: .92rem; margin-top: .35rem; min-height: 2.6em; }
.plan__price{ margin: 1.2rem 0 1.4rem; display: flex; align-items: baseline; gap: .25rem; }
.plan__amt{ font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--ink); letter-spacing: -.03em; }
.plan__per{ color: var(--faint); font-family: var(--font-mono); font-size: .9rem; }
.plan__feats{ list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.plan__feats li{ position: relative; padding-left: 1.6rem; color: var(--text); font-size: .94rem; }
.plan__feats li::before{ content:""; position: absolute; left: 0; top: .4em; width: 12px; height: 7px; border-left: 2px solid var(--soda); border-bottom: 2px solid var(--soda); transform: rotate(-45deg); }
.pricing__fine{ text-align: center; font-family: var(--font-mono); font-size: .74rem; color: var(--faint); margin-top: 2rem; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder__inner{ max-width: 800px; margin-inline: auto; text-align: center; }
.founder__mark{ font-family: var(--font-display); font-size: 5rem; line-height: .5; color: var(--soda); opacity: .5; height: 2.5rem; }
.founder__quote{ font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.34; color: var(--ink); letter-spacing: -.005em; }
.founder__by{ display: inline-flex; align-items: center; gap: .8rem; margin-top: 2rem; }
.founder__avatar{ width: 44px; height: 44px; border-radius: 50%; background: var(--soda-ghost); border: 1px solid var(--soda); color: var(--soda); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.founder__by strong{ color: var(--ink); display: block; text-align: left; }
.founder__by span{ color: var(--muted); font-size: .88rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq .section-head{ text-align: center; }
.acc{ max-width: 780px; margin-inline: auto; }
.acc__item{ border-bottom: 1px solid var(--line-soft); }
.acc__item summary{ list-style: none; cursor: pointer; padding: 1.4rem .5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.acc__item summary::-webkit-details-marker{ display: none; }
.acc__item summary::after{ content: "+"; font-family: var(--font-mono); font-size: 1.5rem; color: var(--soda); transition: transform .3s var(--ease); line-height: 1; }
.acc__item[open] summary::after{ transform: rotate(45deg); }
.acc__body{ padding: 0 .5rem 1.4rem; }
.acc__body p{ color: var(--muted); max-width: 64ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta{ overflow: hidden; }
.cta__bubbles{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.cta__inner{ text-align: center; max-width: 720px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem); box-shadow: 0 50px 100px -50px rgba(0,0,0,.7); }
.cta__title{ font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.01em; color: var(--ink); }
.cta__title .ital{ font-style: italic; color: var(--soda); }
.cta__sub{ color: var(--muted); font-size: 1.1rem; margin-top: 1.1rem; }
.cta__form{ display: flex; flex-wrap: wrap; gap: .6rem; max-width: 460px; margin: 2rem auto 0; }
.cta__fine{ font-family: var(--font-mono); font-size: .74rem; color: var(--faint); margin-top: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; z-index: 2; }
.footer__grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand p{ color: var(--muted); font-size: .92rem; margin-top: .9rem; max-width: 26ch; }
.footer__col h4{ font-family: var(--font-mono); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer__col a{ display: block; color: var(--muted); text-decoration: none; font-size: .94rem; padding: .3rem 0; transition: color .2s; }
.footer__col a:hover{ color: var(--soda); }
.footer__disclaimer{ margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.footer__disclaimer p{ color: var(--faint); font-size: .82rem; line-height: 1.6; max-width: 90ch; }
.footer__disclaimer strong{ color: var(--muted); }
.footer__copy{ margin-top: 1.2rem !important; font-family: var(--font-mono); font-size: .76rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero{ min-height: 88vh; }
  .security__grid{ grid-template-columns: 1fr; }
  .lab{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .footer__grid{ grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
}
@media (max-width: 860px){
  .nav__links, .nav__actions{ display: none; }
  .nav__burger{ display: flex; }
  .nav.is-open .nav__mobile{ display: flex; }
  .research{ grid-template-columns: 1fr; }
  .step{ grid-template-columns: 1fr; gap: 2rem; }
  .step--rev .step__text{ order: 0; }
  .plans{ grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--feature{ order: -1; transform: none; }
  .plan--feature:hover{ transform: translateY(-4px); }
  .bento{ grid-template-columns: 1fr; }
  .cell, .cell--wide{ grid-column: auto; }
}
@media (max-width: 560px){
  body{ font-size: 16px; }
  .hero__title{ font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero__chips{ font-size: .66rem; letter-spacing: .06em; line-height: 1.9; }
  .hero__form, .cta__form{ flex-direction: column; }
  .hero__form .btn, .cta__form .btn{ width: 100%; }
  .panel__metrics{ grid-template-columns: repeat(2, 1fr); }
  .panel__top{ flex-wrap: wrap; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .brokers{ gap: 1.2rem; }
  .footer__grid{ grid-template-columns: 1fr; gap: 2rem; }
}
