:root {
  --navy: #0a1018;
  --navy-2: #121a26;
  --ink: #e8dfc8;
  --muted: #9aa6b5;
  --gold: #d4a017;
  --gold-2: #f0c14b;
  --brick: #8b1e1e;
  --line: rgba(232, 223, 200, 0.12);
  --card: #161f2c;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(10, 16, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.05rem; }
.brand small { color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.65rem; }
.star { width: 28px; height: 28px; fill: var(--gold); }
.nav nav { display: flex; gap: 18px; margin-left: auto; }
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.nav nav a.active, .nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #1a1406; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}
.hero-shade {
  background:
    linear-gradient(180deg, rgba(10,16,24,0.25) 0%, rgba(10,16,24,0.55) 40%, rgba(10,16,24,0.96) 100%),
    linear-gradient(90deg, rgba(10,16,24,0.65), transparent 55%);
}
.hero-copy { position: relative; z-index: 2; padding: 72px 0 56px; }
.kicker {
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 0.85rem;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.02em; line-height: 0.95; margin: 0 0 14px; }
h1 { font-size: clamp(3rem, 8vw, 6.2rem); text-transform: uppercase; max-width: 14ch; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
.lede { max-width: 58ch; color: #d7d0be; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-actions.center { justify-content: center; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  max-width: 720px;
}
.stats li { border-top: 1px solid var(--line); padding-top: 10px; }
.stats b { display: block; font-family: var(--display); font-size: 1.5rem; }
.stats span { color: var(--muted); font-size: 0.88rem; }

.strip { border-block: 1px solid var(--line); background: var(--navy-2); }
.strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.85rem;
}
.strip-row i { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; display: block; }

.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, #0d141e, #0a1018); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.story { max-width: 68ch; color: #d7d0be; font-size: 1.08rem; margin-bottom: 32px; }
.story p { margin: 0 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab.active { color: #1a1406; background: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards.partners { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards.streamers { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
a.card.streamer {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
a.card.streamer:hover {
  border-color: rgba(212, 160, 23, 0.5);
  text-decoration: none;
}
.streamer img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 160, 23, 0.55);
  margin-bottom: 14px;
  background: #0a1018;
}
.streamer .handle {
  margin: -4px 0 8px;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: 1rem;
}
.streamer p:last-child { color: var(--muted); margin: 0; }
.partner-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; }
.partner-links a { font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.card strong { color: var(--gold-2); font-weight: 700; }
.card, .script, .note {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
}
.card.featured { grid-column: span 2; }
@media (max-width: 700px) { .card.featured { grid-column: auto; } }
.badge {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: var(--display);
  margin: 0 0 8px;
}
.card ul, .checklist { color: var(--muted); padding-left: 18px; }
.card h3, .script h3 { font-size: 1.55rem; }
.card .aka {
  margin: -6px 0 10px;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.about-devs { margin-bottom: 18px; }
.about-devs p { max-width: 78ch; }
.dev-grid { margin-top: 8px; }
.nav nav { gap: 14px; }

.scripts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.script { min-height: 160px; }
.script p { color: var(--muted); margin: 0; }
.script .badge { margin-bottom: 6px; }
.script.hide { display: none; }
.house-note {
  margin: -8px 0 22px;
  padding: 16px 18px;
  max-width: 78ch;
  background: #1a120f;
  border: 1px solid rgba(212, 160, 23, 0.28);
}
.house-note a { color: var(--gold-2); }
.script.riven { border-color: rgba(212, 160, 23, 0.35); }

.riven-section {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(212, 160, 23, 0.12), transparent 60%),
    #0c121b;
  border-block: 1px solid rgba(212, 160, 23, 0.22);
}
.riven-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.riven-grid article {
  background: #141c28;
  border: 1px solid rgba(212, 160, 23, 0.22);
  padding: 22px;
}
.riven-grid article.wide { grid-column: 1 / -1; }
.riven-grid span {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.riven-grid p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 32px; align-items: start; }
.note { background: #1a120f; border-color: rgba(212, 160, 23, 0.28); }
.quote { font-family: var(--display); font-size: 1.5rem; color: var(--gold-2); line-height: 1.15; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.steps li { border: 1px solid var(--line); padding: 22px; background: var(--card); }
.steps b { color: var(--gold); font-family: var(--display); letter-spacing: 0.16em; }
code {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  background: #0a1018;
  border: 1px solid var(--line);
  color: var(--gold-2);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-row p { max-width: 560px; margin: 0; line-height: 1.45; text-align: right; }
.footer a { white-space: nowrap; }
.footer .brand { color: var(--ink); }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 8px 12px;
    font-family: var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .nav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin: 0;
  }
  .nav.open nav { display: flex; }
  .nav-cta { display: none; }
  .stats, .steps, .split { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-row p { max-width: none; text-align: left; }
  .strip-row { flex-wrap: wrap; justify-content: center; }
}
