/* Tokens. Dark is the default; light follows the system setting. */
:root {
  --bg: #0f1520;
  --panel: #182130;
  --panel-2: #212b38;
  --line: #263140;
  --line-strong: #34414f;
  --ink: #eaedf3;
  --muted: #98a2b3;
  --accent: #5fd6a8;
  --accent-ink: #0b2a1f;
  --safe: #5fd6a8;
  --warn: #f5b04c;
  --bad: #ff6b78;
  --focus: #9be8cb;
  --r: 1.25rem;
  --pad: 1rem;
  --glow: 0 24px 60px -36px rgba(95, 214, 168, .45);
  --shadow: 0 24px 50px -38px rgba(0, 0, 0, .9);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #e9ecf1;
    --panel: #ffffff;
    --panel-2: #f2f4f8;
    --line: #d5dbe5;
    --line-strong: #b5bfcf;
    --ink: #0f1520;
    --muted: #566072;
    --accent: #138a62;
    --accent-ink: #ffffff;
    --safe: #0c7a55;
    --warn: #8f5400;
    --bad: #b8241c;
    --focus: #138a62;
    --glow: 0 24px 60px -40px rgba(19, 138, 98, .4);
    --shadow: 0 24px 50px -40px rgba(15, 21, 32, .4);
  }
}
@media (min-width: 56rem) { :root { --pad: 1.4rem; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: .4rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 99px; z-index: 20; }
.skip:focus { top: .5rem; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 56rem) { .wrap { padding: 0 1.5rem; } }
.muted { color: var(--muted); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 3.6rem; gap: .8rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; min-height: 2.75rem; }
.brand-mark { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.brand-name { font-weight: 800; letter-spacing: .06em; }
.brand-sub { color: var(--muted); padding-left: .65rem; border-left: 1px solid var(--line-strong); }
.bar-end { display: flex; align-items: center; gap: .7rem; }
.net { display: none; color: var(--muted); font-size: .88rem; }
@media (min-width: 40rem) { .net { display: inline; } }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--panel); font-size: .88rem; font-weight: 650; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.pill[data-state="live"] .dot { background: var(--safe); box-shadow: 0 0 0 0 var(--safe); animation: ping 2.4s ease-out infinite; }
.pill[data-state="paused"] .dot, .pill[data-state="replay"] .dot, .pill[data-state="demo"] .dot { background: var(--warn); }
.pill[data-state="offline"] .dot { background: var(--bad); }
@keyframes ping { 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }


/* landing */
.hero { padding: 3rem 0 2.2rem; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 38rem; }
.actions { display: grid; gap: .7rem; margin-top: 1.8rem; max-width: 22rem; }
@media (min-width: 40rem) { .actions { grid-template-columns: auto auto; max-width: none; justify-content: start; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; padding: 0 1.8rem; border-radius: 99px; font: 750 1.02rem var(--sans); text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink); background: var(--panel); transition: filter .15s, border-color .15s; }
.btn:hover { border-color: var(--accent); }
.btn.main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.main:hover { filter: brightness(1.07); }
.band { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.band h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cols { display: grid; gap: .8rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); }
.tile h3 { font-size: 1.05rem; }
.tile p { color: var(--muted); font-size: .94rem; margin-top: .35rem; }
.links { display: grid; gap: .6rem; }
@media (min-width: 48rem) { .links { grid-template-columns: repeat(3, 1fr); } }
.links a { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 700; }
.links a span { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; margin-top: .2rem; }
.links a:hover { border-color: var(--accent); }
.foot a { color: var(--muted); margin-right: 1rem; }
.foot { padding-top: 1.4rem; padding-bottom: 2.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .primary.is-busy::before { animation-duration: 2s !important; animation-iteration-count: infinite !important; } }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 800; }
.lede { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 40rem; }
