:root {
  color-scheme: dark;
  --bg: #071015;
  --bg-2: #0a141b;
  --panel: #0b151c;
  --panel-2: #111d27;
  --line: rgba(138, 160, 190, 0.22);
  --line-soft: rgba(138, 160, 190, 0.12);
  --text: #edf3fb;
  --muted: #8b98aa;
  --blue: #8fb5ff;
  --blue-2: #293b56;
  --steel: #c3d1e3;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.55);
  font-family:
    "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 8%, rgba(95, 130, 170, 0.16), transparent 24rem),
    linear-gradient(180deg, #081116 0%, #050a0e 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 94%);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1536px, 100%);
  margin: 0 auto;
  border-right: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.panel {
  border-bottom: 1px solid var(--line);
}

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

.brand,
.nav,
.top-actions,
.hero-actions,
.feature-strip,
.reward-row,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  width: 320px;
  flex: 0 0 320px;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-icon,
.hero-emblem {
  display: inline-block;
  width: 32px;
  height: 32px;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.7) 45% 52%, transparent 53%),
    linear-gradient(135deg, #d9e8ff, #789ad2 46%, #e9f3ff);
  clip-path: polygon(0 14%, 100% 0, 64% 48%, 100% 100%, 0 70%, 38% 49%);
  filter: drop-shadow(0 0 14px rgba(143, 181, 255, 0.24));
}

.nav {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(5, 96px);
  justify-content: center;
  gap: 28px;
}

.nav a,
.login-btn,
.blue-btn,
.dark-btn {
  min-height: 38px;
  padding: 0 18px;
  color: #dce6f3;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a {
  display: grid;
  min-width: 96px;
  place-items: center;
  padding: 0;
  color: #c4cedb;
}

.nav a:hover {
  color: #fff;
}

.top-actions {
  width: 320px;
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-btn {
  background: transparent;
}

.blue-btn,
.dark-btn {
  background: #20304a;
  border: 1px solid rgba(160, 188, 230, 0.22);
}

.blue-btn {
  background: linear-gradient(135deg, #789bd7, #405a82);
  color: #fff;
}

.blue-btn.large {
  min-width: 160px;
  min-height: 52px;
}

.dark-btn {
  min-width: 150px;
  background: #172331;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #071015;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 1) 0%, rgba(5, 10, 14, 0.99) 34%, rgba(5, 10, 14, 0.22) 68%, rgba(5, 10, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(5, 10, 14, 0.18), transparent 38%, rgba(5, 10, 14, 0.96) 100%),
    url("assets/hero-art.webp") 70% 48% / cover no-repeat;
  transform: scale(1.012);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 96px));
  padding: 108px 0 82px 72px;
}

.hero-emblem {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(4.4rem, 8vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.72);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.tagline {
  margin: 14px 0 28px;
  color: #c5d3e5;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy,
.text-block p {
  color: #9da9b9;
  font-size: 0.96rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 410px;
  margin-bottom: 34px;
}

.hero-actions {
  gap: 18px;
}

.play-btn {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(160, 188, 230, 0.3);
  border-radius: 50%;
  background: rgba(15, 25, 34, 0.52);
}

.play-btn span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #9fbaf0;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(7, 14, 19, 0.94);
}

.feature-strip article {
  min-height: 100px;
  padding: 28px 50px;
  border-right: 1px solid var(--line-soft);
}

.feature-strip strong,
.map-grid span,
.agent-card span {
  display: block;
  color: #edf3fb;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-strip span,
.map-grid small,
.agent-card small,
.footer span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.split,
.competition,
.world,
.rewards {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr;
  min-height: 340px;
  background: rgba(6, 13, 18, 0.96);
}

.text-block {
  padding: 70px 56px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #6f7f94;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 40px 36px;
  background:
    linear-gradient(90deg, rgba(6, 13, 18, 0.72), rgba(6, 13, 18, 0.1)),
    url("assets/agents-art.webp") center / cover no-repeat;
}

.agent-card {
  position: relative;
  display: flex;
  min-height: 276px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 32, 43, 0.04), rgba(5, 10, 14, 0.92)),
    rgba(10, 18, 25, 0.5);
  text-align: center;
}

.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: linear-gradient(135deg, transparent 0 46%, rgba(160, 188, 230, 0.18) 47% 49%, transparent 50%);
}

.agent-card span,
.agent-card small {
  position: relative;
  z-index: 1;
}

.agent-card span {
  font-size: 2rem;
}

.agent-card.is-active {
  border-color: rgba(143, 181, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(143, 181, 255, 0.1);
}

.competition {
  grid-template-columns: 0.8fr 1.7fr;
}

.competition-media,
.weapon-showcase {
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(6, 13, 18, 0.3), rgba(6, 13, 18, 0.0)),
    url("assets/competition-art.webp") center / cover no-repeat;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 30px;
  padding: 0;
  color: #aeb9c9;
  list-style: none;
}

.check-list li::before {
  content: "→";
  margin-right: 12px;
  color: #789bd7;
}

.world {
  grid-template-columns: 0.65fr 1.35fr;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 32px 36px;
}

.map-grid article {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5, 10, 14, 0.04), rgba(5, 10, 14, 0.92)),
    var(--map) center / cover no-repeat;
}

.rewards {
  grid-template-columns: 0.72fr 1.58fr;
}

.weapon-showcase {
  display: grid;
  align-content: end;
  padding: 38px 36px;
  background:
    linear-gradient(90deg, rgba(6, 13, 18, 0.52), rgba(6, 13, 18, 0.02)),
    url("assets/rewards-art.webp") center / cover no-repeat;
}

.weapon-image {
  min-height: 150px;
}

.reward-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reward-row article {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 16, 22, 0.68);
}

.reward-row span {
  display: block;
  margin-bottom: 8px;
  color: #b8c8df;
  font-weight: 900;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 0 24px;
  background: rgba(5, 10, 14, 0.98);
}

.footer strong {
  color: #8794aa;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(900px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  background: #071015;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: #172331;
  font-size: 1.4rem;
}

.trailer-frame {
  display: grid;
  place-items: center;
  gap: 16px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 0.88), rgba(5, 10, 14, 0.2)),
    url("assets/hero-art.webp") center / cover no-repeat;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(340px, calc(100% - 44px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 20, 0.88);
  color: #dce6f3;
  font-size: 0.86rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .page {
    width: 100%;
  }

  .topbar,
  .split,
  .competition,
  .world,
  .rewards,
  .feature-strip,
  .map-grid,
  .reward-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    gap: 16px;
    padding: 16px;
  }

  .brand,
  .top-actions {
    width: 100%;
    flex: none;
  }

  .nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .nav a {
    min-width: 0;
    padding: 0;
    text-align: center;
  }

  .top-actions,
  .hero-actions {
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    justify-items: stretch;
  }

  .top-actions,
  .hero-actions,
  .footer {
    display: grid;
  }

  .login-btn,
  .blue-btn,
  .dark-btn {
    width: 100%;
  }

  .login-btn {
    display: none;
  }

  .nav a:last-child {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 86px 16px 64px;
    overflow: hidden;
  }

  .hero-copy {
    max-width: 340px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 17vw, 4.6rem);
    overflow-wrap: break-word;
  }

  .feature-strip article,
  .text-block,
  .agent-grid,
  .map-grid,
  .weapon-showcase {
    padding: 28px 20px;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-card {
    min-height: 210px;
  }

  .competition-media,
  .weapon-showcase {
    min-height: 280px;
  }

  .footer {
    align-items: start;
    padding: 24px 20px;
  }

  .footer strong {
    letter-spacing: 0.18em;
  }
}
