:root {
  --bg: #06080d;
  --bg-2: #0a0e16;
  --panel: #0d121c;
  --panel-2: #111827;
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.26);
  --text: #e7ebf2;
  --muted: #a1abbb;
  --faint: #727d8e;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 55%, #a78bfa 100%);
  --radius: 14px;
  --max: 1160px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--panel); padding: 8px 12px; }
.mono { font-family: var(--mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 8, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.brand small { font-weight: 500; color: var(--faint); font-family: var(--mono); font-size: 12px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
nav.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
nav.tabs a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 7px; white-space: nowrap; }
nav.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
nav.tabs a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.btn-primary { color: #04121a; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.55); }
.btn-primary:hover { color: #04121a; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(129, 140, 248, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(167, 139, 250, 0.16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.35;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.03); margin: 0 0 22px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.signals { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--faint); }
.signals li { display: flex; align-items: center; gap: 8px; }
.signals svg { width: 14px; height: 14px; color: var(--green); }

/* Panels */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--panel);
  box-shadow: 0 40px 100px -50px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--faint); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.panel-note { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* Console */
.console ol { list-style: none; margin: 0; padding: 18px 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.75; min-height: 278px; }
.console li { white-space: pre-wrap; color: var(--muted); }
.console li.cmd { color: var(--text); }
.console li.cmd::before { content: "$ "; color: var(--cyan); }
.console li.warn { color: var(--amber); }
.console li.ok { color: var(--green); }
.console li.dim { color: var(--faint); }
.js .console li.pending { visibility: hidden; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); letter-spacing: 0.04em; margin: 0 0 12px; }
section h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; }
.intro { color: var(--muted); font-size: 17.5px; max-width: 62ch; margin: 0 0 44px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split > *, .hero .wrap > *, .tabpanel > * { min-width: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--cyan); padding-top: 2px; }
.steps h3 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Demo table */
.demo table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.demo th { text-align: left; font-weight: 500; color: var(--faint); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.demo td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.demo td:first-child { color: var(--text); font-family: var(--mono); font-size: 12.5px; }
.demo td.num { font-variant-numeric: tabular-nums; }
.demo td small { display: block; font-size: 11px; color: var(--faint); }
.demo tr.flag td { background: rgba(248, 113, 113, 0.045); }
.demo .total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.demo .total strong { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.table-scroll { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.badge.div { color: var(--red); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.badge.pend { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.badge.scan { color: var(--faint); border-color: var(--line-2); background: transparent; }

/* Tabs component */
.tablist { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); margin: 0 0 20px; }
.tablist button { font: inherit; font-size: 14.5px; color: var(--muted); background: transparent; border: 0; padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.tablist button:hover { color: var(--text); }
.tablist button[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
html:not(.js) .tablist { display: none; }
.tabpanel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; padding: 32px; }
.tabpanel[hidden] { display: none !important; }
html:not(.js) .tabpanel + .tabpanel { border-top: 1px solid var(--line); }
.tabpanel h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.tabpanel p { margin: 0 0 18px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.checks li strong { color: var(--text); font-weight: 600; }
.flow { display: grid; gap: 10px; align-content: center; font-family: var(--mono); font-size: 12.5px; }
.flow span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.025); color: var(--muted); }
.flow span b { font-weight: 500; color: var(--text); }
.flow .arrow { justify-content: center; border: 0; background: none; padding: 0; color: var(--faint); }
.flow .out { border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.06); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.card .num { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }
.card h3 { margin: 10px 0 8px; font-size: 18px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Solo note and CTA */
.solo { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 24px; color: #04121a; background: var(--grad); }
.solo h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.015em; }
.solo p { margin: 0; color: var(--muted); }
.cta { text-align: center; padding: 104px 0; border-bottom: 0; }
.cta h2 { margin-bottom: 14px; }
.cta .intro { margin: 0 auto 32px; }
.cta .actions { justify-content: center; }

/* Profile */
.profile-head { padding: 80px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.profile-head::before { content: ""; position: absolute; inset: -40% 0 auto; height: 520px; background: radial-gradient(40% 60% at 30% 40%, rgba(34, 211, 238, 0.14), transparent 70%), radial-gradient(35% 50% at 70% 30%, rgba(167, 139, 250, 0.14), transparent 70%); pointer-events: none; }
.profile-head .wrap { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.profile-head .avatar { width: 112px; height: 112px; font-size: 38px; }
.profile-head h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 8px; }
.profile-head p { margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Legal pages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.page-head p { color: var(--muted); max-width: 64ch; margin: 0; font-size: 17.5px; }
.legal { padding: 56px 0 96px; border-bottom: 0; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 21px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.updated { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin: 16px 0 0; }
.legal .tabpanel { display: block; padding: 28px 32px; }
.legal .tabpanel h3 { font-size: 19px; }

/* Footer */
footer.site { padding: 36px 0 48px; font-size: 14px; color: var(--faint); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero .wrap, .split, .tabpanel { grid-template-columns: 1fr; }
  .cards, .principles { grid-template-columns: 1fr; }
  .solo { grid-template-columns: 1fr; text-align: left; }
  .hero { padding: 64px 0 64px; }
  section { padding: 72px 0; }
}
@media (max-width: 760px) {
  header.site .wrap { height: auto; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  nav.tabs { overflow-x: auto; scrollbar-width: none; }
  nav.tabs::-webkit-scrollbar { display: none; }
  .profile-head .wrap { grid-template-columns: 1fr; }
  .tabpanel { padding: 22px; }
  .demo td, .demo th { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
