:root {
  --bg: #0b0d12;
  --surface: #141924;
  --surface-2: #1b2130;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8edf5;
  --muted: #8b95a7;
  --faint: #5f6875;
  --accent: #5b9dff;
  --accent-soft: rgba(91, 157, 255, 0.14);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 18, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nav img { width: 32px; height: 32px; border-radius: 8px; }
.nav strong { font-size: 16px; letter-spacing: -0.3px; white-space: nowrap; }
.nav .spacer { flex: 1; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 64px; text-align: center; }
.hero-icon {
  width: 104px; height: 104px; border-radius: 24px;
  border: 1px solid var(--border); margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 0 0 16px;
}
.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #08101f;
  font-weight: 700; font-size: 15px;
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.badge.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.note { color: var(--faint); font-size: 13px; margin-top: 18px; }

/* ---------- features ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.9px; margin: 0 0 12px;
}
.section .lede { color: var(--muted); max-width: 640px; margin: 0 0 40px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.3px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .k {
  display: inline-block; margin-bottom: 14px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -1.2px; margin: 0 0 8px; }
.legal .updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.legal h2 {
  font-size: 20px; letter-spacing: -0.4px;
  margin: 40px 0 12px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--text); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 64px; color: var(--faint); font-size: 14px;
}
.footer-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-row .spacer { flex: 1; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .section { padding: 52px 0; }
  .nav { gap: 8px; padding: 0 16px; }
  .nav a { font-size: 13px; }
  .wrap { padding: 0 16px; }
  .badges { flex-direction: column; align-items: stretch; }
  .badge { justify-content: center; }
}

/* Below this the nav links crowd the wordmark, so drop them — every page
   still links to the others from the footer. */
@media (max-width: 420px) {
  .nav a { display: none; }
}
