:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --panel: #10151e;
  --panel-2: #151b26;
  --line: #1f2733;
  --line-2: #2a3443;
  --text: #e7ecf3;
  --muted: #93a0b4;
  --dim: #5f6b7e;
  --accent: #3ee0c5;
  --accent-2: #5b8cff;
  --accent-ink: #04201b;
  --warn: #ffb547;
  --good: #49d17d;
  --radius: 14px;
  --maxw: 1160px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: .9em; background: var(--panel-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; text-align: center; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #63ead4; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.nav-links .btn-primary { color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 340px at 20% 30%, rgba(62,224,197,.16), transparent 70%),
    radial-gradient(520px 320px at 80% 20%, rgba(91,140,255,.16), transparent 70%);
}
.mesh-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(62,224,197,.3); background: rgba(62,224,197,.06); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 800; }
h1 .grad { background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--dim); font-size: 14px; }
.hero-meta span::before { content: "✓ "; color: var(--accent); }

/* ---------- demo ---------- */
.demo { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }
.demo-video { align-self: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(62,224,197,.06); position: relative; }
.demo-video video { width: 100%; height: auto; display: block; aspect-ratio: 1116 / 748; }
.demo-badge { position: absolute; top: 46px; right: 12px; font-family: var(--mono); font-size: 11.5px; background: rgba(7,9,13,.82); border: 1px solid var(--line-2); color: var(--accent); padding: 4px 9px; border-radius: 999px; }
.demo-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.timer { font-family: var(--mono); font-size: 52px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.timer small { font-size: 16px; color: var(--muted); margin-left: 4px; }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.goal { font-size: 14px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-weight: 500; transition: color .2s; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: all .2s; }
.checks li.on { color: var(--text); }
.checks li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--panel); }
.demo-foot { font-size: 12.5px; color: var(--dim); margin-top: auto; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 10px 0 14px; font-weight: 750; }
h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 8px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--mono); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.stat .num em { font-style: normal; color: var(--accent); }
.stat .desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(62,224,197,.08); border: 1px solid rgba(62,224,197,.22); color: var(--accent); margin-bottom: 18px; }
.card .icon svg { width: 20px; height: 20px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(62,224,197,.4); }
.card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 26px 22px; border-right: 1px solid var(--line); background: var(--panel); position: relative; }
.step:last-child { border-right: 0; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); color: var(--accent); font-size: 13px; display: block; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* code */
pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: #cfd8e6; margin: 0;
}
pre .c { color: var(--dim); }
pre .k { color: #c792ea; }
pre .s { color: #a5e07a; }
pre .n { color: var(--accent); }
pre .f { color: #82aaff; }
.codewin { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.codewin .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.codewin .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.codewin pre { border: 0; border-radius: 0; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: rgba(62,224,197,.14); border: 1px solid var(--accent); }
.ticks li b { color: var(--text); font-weight: 600; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 500; background: var(--bg-2); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tr.total td { font-weight: 700; color: var(--text); background: rgba(62,224,197,.05); }
td { color: var(--muted); }
td:first-child { color: var(--text); }

/* bars */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 14px; align-items: center; font-size: 14.5px; }
.bar-row .track { height: 12px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-row .fill { height: 100%; border-radius: 999px; background: var(--dim); }
.bar-row .fill.hot { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar-row .val { font-family: var(--mono); text-align: right; color: var(--text); }
.bar-row .name { color: var(--muted); }
@media (max-width: 560px) { .bar-row { grid-template-columns: 100px 1fr 70px; font-size: 13px; } }

/* callout */
.callout { border: 1px solid rgba(255,181,71,.3); background: rgba(255,181,71,.06); border-radius: 12px; padding: 16px 18px; color: #f2d7a8; font-size: 15px; }
.callout b { color: var(--warn); }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }

/* page hero (subpages) */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.page-hero .lede { margin-bottom: 0; }

/* doc layout */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); text-decoration: none; }
.toc .label { margin-bottom: 10px; display: block; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; display: none; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin-top: 56px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; scroll-margin-top: 90px; }
.prose p, .prose li { color: #b9c3d2; font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose pre, .prose .table-wrap, .prose figure, .prose .callout { margin: 22px 0; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { color: var(--dim); font-size: 13.5px; margin-top: 10px; }

/* diagram */
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { width: 100%; height: auto; }
.diagram text { font-family: var(--sans); }
.diagram .mono { font-family: var(--mono); }

/* waitlist */
.waitlist { position: relative; border: 1px solid var(--line-2); border-radius: 22px; padding: 56px 48px; overflow: hidden; background: linear-gradient(135deg, rgba(62,224,197,.10), rgba(91,140,255,.10)), var(--panel); text-align: center; }
.waitlist h2 { margin-top: 0; }
.waitlist p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 17px; }
.wl-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.wl-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); padding: 12px 14px; font: inherit; }
.wl-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.wl-msg { margin-top: 14px; font-size: 14px; color: var(--accent); min-height: 1.4em; }
@media (max-width: 560px) { .waitlist { padding: 40px 20px; } .wl-form { flex-direction: column; } .wl-form .btn { justify-content: center; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--dim); font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--text); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.foot a { display: block; color: var(--muted); padding: 3px 0; }
.foot p { max-width: 320px; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* misc */
.pill { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pill.ok { color: var(--good); border-color: rgba(73,209,125,.35); background: rgba(73,209,125,.07); }
.ops { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ops span { font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: #cfd8e6; }
.ops span.hl { border-color: rgba(62,224,197,.5); color: var(--accent); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
