/* ══════════════════════════════════════════════════
   MMOHeim — Valheim-inspired design  (v3)
   Palette: fire/ice/gold · Layout: valheim.com feel
   ══════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void:    #04060a;
  --bg-deep:    #07090f;
  --bg-panel:   #0a0e16;
  --bg-card:    #0f1620;
  --bg-card-h:  #141d2a;

  /* Borders */
  --border:       #1e2d3d;
  --border-warm:  #3a2800;
  --border-light: #2e4058;

  /* Brand palette */
  --gold:        #c9a227;
  --gold-bright: #e8c547;
  --gold-dim:    #6e570f;

  --fire:        #e85d04;
  --fire-bright: #ff7a33;
  --fire-dim:    rgba(232,93,4,0.15);

  --ice:         #4dd4e8;
  --ice-dim:     #2a9db0;
  --ice-faint:   rgba(77,212,232,0.08);

  /* Text */
  --text:        #dce5ee;
  --text-muted:  #9aacbe;
  --text-dim:    #556070;

  /* Specials */
  --discord:     #5865f2;

  /* Typography — Averia Serif Libre is Valheim's font */
  --font-display: "Cinzel", serif;          /* brand headings only */
  --font-valheim: "Averia Serif Libre", Georgia, serif; /* everywhere else */
  --font-ui:      "Inter", system-ui, sans-serif;

  /* Spacing */
  --header-h: 72px;
  --max-w:    1200px;
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  20px;

  /* Shadows / glows */
  --glow-fire: 0 0 30px rgba(232,93,4,0.30), 0 0 80px rgba(232,93,4,0.10);
  --glow-gold: 0 0 24px rgba(201,162,39,0.30);
  --glow-ice:  0 0 24px rgba(77,212,232,0.20);

  /* Ornamental divider character */
  --ornament: "── ᛟ ──";
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-valheim);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg-void);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient atmospheric gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 10% 0%,  rgba(77,212,232,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 90% 100%, rgba(232,93,4,0.04)  0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--ice); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

/* ── Layout helpers ─────────────────────────────── */
.container {
  width: min(var(--max-w), calc(100% - 3rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: 720px;
}

/* ══════════════════════════════════════════════════
   HEADER — solid bar with gradient underline
   ══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(4,6,10,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--ice-dim) 20%,
    var(--gold) 50%,
    var(--fire) 80%,
    transparent 100%);
  opacity: 0.5;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  width: 53px;
  height: 53px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: contain;
  transition: transform .3s;
}

.logo-link:hover img {
  transform: scale(1.06);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  grid-column: 2;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(220,229,238,0.75);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-link:hover  { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--gold-bright); background: rgba(201,162,39,0.09); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  grid-column: 3;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  line-height: 1;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  border-color: #4752c4;
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 0 24px rgba(88,101,242,0.45);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire) 0%, #a03d00 100%);
  color: #fff;
  border-color: rgba(255,122,51,0.35);
  letter-spacing: 0.1em;
}
.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: var(--glow-fire);
  color: #fff;
  transform: translateY(-2px);
}

.btn-install {
  background: linear-gradient(135deg, #4caf6a 0%, #2d7a42 100%);
  color: #fff;
  border-color: rgba(45, 122, 66, 0.45);
  letter-spacing: 0.1em;
}
.btn-install:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 24px rgba(76, 175, 106, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.btn-thunderstore {
  background: linear-gradient(135deg, #6ecff0 0%, #2a9fd4 100%);
  color: #fff;
  border-color: rgba(42, 159, 212, 0.45);
}
.btn-thunderstore:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 24px rgba(110, 207, 240, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.btn-youtube {
  background: #ff0000;
  color: #fff;
  border-color: #cc0000;
}
.btn-youtube:hover {
  background: #cc0000;
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: rgba(201,162,39,0.5);
}
.btn-outline:hover {
  background: rgba(201,162,39,0.09);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* Large CTA variant */
.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 0.85rem;
  border-radius: var(--r-xs);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background .2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* ══════════════════════════════════════════════════
   HERO — full viewport, centered (valheim.com style)
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../art1.png") center / cover no-repeat var(--bg-void);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(4,6,10,0.45) 0%,
      rgba(4,6,10,0.55) 50%,
      var(--bg-void)    100%),
    linear-gradient(0deg, rgba(4,6,10,0.3) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) 1rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
}

.hero-logo-img {
  width: clamp(220px, 34vw, 360px);
  height: auto;
  margin-bottom: 1.25rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.55));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(77,212,232,0.3);
  padding: 0.38rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
  background: rgba(77,212,232,0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 1.2rem;
  color: var(--gold-bright);
}

.hero-tagline {
  font-family: var(--font-valheim);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: rgba(220,229,238,0.85);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.65;
}

.hero-tagline strong { color: var(--gold-bright); font-weight: 700; }

.hero-actions {
  --hero-btn-w: 18.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-actions-row {
  display: grid;
  grid-template-columns: repeat(2, var(--hero-btn-w));
  gap: 1rem;
  justify-content: center;
}

.hero-actions .btn-lg {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-btn-icon {
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

.hero-btn-icon-img {
  height: 1.2em;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(220,229,238,0.4);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
  text-decoration: none;
}
.hero-scroll:hover { color: var(--gold); }

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ── Stats strip ─────────────────────────────────── */
.stats-strip {
  position: relative;
  z-index: 1;
  background: rgba(10,14,22,0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.stats-inner {
  display: flex;
}

.stat-item {
  flex: 1;
  padding: 1.6rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
}

/* ══════════════════════════════════════════════════
   ORNAMENTAL DIVIDER  (valheim.com section separators)
   ══════════════════════════════════════════════════ */
.rune-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  width: fit-content;
}

.rune-divider::before,
.rune-divider::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.rune-divider::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.rune-divider span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════
   INTRO BAND  (like valheim.com's "Welcome" section)
   ══════════════════════════════════════════════════ */
.intro-band {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.intro-band-header {
  margin-bottom: 2.5rem;
}

.intro-band-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  white-space: nowrap;
}

.intro-band .rune-divider--hero {
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.intro-band .rune-divider--hero::before,
.intro-band .rune-divider--hero::after {
  width: clamp(100px, 22vw, 220px);
  height: 2px;
}

.intro-band .rune-divider--hero span {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.intro-band p {
  font-family: var(--font-valheim);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.8;
}

.intro-band p + p { margin-top: 1.2rem; }

.intro-band strong { color: var(--text); font-weight: 700; }

/* ══════════════════════════════════════════════════
   PAGE SECTIONS
   ══════════════════════════════════════════════════ */
.page-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

/* alternating band tint */
.page-section--tinted {
  background: rgba(10,14,22,0.65);
}

.page-section--dark {
  background: rgba(4,6,10,0.8);
}

.page-content {
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
}

/* ── Section headers ─────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-desc {
  font-family: var(--font-valheim);
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   FEATURE PANELS  (alternating, valheim.com-style)
   ══════════════════════════════════════════════════ */
.features-section {
  padding: 0;
}

.feature-panel {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.feature-panel:nth-child(even) {
  background: rgba(10,14,22,0.55);
}

/* subtle atmospheric gradient per panel */
.feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-panel--fire::before {
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(232,93,4,0.07) 0%, transparent 65%);
}

.feature-panel--ice::before {
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(77,212,232,0.06) 0%, transparent 65%);
}

.feature-panel--gold::before {
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(201,162,39,0.06) 0%, transparent 60%);
}

.feature-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* flip for even panels */
.feature-panel:nth-child(even) .feature-panel-inner {
  direction: rtl;
}
.feature-panel:nth-child(even) .feature-panel-inner > * {
  direction: ltr;
}

.feature-panel-text {}

.feature-panel-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border-light);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.feature-panel-desc {
  font-family: var(--font-valheim);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
  max-width: 480px;
}

.feature-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-panel-list li {
  font-family: var(--font-valheim);
  font-size: 0.96rem;
  color: var(--text-muted);
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.5;
}

.feature-panel-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.38rem;
  font-size: 0.42rem;
  color: var(--fire-bright);
}

/* Visual side — icon / decorative art */
.feature-panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.feature-panel-icon-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
  border: 1px solid rgba(201,162,39,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.feature-panel-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.08);
}

.feature-panel-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.04);
}

/* Secondary feature grid */
.secondary-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.secondary-card {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background .25s;
}
.secondary-card:last-child { border-right: none; }
.secondary-card:hover { background: var(--bg-card-h); }

.secondary-card-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  display: block;
  line-height: 1;
}

.secondary-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin-bottom: 0.65rem;
}

.secondary-card ul {
  list-style: none;
}

.secondary-card li {
  font-family: var(--font-valheim);
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.22rem 0 0.22rem 1.1rem;
  position: relative;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.secondary-card li:last-child { border-bottom: none; }

.secondary-card li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.36rem;
  font-size: 0.38rem;
  color: var(--fire-bright);
}

/* ── Discord CTA band ────────────────────────────── */
.cta-band {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(4,6,10,0.7);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
}

.cta-band p {
  font-family: var(--font-valheim);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .22s, background .22s;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--border-light);
  background: var(--bg-card-h);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1.35;
  transition: color .22s;
}

.faq-question:hover { color: var(--gold); }

.faq-question-text { flex: 1; }

.faq-chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold-dim);
  border-bottom: 2px solid var(--gold-dim);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform .25s ease, border-color .22s;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
  border-color: var(--gold-bright);
}

.faq-answer-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq-item.is-open .faq-answer-panel {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  font-family: var(--font-valheim);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 1.5rem;
  transition: padding .35s ease;
}

.faq-item.is-open .faq-answer {
  padding: 0 1.5rem 1.35rem;
}

.faq-answer a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color .2s;
}

.faq-answer a:hover { color: var(--gold-bright); }

/* ══════════════════════════════════════════════════
   SUBPAGE HERO  (inner pages — cinematic banner)
   ══════════════════════════════════════════════════ */
.subpage-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../MMOHeim Banner.png") center / cover no-repeat;
  filter: brightness(0.3) saturate(0.7);
  transform: scale(1.03);
}

.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg-void) 0%, rgba(4,6,10,0.2) 60%, transparent 100%),
    linear-gradient(90deg, rgba(4,6,10,0.6) 0%, transparent 60%);
}

.subpage-hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  width: 100%;
}

.subpage-hero .section-eyebrow { text-align: left; }
.subpage-hero .section-title   { text-align: left; margin-bottom: 0.65rem; }
.subpage-hero .section-desc    { text-align: left; margin-inline: 0; max-width: 560px; }

/* ══════════════════════════════════════════════════
   MODPACK PAGE
   ══════════════════════════════════════════════════ */
.modlist-notice {
  margin-bottom: 2.25rem;
  padding: 1.75rem 2rem;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.18) 0%, rgba(232, 93, 4, 0.06) 55%, rgba(10, 14, 22, 0.55) 100%),
    var(--bg-card);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-left: 4px solid var(--gold-bright);
  border-radius: var(--r-sm);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(232, 197, 71, 0.14);
}

.modlist-notice-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}

.modlist-notice-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.modlist-notice-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.modlist-notice-body p {
  font-family: var(--font-valheim);
  font-size: 1.02rem;
  color: #fff;
  line-height: 1.8;
}

.modlist-notice-lead {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
}

.modlist-notice-body p + p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.modpack-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box::before {
  content: "⌕";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  font-family: var(--font-valheim);
  font-size: 0.95rem;
  padding: 0.72rem 1rem 0.72rem 2.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-box input::placeholder { color: var(--text-dim); }

.search-box input:focus {
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-tab {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s;
}

.filter-tab:hover  { color: var(--text); border-color: var(--border-light); }
.filter-tab.active {
  color: var(--gold-bright);
  border-color: rgba(201,162,39,0.5);
  background: rgba(201,162,39,0.09);
}

.mod-count-badge {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  align-self: center;
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.3rem 1.3rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mod-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77,212,232,0.25);
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

.mod-category-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(77,212,232,0.09);
  border: 1px solid rgba(77,212,232,0.18);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  width: fit-content;
}

.mod-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mod-name {
  font-family: var(--font-valheim);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.3;
}

.mod-version {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0.16rem 0.48rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mod-desc {
  font-family: var(--font-valheim);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-notice {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: #e85a5a;
  line-height: 1.45;
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
}

.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
  font-family: var(--font-valheim);
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════
   PROGRESSION GUIDE — chapter style
   ══════════════════════════════════════════════════ */
.guide-chapters {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-chapter {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}

.guide-chapter:last-child { border-bottom: none; }

.guide-chapter:hover {
  background: rgba(201,162,39,0.025);
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
  border-radius: var(--r);
}

.guide-chapter-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--border-light);
  opacity: 0.7;
  line-height: 1;
  padding-top: 0.15rem;
  text-align: center;
}

.guide-chapter-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.guide-chapter-body p {
  font-family: var(--font-valheim);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.guide-chapter-body p + p { margin-top: 0.4rem; }

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(77,212,232,0.07);
  border: 1px solid rgba(77,212,232,0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-top: 0.8rem;
}

/* ══════════════════════════════════════════════════
   SETTINGS PAGE
   ══════════════════════════════════════════════════ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color .22s;
}

.settings-card:hover { border-color: var(--border-light); }

.settings-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(30,45,61,0.7);
  font-size: 0.9rem;
}

.setting-row:last-child { border-bottom: none; }

.setting-label {
  font-family: var(--font-valheim);
  color: var(--text-muted);
}

.setting-value {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ice);
  font-size: 0.8rem;
  text-align: right;
}

.info-box {
  background: rgba(77,212,232,0.04);
  border: 1px solid rgba(77,212,232,0.15);
  border-left: 3px solid var(--ice-dim);
  border-radius: var(--r-sm);
  padding: 1.15rem 1.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-valheim);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.info-box strong { color: var(--ice); }

/* ══════════════════════════════════════════════════
   MEDIA PAGE
   ══════════════════════════════════════════════════ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.media-item {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--text-muted);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}

.media-item:hover {
  border-color: rgba(201,162,39,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.media-item:hover img { transform: scale(1.04); }

.media-placeholder-icon {
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.4;
}

.media-placeholder-text {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem;
}

.media-item.featured {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

/* ══════════════════════════════════════════════════
   FOOTER  (clean, minimal like valheim.com)
   ══════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-bottom {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .feature-panel-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-panel:nth-child(even) .feature-panel-inner {
    direction: ltr;
  }

  .feature-panel-visual { min-height: 180px; }

  .secondary-features {
    grid-template-columns: 1fr;
    border-radius: var(--r);
  }

  .secondary-card { border-right: none; border-bottom: 1px solid var(--border); }
  .secondary-card:last-child { border-bottom: none; }

  .guide-chapter {
    grid-template-columns: 55px 1fr;
    gap: 1.25rem;
  }
  .guide-chapter-num { font-size: 2rem; }

  .stats-inner { flex-wrap: wrap; }
  .stat-item   { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 900px) {
  .header-inner {
    display: flex;
    justify-content: flex-end;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(4,6,10,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.15rem;
    grid-column: unset;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.65rem 0.9rem; }
  .menu-toggle { display: flex; }
  .header-actions .btn-discord { font-size: 0; padding: 0.65rem; }
  .header-actions .btn-discord svg { margin: 0; }
  .media-item.featured { grid-column: span 1; aspect-ratio: 16/9; }
}

@media (max-width: 640px) {
  .hero-logo-img { width: clamp(180px, 55vw, 260px); }
  .hero-actions-row {
    grid-template-columns: 1fr;
    width: min(100%, var(--hero-btn-w));
  }
  .feature-panel { padding: 3.5rem 0; }
  .secondary-features { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .mod-grid      { grid-template-columns: 1fr; }
  .media-grid    { grid-template-columns: 1fr; }
  .guide-chapter { grid-template-columns: 1fr; gap: 0.5rem; }
  .guide-chapter-num { font-size: 1.5rem; }
  .subpage-hero { min-height: 260px; }
  .stats-inner { flex-direction: column; }
  .stat-item   { border-right: none; }
}
