:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0d1321;
  --muted: #586174;
  --line: #e2e6ed;
  --brand: #1f4fd6;
  --brand-2: #0f9f8f;
  --brand-ink: #ffffff;
  --soft: #eef2fb;
  --ok: #0f8a5f;
  --ok-bg: #e3f5ec;
  --bad: #c2362f;
  --bad-bg: #fbe7e5;
  --night: #0b1222;
  --night-ink: #e9eef8;
  --night-muted: #9aa6bf;
  --radius: 16px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #111a2c;
    --ink: #e8edf6;
    --muted: #9ba6bc;
    --line: #233049;
    --brand: #7c9bff;
    --brand-2: #34d3bf;
    --brand-ink: #0a0f1c;
    --soft: #18233b;
    --ok: #4ade9b;
    --ok-bg: #12352a;
    --bad: #ff8a80;
    --bad-bg: #3b1d1d;
    --night: #060a14;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo b { font-weight: inherit; }
.logo span { color: var(--brand); }
.logo svg { flex: none; }
.nav { display: none; gap: 24px; margin-left: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 6px 9px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.lang a[aria-current="true"] { background: var(--soft); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
  border-radius: 12px; padding: 12px 20px; min-height: 46px;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 8px 14px; min-height: 38px; font-size: 14px; border-radius: 10px; }
.top .btn.small { display: none; }
@media (min-width: 560px) { .top .btn.small { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -360px; right: -200px; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
}
.hero .wrap { position: relative; display: grid; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.hero .wrap > * { min-width: 0; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; align-items: center; padding-top: 80px; padding-bottom: 88px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* Product mock */
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(13, 19, 33, .25), 0 2px 6px rgba(13, 19, 33, .05);
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.app-body { padding: 16px; display: grid; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--brand); border-radius: 12px; font-size: 15px; font-weight: 600; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.search svg { flex: none; color: var(--brand); }
.app-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.result { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.result .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.code { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.result p { margin: 0; font-size: 14px; }
.result small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.result.dim { opacity: .75; }
.app-note { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--soft); }

/* Stats band */
.band { background: var(--night); color: var(--night-ink); }
.band ul { list-style: none; margin: 0; padding: 36px 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.band b { display: block; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.band span { color: var(--night-muted); font-size: 14px; }

/* Sections */
section { padding: 80px 0; }
.kicker { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
section h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 14px; max-width: 22em; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 36px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; position: relative; padding: 24px 24px 24px 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--brand-ink); }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Early access */
#early-access { padding: 0 0 80px; }
.cta-panel { background: var(--night); color: var(--night-ink); border-radius: 24px; padding: 28px 20px; display: grid; gap: 32px; position: relative; overflow: hidden; }
.cta-panel > * { min-width: 0; position: relative; }
@media (min-width: 720px) { .cta-panel { padding: 48px; } }
@media (min-width: 980px) { .cta-panel { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.cta-panel::before { content: ""; position: absolute; right: -200px; bottom: -260px; width: 600px; height: 600px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 25%, transparent), transparent 70%); pointer-events: none; }
.cta-panel h2 { color: var(--night-ink); }
.cta-panel .sub { color: var(--night-muted); margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--brand-2) 25%, transparent); color: var(--brand-2); margin-top: 1px; }

form.waitlist { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
form.waitlist .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form.waitlist .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
label.consent input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.waitlist button { width: 100%; }
button[disabled] { opacity: .6; cursor: progress; }
.msg { font-size: 15px; margin: 0; }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
footer nav a { display: inline-block; padding: 6px 0; }

.doc { padding-top: 40px; padding-bottom: 60px; max-width: 760px; }
.doc h1 { letter-spacing: -0.02em; }
.doc h2 { font-size: 20px; margin-top: 28px; }
.todo { background: #fef3c7; color: #78350f; padding: 2px 6px; border-radius: 6px; }
