/* ============ Scavenger Survivors — site styles (see DESIGN.md) ============ */
:root {
  --bg-0: #0b0e16;
  --bg-1: #131826;
  --bg-2: #1c2333;
  --ink: #e8e4d8;
  --ink-dim: #9aa0ae;
  --ember: #ff6b2b;
  --hazard: #ffb020;
  --teal: #3ee6d8;
  --danger: #e6302b;
  --suit-red: #d94a3d;
  --suit-orange: #e0862e;
  --suit-blue: #3d7bd9;
  --suit-green: #7da33c;
  --font-display: "Russo One", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
section { scroll-margin-top: var(--nav-h); }

h1, h2, h3, .btn, .badge, .nav-logo {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
}
.h2::after {
  content: "";
  display: block;
  width: 72px; height: 5px;
  margin-top: 14px;
  background: var(--ember);
  transform: skewX(-20deg);
}
.band .h2::after { margin-inline: auto; }
.dim { color: var(--ink-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; }
.btn-primary { background: var(--ember); color: #180b04; }
.btn-primary:hover { background: var(--hazard); }
.btn-outline {
  border-color: var(--hazard); color: var(--hazard);
  background: rgba(255, 176, 32, 0.06);
}
.btn-outline:hover { background: var(--hazard); color: #180b04; }
.btn-ghost { color: var(--ink); background: rgba(232, 228, 216, 0.08); }
.btn-ghost:hover { background: rgba(232, 228, 216, 0.18); }
.btn-big { font-size: 1.25rem; padding: 20px 44px; }
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 28px;
}

/* ---------- Badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 22px; }
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid rgba(232, 228, 216, 0.35);
  background: rgba(11, 14, 22, 0.55);
}
.badge-danger {
  border-color: var(--danger);
  color: #ff8d89;
  background: rgba(230, 48, 43, 0.12);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.scrolled {
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 228, 216, 0.08);
}
.nav-logo {
  color: var(--ink); text-decoration: none;
  font-size: 1rem;
}
.nav-logo span { color: var(--ember); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
}
.nav-links a:hover { color: var(--hazard); }
.btn-nav { padding: 9px 18px; font-size: 0.8rem; margin-left: auto; }
.nav-links + .btn-nav { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(to bottom, rgba(11,14,22,0.25) 0%, rgba(11,14,22,0.45) 55%, var(--bg-0) 100%),
    url("assets/hero-keyart.jpg") center 30% / cover no-repeat;
}
.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 110px;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.hero-tagline {
  margin-top: 18px;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.hero-tagline strong { color: var(--hazard); letter-spacing: 0.06em; }
.hero-chevron {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  color: var(--ink); text-decoration: none;
  font-size: 1.6rem;
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Hazard divider ---------- */
.hazard-divider {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--ember) 0 18px,
    #241207 18px 36px
  );
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-sub { color: var(--ink-dim); max-width: 640px; margin-bottom: 40px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lede { font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; color: var(--hazard); }
.pitch-copy p { margin-bottom: 14px; }
.pitch-art img {
  border: 1px solid var(--bg-2);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.2deg);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.feature {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 8px;
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--hazard); transform: translateY(-4px); }
.feature img { width: 72px; height: 72px; border-radius: 10px; margin-bottom: 16px; }
.feature h3 { font-size: 1rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--ink-dim); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.shot {
  padding: 0; border: 1px solid var(--bg-2); border-radius: 8px;
  overflow: hidden; cursor: zoom-in; background: var(--bg-1);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shot:hover { border-color: var(--teal); transform: scale(1.015); }
.shot:focus-visible { outline: 3px solid var(--hazard); outline-offset: 2px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-wide { grid-column: 1 / -1; }
.yt-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 26px;
  padding: 18px 24px;
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 8px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display);
  transition: border-color 0.2s ease;
}
.yt-card:hover { border-color: var(--ember); }
.yt-play {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--ember); color: #180b04;
  border-radius: 50%;
  font-size: 0.9rem;
}

/* ---------- Crew ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.crew-card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-top: 5px solid var(--suit);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.crew-card:hover { transform: translateY(-6px); }
.crew-card img { aspect-ratio: 1; object-fit: cover; }
.crew-card h3 {
  padding: 14px 18px 0;
  color: var(--suit);
  font-size: 1.05rem;
}
.crew-card p { padding: 6px 18px 20px; font-size: 0.9rem; color: var(--ink-dim); }

/* ---------- Bands ---------- */
.band { position: relative; padding: 110px 0; text-align: center; }
.band .wrap { position: relative; }
.band-playtest {
  background:
    linear-gradient(rgba(11, 14, 22, 0.88), rgba(11, 14, 22, 0.88)),
    url("assets/menu-bg.jpg") center / cover no-repeat;
}
.band-final {
  background:
    linear-gradient(rgba(11, 14, 22, 0.82), rgba(11, 14, 22, 0.9)),
    url("assets/keyart-alt.jpg") center 20% / cover no-repeat;
}
.band .cta-row { justify-content: center; }
.band-copy { max-width: 640px; margin: 18px auto 0; color: var(--ink); }
.steps {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 26px;
  list-style: none;
  margin-top: 34px;
}
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.steps li span {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--ember); color: #180b04;
  font-family: var(--font-display);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.small-link { margin-top: 22px; font-size: 0.9rem; color: var(--ink-dim); }
.social-row { margin-top: 22px; color: var(--ink-dim); display: flex; gap: 14px; justify-content: center; }
.social-row a { color: var(--ink); text-decoration: none; font-weight: 600; }
.social-row a:hover { color: var(--hazard); }

/* ---------- Publishers ---------- */
.section-pub { background: var(--bg-1); }
.pub-copy { max-width: 720px; color: var(--ink); }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.fact {
  background: var(--bg-0);
  border: 1px solid var(--bg-2);
  border-radius: 8px;
  padding: 20px;
}
.fact h3 { font-size: 0.8rem; color: var(--hazard); margin-bottom: 6px; }
.fact p { font-size: 0.95rem; color: var(--ink-dim); }

/* ---------- Footer ---------- */
.footer {
  padding: 44px 0 60px;
  border-top: 1px solid var(--bg-2);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.footer-links a { color: var(--ink-dim); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--hazard); }
.footer-note { color: var(--ink-dim); font-size: 0.85rem; }
.robot-eyes { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: middle; }
.robot-eyes i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: blink 4s infinite;
}
@keyframes blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0.1; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 12, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  border: 1px solid var(--bg-2);
  border-radius: 6px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(28, 35, 51, 0.8);
  color: var(--ink);
  border: 1px solid var(--bg-2);
  border-radius: 6px;
  font-size: 1.4rem;
  width: 48px; height: 48px;
  cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--bg-2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chevron { animation: none; }
  .robot-eyes i { animation: none; }
  .btn, .feature, .crew-card, .shot { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features, .crew-grid, .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .features, .crew-grid, .fact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .band { padding: 80px 0; }
  .hero-inner { padding-bottom: 90px; }
  .btn-big { font-size: 1rem; padding: 16px 28px; }
}
