:root {
  --bg: #090b10;
  --surface: #11151e;
  --line: #222a39;
  --fg: #e7ecf3;
  --muted: #9aa7bb;
  --faint: #6b7890;
  --indigo: #818cf8;
  --teal: #2dd4bf;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 17px;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: #a5b0fb; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; color: #cfd8e6; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.top { position: sticky; top: 0; z-index: 20; background: rgb(9 11 16 / .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgb(148 163 184 / .1); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
nav a:hover { color: var(--fg); }
@media (max-width: 680px) { nav a:not(:last-child) { display: none; } }

.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 28px; min-height: 84vh; padding-top: 28px; padding-bottom: 28px; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; }
#logo {
  display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease;
  /* Black plus screen blending: the canvas adds its light to the page and nothing else. */
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
#logo.live { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; margin: auto; display: none; width: 46%; height: auto; }
.hero-art.no-webgl #logo { display: none; }
.hero-art.no-webgl .hero-fallback { display: block; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 3.75vw, 50px); line-height: 1.07; letter-spacing: -.028em; font-weight: 650; }
.grad { white-space: nowrap; color: var(--indigo); background: linear-gradient(90deg, var(--indigo), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { margin: 20px 0 0; color: var(--muted); font-size: 18.5px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 11px; border: 1px solid rgb(148 163 184 / .22); color: var(--fg); text-decoration: none; font-weight: 550; font-size: 15px; transition: border-color .15s, transform .15s; }
.btn:hover { color: var(--fg); border-color: rgb(148 163 184 / .5); transform: translateY(-1px); }
.btn.primary { color: #0a0d14; border: 0; background: linear-gradient(90deg, var(--indigo), var(--teal)); }
.btn.primary:hover { color: #0a0d14; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid rgb(148 163 184 / .14); max-width: 34em; }
.stats dt { font-size: 25px; font-weight: 650; letter-spacing: -.02em; }
.stats dd { margin: 2px 0 0; color: var(--faint); font-size: 13.5px; line-height: 1.35; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; padding-top: 12px; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .lede, .stats { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
}

.band { padding: 72px 0; border-top: 1px solid rgb(148 163 184 / .1); }
.title { margin: 0; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; font-weight: 640; line-height: 1.15; }
.muted { color: var(--muted); max-width: 44em; margin: 12px 0 22px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.card h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; font-weight: 620; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .band { padding: 52px 0; } }

.code { position: relative; margin-top: 14px; background: #0c1018; border: 1px solid var(--line); border-radius: 12px; }
.code[hidden] { display: none; }
pre { margin: 0; padding: 16px 72px 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
pre code { color: #d5deeb; font-size: 1em; font-variant-ligatures: none; }
.copy { position: absolute; top: 8px; right: 8px; z-index: 1; min-height: 30px; padding: 3px 11px; border-radius: 8px; border: 1px solid var(--line); background: #151a25; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.copy:hover { color: var(--fg); }
.tabs { display: flex; gap: 6px; margin-top: 22px; }
.tabs button { min-height: 38px; padding: 6px 14px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 14.5px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--fg); background: var(--surface); border-color: var(--line); }

.shot { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.shot.wide { margin-top: 22px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 22px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.figure-wrap { overflow-x: auto; margin-top: 22px; border-radius: 14px; }
.figure { display: block; width: 100%; min-width: 720px; height: auto; border-radius: 14px; }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { caption-side: bottom; text-align: left; color: var(--faint); font-size: 13.5px; padding-top: 10px; }
th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-weight: 550; font-size: 14px; }
tbody th { font-weight: 500; }
.note { margin-top: 22px; padding: 18px 22px; border-left: 3px solid var(--indigo); background: rgb(129 140 248 / .06); border-radius: 0 12px 12px 0; }
.note h3 { margin: 0 0 6px; font-size: 16px; }
.note p { margin: 0; color: var(--muted); font-size: 15.5px; }
.status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.status > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.status h3 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.status p { margin: 0; color: var(--muted); font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.on { background: var(--teal); }
.dot.off { background: none; border: 2px dashed var(--faint); }
@media (max-width: 860px) { .status { grid-template-columns: 1fr; } }

footer { border-top: 1px solid rgb(148 163 184 / .1); padding: 26px 0 34px; color: var(--faint); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
