/* Shared by every page: tokens, reset, type, buttons, the top bar.
   Load order — home: base → pages → home · Explore: base → track → pages ·
   Contact: base → pages · demo: base → track → demo
   Kept demo-safe: everything here also sits over the demo's full-screen 3D stage, so the top
   bar is transparent and the page surfaces (solid bar, footer, panels) live in pages.css. */

/* ── tokens ──
   A near-neutral graphite ground, one white, three greys and a single accent (--signal, a cool
   cobalt) that means "full / live" wherever it appears. Type: Host Grotesk, with Geist Mono for the
   few small labels that already exist. */
:root {
  --bg: #0b0c0d;
  --fg: #edeef0;
  --dim: #9a9ea4;     /* body copy */
  --faint: #5e6268;   /* labels, second half of headlines */
  --line: #222428;    /* hairlines */
  --raise: #111214;   /* flat panel surface */
  --raise-2: #18191c; /* tiles inside a panel */
  --signal: #5b8cff;

  --pad: clamp(16px, 4vw, 48px);
  --wrap: 1200px; /* content width on the scrolling pages */
  /* side gutter that centres --wrap; never less than --pad (% resolves against each element's box) */
  --gutter: max(var(--pad), calc((100% - var(--wrap)) / 2));

  /* Archivo on the scrolling pages; the demo page only loads Inter Tight, so it falls back to that */
  --sans: 'Host Grotesk', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--signal); outline-offset: 3px; }

/* ── type ── */
h1, h2 {
  font-weight: 600;
  font-size: clamp(44px, 5.4vw, 84px); line-height: 0.95; letter-spacing: -0.025em;
  text-wrap: balance;
}
/* two-tone headlines: bright opening, the second half in a quieter grey and lighter weight */
:is(h1, h2) .dim { color: var(--faint); font-weight: 400; }
.lede { margin-top: 22px; font-size: clamp(15px, 1.1vw, 17.5px); line-height: 1.6; color: var(--dim); max-width: 40ch; text-wrap: pretty; }

/* ── buttons: flat rectangles with a 2px radius; solid white for the primary, hairline for the rest ── */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 2px;
  border: 1px solid #383b40; background: transparent; color: var(--fg);
  font-weight: 500; font-size: 14.5px; letter-spacing: 0;
  transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: var(--dim); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.cta-sm {
  height: 32px; display: flex; align-items: center; padding: 0 13px; border-radius: 2px;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 13px; transition: background .2s, border-color .2s;
}
.cta-sm:hover { background: #fff; border-color: #fff; }

/* ── top bar: brand and nav together on the left, the call to action on the right ── */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 40px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); }
.mark { width: 17px; height: 18px; }
.wordmark { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1; }
.links { display: flex; gap: 26px; }
.links a { font-size: 13.5px; color: var(--dim); transition: color .2s; }
.links a:hover { color: var(--fg); }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; z-index: 20; }

/* ── responsive ── */
@media (max-width: 1080px) { .links { gap: 20px; } }
@media (max-width: 560px) {
  h1, h2 { font-size: clamp(36px, 10.5vw, 50px); }
  .lede { font-size: 15px; margin-top: 14px; }
  .ctas { margin-top: 22px; }
  .btn { height: 44px; padding: 0 17px; font-size: 14px; }
}
