/* Deathmatch — promo site */
:root {
  --bg: #0a0b0d;
  --bg2: #111317;
  --panel: #14161bcc;
  --line: #262a31;
  --ink: #f2f4f7;
  --muted: #9aa3b0;
  --accent: #ff6622;
  --accent-soft: #ffb08a;
  --glow: rgba(255, 102, 34, 0.28);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background fallback: always present, canvas draws on top when WebGL works */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 50% 30%, rgba(255, 102, 34, 0.13), transparent 60%),
    radial-gradient(900px 600px at 80% 85%, rgba(70, 90, 130, 0.12), transparent 65%),
    linear-gradient(180deg, #0c0d10 0%, var(--bg) 55%, #08090b 100%);
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.gl-on #scene { opacity: 1; }
body.no-webgl #scene { display: none; }

main, .top {
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.85), transparent);
}

.wordmark {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark em {
  font-style: normal;
  color: var(--accent);
}

.lang {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lang a, .lang span {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
}

.lang span[aria-current] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.lang a:hover, .lang a:focus-visible { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 152px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, #b9c1cc 78%, #7d8794 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.hook {
  margin: 26px 0 6px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 2px 26px rgba(10, 11, 13, 0.95), 0 1px 4px rgba(10, 11, 13, 0.85);
}

.sub {
  margin: 0 0 36px;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  text-shadow: 0 2px 22px rgba(10, 11, 13, 0.95), 0 1px 4px rgba(10, 11, 13, 0.85);
}

.cta-final p, .cta-final h2 {
  text-shadow: 0 2px 26px rgba(10, 11, 13, 0.95), 0 1px 4px rgba(10, 11, 13, 0.85);
}

.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #1a0c03;
  background: linear-gradient(180deg, #ff7d40, var(--accent) 60%, #f04f0a);
  box-shadow: 0 12px 40px -8px var(--glow), 0 2px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 55px -8px rgba(255, 102, 34, 0.45), 0 2px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(20, 22, 27, 0.55);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hint {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Story (scroll-synced) ---------- */
.story {
  display: flex;
  flex-direction: column;
  gap: 30vh;
  padding: 22vh clamp(20px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.story-block {
  max-width: 420px;
  padding: 30px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.story-block:nth-child(2) { align-self: flex-end; }

.story-block h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.story-block h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 12px;
  background: var(--accent);
  border-radius: 2px;
}

.story-block p { margin: 14px 0 0; color: var(--muted); }

/* ---------- Sections shared ---------- */
section > .wrap, .mech, .shots, .live {
  max-width: 1200px;
  margin: 0 auto;
}

.mech, .shots, .live {
  padding: 16vh clamp(20px, 6vw, 80px) 4vh;
}

.mech h2, .shots h2, .live h2, .cta-final h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.section-note {
  margin: 0 0 46px;
  color: var(--muted);
  max-width: 60ch;
}

/* Mechanics cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 25, 31, 0.9), rgba(15, 17, 21, 0.9));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.85;
}

.card:hover { transform: translateY(-4px); border-color: #3a3f48; }

.card .num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Shots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.shots figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
}

.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 0.4s ease;
}

.shots figure:hover img { transform: scale(1.045); }

.shots figcaption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Live media ---------- */
.live-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.live-row > a {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
  display: block;
}

.live-row img, .live-row video {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ---------- Final CTA ---------- */
.cta-final {
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18vh clamp(20px, 5vw, 60px);
}

.cta-final p {
  margin: 10px 0 34px;
  color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .story { gap: 18vh; padding-top: 14vh; }
  .story-block { max-width: none; }
  .btn { padding: 15px 30px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .shots img, .btn { transition: none; }
  #scene { transition: none; }
}
