:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-alt: #0f1530;
  --surface: #141b31;
  --surface-2: #1b2440;
  --line: #1e2745;
  --border: #2a3558;
  --border-strong: #3a4a7a;
  --text: #eaeef8;
  --text-2: #c5cde0;
  --muted: #a7b1c9;
  --accent: #ffb938;
  --accent-ink: #0b1020;
  --teal: #5ee0c0;
  --red: #ff8a80;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 24px;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: rgba(11, 16, 32, .92); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { min-height: 40px; color: var(--accent-ink); }
@media (max-width: 600px) {
  .nav a:not(.btn):not(.nav-keep) { display: none; }
  .brand { font-size: 20px; }
}

/* Type */
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: 19px; color: var(--text-2); max-width: 600px; margin: 20px 0 0; }
.muted { color: var(--muted); }
.hl { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: 500; }
.btn--ghost:hover { border-color: var(--text-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { margin: 12px 0 0; color: var(--text-2); font-size: 18px; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-art { flex: 1 1 300px; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-art img { width: 100%; max-width: 340px; height: auto; }
.bubble { padding: 14px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: center; position: relative; }
.bubble small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.status { margin-top: 28px; max-width: 600px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; color: var(--muted); }
.status strong { color: var(--text); }

/* Cards and grids */
.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid > * { flex: 1 1 250px; min-width: 0; }
.card { padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { width: 34px; height: 34px; color: var(--accent); }
.card .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { align-self: flex-start; margin-top: auto; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-2); }
.tag--live { border-color: var(--teal); color: var(--teal); }
.tag--now { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.split > :first-child { flex: 1 1 380px; min-width: 0; }
.split > :last-child { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.demo-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; color: var(--text-2); }

.steps { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { flex: 1 1 220px; min-width: 0; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 20px/1 var(--display); margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.roadmap { display: flex; flex-direction: column; }
.roadmap > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.roadmap > div:last-child { border-bottom: 1px solid var(--border); }
.roadmap .when { flex: 0 0 150px; }
.roadmap .what { flex: 1 1 360px; min-width: 0; }
.roadmap p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.kv { display: flex; flex-direction: column; }
.kv div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.kv div:last-child { border-bottom: 1px solid var(--border); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; color: var(--muted); }

.risk-box { max-width: 780px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); }
.risk-box ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }

/* Check page */
.check-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.check-form input, .check-form select { min-height: 52px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 16px var(--body); }
.check-form input { flex: 1 1 360px; min-width: 0; }
.check-form select { flex: 0 1 180px; }
.check-form .btn { min-height: 52px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.examples button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font: inherit; cursor: pointer; }
.examples button:hover { border-color: var(--border-strong); color: var(--text); }
#result { margin-top: 32px; }
.cta-strip { margin-top: 28px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--border-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-2); }

/* Install page */
.install-steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.install-steps li { position: relative; padding: 20px 22px 20px 72px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.install-steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 18px/36px var(--display); text-align: center; }
.install-steps strong { display: block; font-size: 18px; }
.install-steps p { margin: 4px 0 0; color: var(--muted); }
.code-copy { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.code-copy button { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: 14px var(--body); cursor: pointer; }
.perm { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.perm th, .perm td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--border); vertical-align: top; }
.perm th { color: var(--text); font-weight: 600; white-space: nowrap; }
.perm td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

.prose h2 { font-size: 28px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text-2); }

/* Footer */
.site-footer { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 8px 0 0; font-size: 14px; color: var(--muted); max-width: 520px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.foot-links a { color: var(--muted); display: inline-flex; min-height: 32px; align-items: center; }
