/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:       #050d1a;
  --surface:  #0a1628;
  --border:   #1a3a5c;
  --accent:   #00c8ff;
  --danger:   #ff3344;
  --safe:     #22c55e;
  --caution:  #f59e0b;
  --text:     #f1f5f9;
  --muted:    #64748b;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius:   12px;
  --max-w:    1100px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ─── Utility ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); }
.label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
}
.muted { color: var(--muted); }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.nav-logo .hex { color: var(--accent); font-size: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ─── Sections ───────────────────────────────────────────────── */
section { padding: 80px 0; }

/* ─── Prose pages (privacy, eula) ───────────────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 1.2rem; margin: 32px 0 12px; color: var(--accent); }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
