:root {
  --bg-void: #0a0d12;
  --bg-panel: #10141b;
  --bg-panel-alt: #0d1116;
  --bg-raised: #1a1f28;
  --ice: #5fd4e8;
  --ice-dim: #3a8fa3;
  --gold: #cbaa5c;
  --text-primary: #eef2f6;
  --text-muted: #8a94a3;
  --text-faint: #5b6472;
  --border: rgba(255,255,255,0.08);
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10,13,18,0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ice); }

.btn-play {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-play--nav {
  background: var(--ice);
  color: #04181c;
  padding: 10px 22px;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-play--nav:hover { background: #7fe0f0; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/wallsr.png');
  background-size: 320px;
  background-repeat: repeat;
  filter: grayscale(70%) brightness(.35) contrast(1.1);
  image-rendering: pixelated;
  transform: scale(1.1);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10,13,18,0.35) 0%, rgba(10,13,18,0.85) 65%, var(--bg-void) 100%),
    linear-gradient(180deg, rgba(10,13,18,0.6) 0%, rgba(10,13,18,0.3) 30%, var(--bg-void) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
}
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  image-rendering: pixelated;
}
.hero-logo .logo-top { width: 220px; opacity: .9; }
.hero-logo .logo-bottom { width: 230px; }
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: .95;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-play--hero {
  background: var(--ice);
  color: #04181c;
  padding: 16px 32px;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(95,212,232,0.25);
}
.btn-play--hero:hover { background: #7fe0f0; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(95,212,232,0.35); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--ice); background: rgba(95,212,232,0.08); }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
}
.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--ice);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 24px;
}
.section--dark {
  max-width: none;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-left: 24px;
  padding-right: 24px;
}
.section--dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: .5px;
  margin-bottom: 22px;
  max-width: 720px;
}
.section--dark h2, .port-section h2 { text-align: center; margin-left: auto; margin-right: auto; }
.section--dark .eyebrow { text-align: center; }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 18px;
}
.lede--center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.section p { color: var(--text-muted); max-width: 640px; margin-bottom: 16px; }
.section p strong { color: var(--text-primary); }

.section-grid--text-image {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: start;
}
.quote-block {
  background: var(--bg-raised);
  border-left: 3px solid var(--gold);
  padding: 28px;
  border-radius: 2px;
}
.quote-block blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}
.quote-attr { margin-top: 14px; font-size: .85rem; color: var(--text-faint); }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-raised);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ice);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.class-grid, .champion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.class-card, .champion-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.class-card:hover, .champion-card:hover {
  border-color: var(--ice-dim);
  transform: translateY(-3px);
}
.class-card h3, .champion-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.class-race { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.class-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.class-stats span {
  font-size: .78rem;
  background: rgba(95,212,232,0.1);
  color: var(--ice);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.class-gear { font-size: .85rem; color: var(--text-muted); }
.class-spells { font-size: .85rem; color: var(--gold); margin-top: 6px; }
.champion-card p { font-size: .9rem; color: var(--text-muted); max-width: none; margin-bottom: 0; }

.port-section { text-align: left; }
.port-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  margin-top: 36px;
  align-items: start;
}
code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em;
}
.text-link {
  color: var(--ice);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
  font-size: .95rem;
}
.text-link:hover { text-decoration: underline; }
.port-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.port-fact {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  font-size: .9rem;
  color: var(--text-muted);
}
.port-fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 24px 60px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer p {
  max-width: 640px;
  margin: 0 auto 12px;
  font-size: .8rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ice); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .section-grid--text-image, .port-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 20px; }
}
