:root {
  color-scheme: dark;
  --bg: #07130f;
  --panel: #10241d;
  --panel-2: #183329;
  --text: #f5fff9;
  --muted: #b6cfc5;
  --accent: #28d7a2;
  --gold: #f4c95d;
  --line: rgba(255,255,255,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(7,19,15,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  min-height: calc(100vh - 65px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(7,19,15,.45), rgba(7,19,15,.98)),
    url("/chrono-warfare-cover.webp") center/cover no-repeat;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--accent);
  color: #03110d;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #000;
}

.video-slot,
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-slot {
  background:
    linear-gradient(120deg, rgba(0,0,0,.24), rgba(0,0,0,.56)),
    url("/game-icon.webp") center/cover no-repeat;
}

.video-frame iframe {
  border: 0;
}

.video-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(0,0,0,.48);
}

.section {
  padding: clamp(42px, 6vw, 80px) clamp(18px, 5vw, 64px);
}

.section.alt {
  background: #0d1f19;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.stat {
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
}

.tier-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tier {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.tier strong {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: var(--gold);
  color: #1a1405;
}

.updates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer {
  display: grid;
  gap: 12px;
  padding: 30px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #06100d;
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 48px;
  }

  .grid,
  .updates {
    grid-template-columns: 1fr;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
    background: rgba(7,19,15,.98);
    border-bottom: 1px solid var(--line);
  }

  .nav[data-open="true"] {
    display: flex;
  }
}
