/* DeviceInfo X website. Tokens mirror DESIGN.md ("The Lab Bench"). */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #080c14;
  --surface: #0e1420;
  --panel: #131b28;
  --line: #1e2a3e;
  --text: #e8f0ff;
  --muted: #9aa9c2;
  --cyan: #00d4ff;
  --pink: #ff4f9a;
  --green: #00ff88;
  --violet: #b565ff;
  --orange: #ff6b35;
  --on-accent: #080c14;
  --glow: 0 0 24px rgba(0, 212, 255, 0.25);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f0f4ff;
    --surface: #ffffff;
    --panel: #ffffff;
    --line: #dde4f0;
    --text: #0a1628;
    --muted: #4c5b78;
    --cyan: #005fee;
    --pink: #d11975;
    --green: #127e42;
    --violet: #9643dc;
    --orange: #c24206;
    --on-accent: #ffffff;
    --glow: none;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Space Grotesk", system-ui, sans-serif;
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark { font: 700 14px/1 "Orbitron", sans-serif; letter-spacing: 2px; white-space: nowrap; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 16px 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font: 700 12px/1 "Orbitron", sans-serif; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; }
h1 { font: 700 clamp(34px, 6vw, 54px)/1.08 "Space Grotesk", sans-serif; letter-spacing: -1px; margin: 14px 0 18px; text-wrap: balance; }
.lede { font-size: 19px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; background: var(--cyan); color: var(--on-accent); font-weight: 700; text-decoration: none; box-shadow: var(--glow); }
.cta:hover { filter: brightness(1.08); }
.cta-note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Readout panel in the hero */
.readout { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.readout-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.readout-head span:first-child { font: 700 11px/1 "Orbitron", sans-serif; letter-spacing: 1.4px; color: var(--pink); }
.live { font: 700 10px/1 "Orbitron", sans-serif; letter-spacing: 1.4px; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.big { font: 700 52px/1 "Orbitron", sans-serif; letter-spacing: -1px; color: var(--pink); }
.big small { font-size: 20px; letter-spacing: 0.5px; }
.rows { margin: 16px 0 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rows li span:first-child { color: var(--muted); }
.rows li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font: 700 clamp(26px, 4vw, 34px)/1.2 "Space Grotesk", sans-serif; letter-spacing: -0.5px; margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.station { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; border-top: 3px solid var(--accent); }
.station h3 { font: 700 12px/1 "Orbitron", sans-serif; letter-spacing: 1.6px; color: var(--accent); margin: 0 0 12px; text-transform: uppercase; }
.station p { margin: 0; font-size: 15px; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 40px; margin: 0; padding: 0; list-style: none; }
.principles strong { display: block; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: 15px; }

/* Legal pages */
.doc { padding: 48px 16px 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; scroll-margin-top: 80px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 12px; padding: 18px 20px; margin: 0 0 8px; }
.summary p { margin: 0 0 8px; font-weight: 600; }
.summary ul { margin: 0; }
.toc { columns: 2 240px; padding-left: 22px; font-size: 15px; }
.toc li { break-inside: avoid; margin: 0 0 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.caps { text-transform: uppercase; font-size: 15px; }

/* Trader details */
.trader { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 16px 0; }
.trader dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.trader dt { color: var(--muted); }
.trader dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 48px 16px 40px; gap: 32px; }
  .wordmark { font-size: 12px; letter-spacing: 1.5px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .trader dl { grid-template-columns: 1fr; gap: 2px; }
  .trader dd { margin-bottom: 10px; }
}
