:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --line: #dbe2e8;
  --ink: #0f1b24;
  --ink-soft: #51616d;
  --ink-faint: #7f8f9b;
  --accent: #0e9488;
  --accent-strong: #0b7a6e;
  --accent-weak: #dcefec;
  --danger: #b4443a;
  --ok: #0b7a6e;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f14;
    --surface: #111a22;
    --surface-2: #0e151c;
    --line: #243039;
    --ink: #e4ebf1;
    --ink-soft: #9aa9b5;
    --ink-faint: #5e6e7b;
    --accent: #2bc4b4;
    --accent-strong: #3ad3c2;
    --accent-weak: #12312e;
    --danger: #e27168;
    --ok: #2bc4b4;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-strong);
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .shield { font-size: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: 0.15s;
}
.btn:hover { border-color: var(--ink-faint); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); border-color: var(--accent); }
.nav .btn { padding: 8px 15px; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---- hero ---- */
.hero { padding: 76px 0 60px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); margin: 16px 0 0; max-width: 15ch; }
.hero .lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); margin: 18px 0 30px; max-width: 60ch; }
.hero .trust { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }
.hero .trust strong { color: var(--ink-soft); font-weight: 600; }

/* ---- waitlist form ---- */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 13px 15px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.waitlist input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 10px; font-size: 14px; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* ---- sections ---- */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); margin-top: 10px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 12px 0 0; }

/* ---- grid cards ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.card .tick { color: var(--accent); font-weight: 700; }

/* ---- how it works (steps + code) ---- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  color: #fff; background: var(--accent); border: 1px solid var(--accent);
}
.step h3 { font-size: 16.5px; margin: 3px 0 5px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.code {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.code figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  display: flex; align-items: center; gap: 8px;
}
.code figcaption .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 14px 0 0 var(--line), 28px 0 0 var(--line);
}
.code pre { margin: 0; padding: 16px; overflow-x: auto; }
.code code {
  font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink);
  white-space: pre; tab-size: 2;
}

/* ---- flow ---- */
.flow { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.flow .node {
  flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
}
.flow .node.mid { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.flow .node .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.flow .node h3 { font-size: 16px; margin: 6px 0 8px; }
.flow .node ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.flow .node.mid h3 { color: var(--accent-strong); }

/* ---- audience chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14px; color: var(--ink-soft); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px;
}

/* ---- final CTA ---- */
.cta { background: var(--accent-weak); border-radius: 20px; padding: 44px; text-align: center; border: 1px solid var(--line); }
.cta h2 { font-size: clamp(24px, 3.6vw, 32px); }
.cta p { color: var(--ink-soft); margin: 12px auto 24px; max-width: 52ch; }
.cta .waitlist { margin: 0 auto; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-faint); font-size: 13.5px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
