/* Self-hosted Space Grotesk (variable, 400-700) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2?v=1') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2?v=1') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DON'T DIE — dontdie.games landing page.
   Tokens match play.dontdie.games (play-dontdie-host/public/styles.css). */
:root {
  --bg: #000000;
  --surface: #141414;
  --surface-2: #0B0B0B;
  --line: #2A2A2A;
  --orange: #FF8A00;
  --orange-hi: #FFA233;
  --gold: #F5C542;
  --text: #FFFFFF;
  --dim: #9A9A9A;
  --live: #22C55E;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius: 18px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange);
  color: #111;
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg {
  padding: 15px 26px; font-size: 17px;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 0, .55);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: #3a3a3a; }
.btn-ico { width: 18px; height: 18px; margin-left: -4px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1a1a1a; border: 1.5px solid #3a3a3a;
  font-weight: 700; font-size: 15px; line-height: 1;
}
.logo-word { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.nav-links { display: none; gap: 28px; font-size: 14px; font-weight: 500; color: var(--dim); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 640px; height: 640px; max-width: 120vw;
  background: radial-gradient(closest-side, rgba(255, 138, 0, .22), rgba(245, 197, 66, .06) 55%, transparent 75%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim);
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}
.hero-beta { margin: 0; }
.hero-beta .beta-badge { display: inline-block; font-size: 12px; padding: 5px 10px; margin: 0; }
.wordmark {
  margin: 20px 0 18px;
  font-size: clamp(76px, 25vw, 156px);
  line-height: .86;
  font-weight: 700;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.wordmark-dot { color: var(--orange); }
.lede {
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.sub { margin-top: 14px; color: var(--dim); font-size: 17px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 auto; }
.fine { margin-top: 14px; color: var(--dim); font-size: 13px; }

.hero-art {
  position: relative;
  aspect-ratio: 16 / 12;
  margin: 0 4px;
}
.shot {
  position: absolute;
  width: 82%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-back { right: 0; top: 0; transform: rotate(4deg); opacity: .9; }
.shot-front {
  left: 0; bottom: 0; transform: rotate(-3deg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(245, 197, 66, .18), 0 0 60px -10px rgba(245, 197, 66, .28);
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.eyebrow {
  color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
h2 {
  margin-top: 8px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.05; font-weight: 700; letter-spacing: -.025em;
}

/* Game cards */
.games { display: grid; gap: 18px; }
.game {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.game:hover { border-color: #3d3d3d; transform: translateY(-2px); }
.game-art { position: relative; display: block; overflow: hidden; background: #000; }
.game-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.game:hover .game-art img { transform: scale(1.03); }
.game-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.game p { color: var(--dim); font-size: 15px; }
.game-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-meta { font-size: 13px; color: var(--dim); font-weight: 500; }

.tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px;
}
.tag-live { background: rgba(0, 0, 0, .72); color: var(--text); border: 1px solid rgba(255, 255, 255, .12); }
.tag-live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); margin-right: 6px; vertical-align: 1px;
}
.tag-beta { background: var(--gold); color: #111; }
.tag-soon { background: rgba(0, 0, 0, .72); color: var(--gold); border: 1px solid rgba(245, 197, 66, .3); }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.step-num {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 14px;
}
.step-num-gold { color: var(--gold); }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 15px; }
.beta-note {
  margin-top: 18px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed #3a3a3a; border-radius: 14px;
  color: var(--dim); font-size: 14px;
}
.beta-badge {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #111; background: var(--gold);
  padding: 3px 8px; border-radius: 6px; margin-top: 1px;
}

/* Coming soon */
.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.soon-card {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: #000;
}
.soon-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .62; filter: saturate(.85); }
.soon-card h3 {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .9));
  font-size: 15px; font-weight: 700;
}
.soon-card .tag { font-size: 10px; top: 10px; left: 10px; }
.soon-more {
  margin-top: 18px; color: var(--dim); font-size: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.soon-more span {
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
}

/* Final CTA */
.final { padding: 72px 0 80px; }
.final-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.final-inner h2 { margin: 0; }
.final-inner p { color: var(--dim); font-size: 17px; margin-bottom: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--dim); }
.footer-links a:hover { color: var(--text); }
.copy { font-size: 13px; color: #8a8a8a; }

/* ≥ 720px */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .nav-links { display: flex; }
  .cta-row .btn { flex: 0 0 auto; }
  .games { grid-template-columns: 1fr 1fr; gap: 22px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .soon { grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; }
  .hero-glow { inset: -10% -6% auto auto; width: 820px; height: 820px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 36px; }
  .game-body { padding: 24px 26px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.gold { color: var(--gold); }
.final { position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 55%;
  width: 720px; height: 420px; max-width: 140vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 138, 0, .16), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; }

/* Coming soon layout */
.soon-grid { display: grid; gap: 22px; }
.soon-intro .section-head { margin-bottom: 14px; }
.soon-lede { color: var(--dim); font-size: 16px; max-width: 40ch; }
.soon-intro .soon-more { margin-top: 16px; }
@media (min-width: 720px) {
  .soon { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .soon-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
  .soon-card h3 { font-size: 17px; padding: 36px 16px 16px; }
}
