/* Cyan Harbor Studios — "Nocturne"
   Tokens lifted from apps/mobile/src/design/tokens.ts (Inter + Menlo, near-black
   ground, one blurple accent as line and glow, warm amber as the only heat
   signal) so the site and the games read as one product. Shared by every page. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap");

:root {
  --bg: #161826;
  --surface: #1e2030;
  --divider: #2a2d40;
  --text: #eceaf6;
  --muted: #9d9ab3;
  --faint: #6d6a84;
  --accent: #9184d9;
  --accent-100: #cfc9f1;
  --accent-200: #b6ade9;
  --heat: #f0b79b;
  --glow: rgba(145, 132, 217, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  /* One soft floodlight from above — the app's accentGlow, at room scale. */
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(145, 132, 217, 0.13), transparent 70%);
  background-repeat: no-repeat;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* --- masthead ---------------------------------------------------------- */
.masthead {
  display: flex; align-items: center; gap: 11px;
  padding: 28px 0; margin-bottom: 8px;
}
.mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(145, 132, 217, 0.14), 0 0 22px var(--glow);
}
.masthead a.wordmark {
  color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.masthead nav { margin-left: auto; display: flex; gap: 24px; }
.masthead nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 140ms ease;
}
.masthead nav a:hover { color: var(--accent-100); }

/* --- type -------------------------------------------------------------- */
.eyebrow {
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-200); margin: 0 0 18px;
}
h1 {
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
  margin: 0 0 22px; max-width: 15ch;
}
h1 .dim { color: var(--muted); }
h2 {
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin: 0 0 28px;
}
h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 10px; font-weight: 600; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 40ch; }
p { margin: 0 0 16px; }
a { color: var(--accent-100); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; color: var(--faint); line-height: 1.6; }

header.hero { padding: 64px 0 76px; }
section { padding: 60px 0; border-top: 1px solid var(--divider); }

/* --- feature rows: labelled blocks, not bullet lists -------------------- */
.rows { display: grid; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: 14px; overflow: hidden; }
.row {
  background: var(--bg); padding: 20px 22px;
  display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: baseline;
}
.row dt {
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-200); padding-top: 3px;
}
.row dd { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 7px; }
}

/* --- game card --------------------------------------------------------- */
.game {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--divider); border-radius: 16px; padding: 30px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(145, 132, 217, 0.08), transparent 60%),
    var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}
.game:hover { border-color: var(--accent); transform: translateY(-2px); }
.game h3 { margin-bottom: 12px; font-size: 24px; }
.game p { color: var(--muted); margin-bottom: 20px; max-width: 46ch; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--heat); margin-bottom: 16px;
}
.badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--heat); box-shadow: 0 0 8px var(--heat);
}
.go { font-size: 14px; font-weight: 500; color: var(--accent-100); }

/* --- stat strip (echoes the app's stat line) --------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--divider); }
.stat b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.stat span {
  font-family: "JetBrains Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}

/* --- legal pages ------------------------------------------------------- */
.legal h3 { margin-top: 34px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 9px; }

footer {
  padding: 44px 0 72px; margin-top: 8px; border-top: 1px solid var(--divider);
  color: var(--faint); font-size: 13.5px;
}
footer a { color: var(--faint); }
