:root {
  --bg: #05070d;
  --bg-strong: #02030a;
  --panel: rgba(9, 14, 25, 0.78);
  --panel-solid: #0a101d;
  --text: #f6f8ff;
  --muted: #aeb8ce;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #48b7ff;
  --orange: #ff7a2f;
  --red: #ee364a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  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;
  min-width: 320px;
  background:
    radial-gradient(circle at 24% 0%, rgba(72, 183, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(238, 54, 74, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--bg-strong), var(--bg) 42%, #080a11);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 72px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(2, 3, 10, 0.86), rgba(2, 3, 10, 0.34));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 3, 10, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  min-width: 0;
  font-weight: 800;
}

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

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.4rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.language-switcher {
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher button {
  width: 2.5rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--text);
  color: #06080e;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 94vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.94) 0%, rgba(2, 3, 10, 0.58) 44%, rgba(2, 3, 10, 0.12) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, 0) 34%);
}

.hero-content {
  width: min(720px, calc(100% - 2rem));
  margin: 0 clamp(1rem, 7vw, 5.5rem) clamp(3.5rem, 9vh, 6rem);
  padding-top: 7rem;
}

.hero-logo {
  width: min(520px, 82vw);
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.62));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

p {
  line-height: 1.7;
}

.hero-copy,
.section-copy p,
.steam-section p,
.site-footer {
  color: var(--muted);
}

.hero-copy {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.steam-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  box-shadow: 0 14px 36px rgba(238, 54, 74, 0.28);
}

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

.intro-section,
.arsenal-section,
.steam-section,
.feature-grid,
.scene-section,
.characters-section {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.intro-section,
.arsenal-section,
.scene-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-copy {
  max-width: 610px;
}

.feature-art,
.poster-art,
.scene-art {
  margin: 0;
}

.feature-art img,
.poster-art img,
.scene-art img,
.feature-card,
.character-card,
.steam-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-art img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.feature-card {
  min-height: 15.5rem;
  padding: 1.35rem;
}

.feature-number {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--blue);
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.arsenal-section {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  padding-top: 0;
}

.poster-art img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.scene-section {
  grid-template-columns: minmax(300px, 1.12fr) minmax(0, 0.88fr);
  padding-top: 0;
}

.scene-art img {
  aspect-ratio: 1672 / 941;
  width: 100%;
  object-fit: cover;
}

.characters-section {
  padding: 0 0 clamp(4rem, 9vw, 7rem);
}

.characters-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.characters-heading p {
  max-width: 720px;
  color: var(--muted);
}

.character-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.character-tabs button {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.character-tabs button[aria-selected="true"] {
  background: var(--text);
  color: #06080e;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.character-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 22rem;
  padding: 1rem;
  overflow: hidden;
}

.character-portrait {
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(72, 183, 255, 0.12), rgba(255, 122, 47, 0.08));
}

.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.character-body {
  min-width: 0;
}

.character-kicker {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.character-body h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.character-body p,
.character-notes dd {
  color: var(--muted);
}

.character-body p {
  margin: 0;
}

.character-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.95rem 0;
}

.character-stats span,
.character-passive span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.85rem;
}

.character-passive {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.95rem;
}

.character-passive strong {
  color: var(--orange);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.character-notes {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.character-notes div {
  min-width: 0;
}

.character-notes dt {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.character-notes dd {
  margin: 0.2rem 0 0;
  line-height: 1.55;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0 0;
}

.stat-list div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-list dt {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
}

.stat-list dd {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.steam-section {
  justify-content: space-between;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.steam-section > div {
  max-width: 680px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 3, 10, 0.32) 0%, rgba(2, 3, 10, 0.88) 58%, var(--bg) 100%),
      linear-gradient(90deg, rgba(2, 3, 10, 0.75), rgba(2, 3, 10, 0.16));
  }

  .hero-content {
    margin: 0 auto 3rem;
  }

  .intro-section,
  .arsenal-section,
  .scene-section {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .characters-heading {
    grid-template-columns: 1fr;
  }

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

  .poster-art,
  .scene-art {
    order: 2;
  }

  .poster-art img {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    gap: 0.7rem;
  }

  .brand span {
    max-width: 11rem;
  }

  .hero-logo {
    width: min(420px, 92vw);
  }

  .hero-actions,
  .steam-section {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .stat-list {
    grid-template-columns: 1fr;
  }

  .character-tabs {
    width: 100%;
  }

  .character-tabs button {
    flex: 1;
  }

  .character-card {
    grid-template-columns: 1fr;
  }

  .character-portrait {
    height: 19rem;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 1.2rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
