@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/IBMPlexSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/IBMPlexSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --void: #0E1220;
  --basalt: #181E30;
  --ridge: #283049;
  --stone: #8B93A7;
  --mist: #C6CBD8;
  --starlight: #F1F3F8;
  --signal: #E8B44F;
  --signal-dim: #7A5E2A;
  --warm: #2A2A2F;
  --deep: #07080C;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--void); color: var(--mist); font: 400 17px/1.6 var(--sans); }
a { color: var(--signal); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { background: var(--ridge); color: var(--starlight); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2, h3 { color: var(--starlight); line-height: 1.2; }
h1 { font: 700 clamp(2.6rem, 6.5vw, 4.4rem)/1.05 var(--mono); letter-spacing: -0.02em; margin: 0.2em 0; }
h2 { font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.15 var(--mono); letter-spacing: -0.01em; margin: 0 0 0.6em; }
h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 0.4em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.narrow.wide { max-width: 880px; }
main > section { padding: 72px 0; }
main > section.wrap { padding: 72px 24px; }
[hidden] { display: none !important; }
.band { background: var(--basalt); border-block: 1px solid var(--ridge); }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(14, 18, 32, 0.92); border-bottom: 1px solid var(--ridge); }
.header-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--starlight); font-weight: 600; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--mist); font-size: 0.95rem; }
.site-nav a:hover { color: var(--starlight); }
.nav-cta { color: var(--void) !important; background: var(--signal); padding: 4px 12px; border-radius: 6px; font-weight: 600; }
.menu-toggle { display: none; margin-left: auto; background: none; color: var(--starlight); border: 1px solid var(--ridge); border-radius: 6px; padding: 6px 12px; font: inherit; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero > *, .split > *, .cards > * { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 14px; font: 700 0.82rem var(--mono); color: var(--signal); text-transform: uppercase; letter-spacing: 0.28em; margin: 0; }
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.tagline { font: 600 1.4rem/1.3 var(--sans); color: var(--starlight); margin: 0 0 0.8em; }
.lede { color: var(--stone); max-width: 36em; }

.install { margin-top: 28px; }
.install-tabs { display: flex; gap: 4px; }
.install-tabs [role="tab"] { background: none; border: 1px solid var(--ridge); border-bottom: none; color: var(--stone); font: 400 0.85rem var(--mono); padding: 6px 14px; border-radius: 6px 6px 0 0; cursor: pointer; }
.install-tabs [aria-selected="true"] { background: var(--basalt); color: var(--starlight); }
.install-chip { display: flex; align-items: center; gap: 12px; background: var(--basalt); border: 1px solid var(--ridge); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 14px 16px; }
.install-chip code { flex: 1; min-width: 0; color: var(--starlight); overflow-x: auto; white-space: nowrap; }
.copy { flex: none; background: var(--signal); color: var(--void); border: 0; border-radius: 6px; padding: 6px 12px; font: 600 0.85rem var(--sans); cursor: pointer; }
.copy:hover { filter: brightness(1.1); }
.install-note { font-size: 0.9rem; color: var(--stone); }

.hero-title { display: flex; align-items: center; gap: 0.3em; }
.hero-mark { width: 0.85em; height: 0.85em; flex: none; }
.hero-art { margin: 0; }
.hero-art svg, .galaxy-art { width: 100%; height: auto; }
.chart-grid { fill: none; stroke: var(--ridge); stroke-width: 1; opacity: 0.55; }
.chart-grid.dashed { stroke-dasharray: 2 5; }
.chart-frame { fill: none; stroke: var(--ridge); stroke-width: 1; }
.chart-ticks { stroke: var(--stone); stroke-width: 1; opacity: 0.6; }
.chart-coord { fill: var(--stone); font: 400 8px var(--mono); letter-spacing: 0.08em; opacity: 0.8; }
.field circle { fill: var(--starlight); }
.field .f1 { opacity: 0.25; }
.field .f2 { opacity: 0.45; }
.field .f3 { opacity: 0.7; }
.ring { fill: none; stroke: var(--ridge); stroke-width: 1; stroke-dasharray: 2 4; }
.ring-ticks { stroke: var(--stone); stroke-width: 1; }
.ring.ring-shared { stroke: var(--signal-dim); }
.ring-ticks.ring-shared { stroke: var(--signal); }
.const { fill: none; stroke: var(--mist); stroke-width: 0.8; opacity: 0.45; }
.leader { fill: none; stroke: var(--stone); stroke-width: 0.8; }
.star { fill: var(--starlight); }
.star.dim { opacity: 0.6; }
.star.hit { fill: var(--signal); }
.reticle { fill: none; stroke: var(--signal); stroke-width: 1.2; }
.query { fill: none; stroke: var(--signal); stroke-width: 1.3; stroke-dasharray: 5 4; }
.chart-label { fill: var(--mist); font: 700 10px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.query-label { fill: var(--signal); font: 400 12px var(--mono); }
.score { fill: var(--signal); font: 700 10px var(--mono); letter-spacing: 0.08em; }
.twinkle { animation: twinkle 4s ease-in-out infinite; }
.tw2 { animation-delay: -1.3s; }
.tw3 { animation-delay: -2.6s; }
@keyframes twinkle { 50% { opacity: 0.08; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--basalt); border: 1px solid var(--ridge); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--stone); }
.cards-title { margin: 40px 0 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
#what .lede { max-width: none; margin-bottom: 32px; }
#what .split h3 { margin-top: 0; }
#what .cards { margin: 16px 0 48px; }
.facts { margin: 0; padding-left: 1.2em; color: var(--stone); }
.facts li { margin-bottom: 0.6em; }
.terminal { margin: 0; background: var(--deep); border: 1px solid var(--ridge); border-radius: var(--radius); padding: 20px; color: var(--mist); overflow-x: auto; line-height: 1.7; }
.prompt { color: var(--signal); }
.lifecycle { margin: 0; padding-left: 1.2em; }
.lifecycle li { margin-bottom: 0.8em; }
.lifecycle strong { color: var(--starlight); font-family: var(--mono); font-weight: 400; }

.table-wrap { overflow-x: auto; border: 1px solid var(--ridge); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--ridge); vertical-align: top; }
th { color: var(--signal); font: 700 0.8rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; background: var(--warm); }
tbody tr:last-child td { border-bottom: none; }
td:first-child { white-space: nowrap; }


details { border-bottom: 1px solid var(--ridge); padding: 14px 0; }
summary { color: var(--starlight); font-weight: 600; cursor: pointer; }
details p { color: var(--stone); margin: 0.6em 0 0; }

.quickstart { margin-bottom: 1.2em; }
.callout { background: var(--basalt); border: 1px solid var(--ridge); border-left: 3px solid var(--signal); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.callout h3 { margin: 0 0 0.4em; }
.callout p { margin: 0; color: var(--mist); }
.terminal .cmd { color: var(--starlight); }
.terminal .comment { color: var(--stone); }

.site-footer { border-top: 1px solid var(--ridge); padding: 24px 0; color: var(--stone); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; }

.not-found { text-align: center; padding: 120px 24px; }

@media (max-width: 860px) {
  .hero, .split, .cards { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--basalt); border-bottom: 1px solid var(--ridge); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; }
  .nav-cta { margin: 12px 24px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .twinkle { animation: none; } }
