/* ==========================================================================
   Base
   ========================================================================== */

:root {
  color-scheme: dark;
  --ink: #10151f;
  --navy: #132744;
  --navy-2: #1f3760;
  --sky: #27c7e8;
  --mint: #42e3a0;
  --gold: #ffd447;
  --orange: #ff8a3d;
  --coral: #ff5f73;
  --cream: #fff6dc;
  --white: #ffffff;
  --muted: #b7c7d8;
  --panel: rgba(14, 23, 39, 0.78);
  --panel-solid: #162641;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #10151f 0%, #152742 42%, #10151f 100%);
  color: var(--white);
  font-family:
    "Trebuchet MS",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-pad {
  padding: 6rem 1.25rem;
}

.section-heading {
  width: min(100%, var(--max-width));
  margin: 0 auto 2.25rem;
}

.section-heading h2,
.steam-card h2 {
  margin: 0;
  max-width: 760px;
  font-size: 3rem;
  line-height: 1.02;
}

.section-heading p:not(.eyebrow),
.steam-card p {
  max-width: 640px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(180deg, rgba(9, 15, 25, 0.9), rgba(9, 15, 25, 0.45));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 1000;
  color: var(--white);
}

.brand span,
.footer-brand {
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: #d8e7f7;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 212, 71, 0.14);
  color: var(--gold);
  padding: 0.55rem 0.8rem;
  font-weight: 900;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.82rem 1.1rem;
  font-weight: 1000;
  text-align: center;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.2);
}

.button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24);
}

.button-primary {
  background: linear-gradient(180deg, #ffe97c, var(--gold) 54%, #ffad39);
  color: #2a1900;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-large {
  min-height: 3.7rem;
  padding-inline: 1.35rem;
  font-size: 1.08rem;
}

.button-icon {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  font-weight: 1000;
}

.steam-icon {
  display: block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.button-steam-icon {
  margin-right: 0.55rem;
}

.nav-steam-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.43rem solid transparent;
  border-bottom: 0.43rem solid transparent;
  border-left: 0.7rem solid currentColor;
  background: transparent;
  border-radius: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8.5rem 1.25rem 7rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 13, 23, 0.86) 0%, rgba(8, 13, 23, 0.58) 44%, rgba(8, 13, 23, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 12, 21, 0.38) 0%, rgba(7, 12, 21, 0.12) 46%, #10151f 100%);
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 86px;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, transparent, #10151f);
}

.hero-content {
  width: min(100%, var(--max-width));
  margin: auto;
}

.hero-motion-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(8, 13, 23, 0.72);
  color: #eff7ff;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.js .hero-motion-toggle {
  display: inline-flex;
}

.hero-motion-paused .hero-backdrop {
  opacity: 0;
}

.hero-logo {
  width: min(520px, 88vw);
  margin: 0 0 0.9rem -0.3rem;
  filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.24));
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4rem;
  line-height: 0.98;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.24);
}

.hero-copy {
  max-width: 640px;
  margin: 1.1rem 0 0;
  color: #eff7ff;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
  margin: 2.2rem 0 0;
}

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(8, 13, 23, 0.42);
  padding: 0.8rem;
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 900;
}

/* ==========================================================================
   Trailer
   ========================================================================== */

.trailer-showcase {
  background: linear-gradient(180deg, #10151f 0%, #121f33 100%);
}

.trailer-stage,
.screenshot-wall,
.steam-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.trailer-stage {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  overflow: hidden;
}

.trailer-stage img,
.screenshot-large img,
.store-beat img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trailer-stage figcaption,
.screenshot-large figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  color: var(--muted);
}

.trailer-stage figcaption strong,
.screenshot-large figcaption {
  color: var(--white);
}

/* ==========================================================================
   Store Beats
   ========================================================================== */

.store-beats {
  padding: 6rem 1.25rem;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 212, 71, 0.16), transparent 24rem),
    linear-gradient(180deg, #121f33 0%, #172b48 100%);
}

.store-beat {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto 1.5rem;
}

.store-beat:last-child {
  margin-bottom: 0;
}

.store-beat-reverse {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.store-beat-reverse img {
  order: 2;
}

.store-beat img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.store-beat div {
  padding: 1.25rem;
}

.store-beat h3 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1;
}

.store-beat p:not(.eyebrow) {
  max-width: 430px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ==========================================================================
   Chaos Events
   ========================================================================== */

.chaos {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 95, 115, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 66%, rgba(39, 199, 232, 0.18), transparent 24rem),
    linear-gradient(180deg, #172b48 0%, #10151f 100%);
}

.event-marquee {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 0.75rem;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.event-marquee span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    #172642;
  color: var(--white);
  font-weight: 1000;
  text-align: center;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Media
   ========================================================================== */

.media {
  background:
    linear-gradient(180deg, #10151f 0%, #172642 100%);
}

.screenshot-wall {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  overflow: hidden;
}

.screenshot-large {
  margin: 0;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.thumb {
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.thumb:hover,
.thumb.is-active {
  transform: translateY(-3px);
  border-color: var(--gold);
}

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

/* ==========================================================================
   Steam CTA
   ========================================================================== */

.steam-cta {
  background:
    linear-gradient(180deg, #10151f 0%, #182d4d 50%, #10151f 100%);
}

.steam-card {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 3rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 212, 71, 0.26), rgba(39, 199, 232, 0.13) 46%, rgba(255, 95, 115, 0.16)),
    #172642;
}

.steam-card::after {
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  width: 12rem;
  height: 12rem;
  content: "";
  border: 1.1rem solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.steam-card h2,
.steam-card p,
.steam-card .button {
  position: relative;
  z-index: 1;
}

.steam-card p {
  margin-bottom: 1.4rem;
  color: #eff7ff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 2rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  background: #0b111c;
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  max-width: 620px;
  color: #d8e7f7;
  font-weight: 800;
}

.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer-links span {
  color: #91a7bd;
}

.footer-links a:hover {
  color: var(--gold);
}

.fine-print {
  grid-column: 1 / -1;
  color: #8fa4b9;
  font-size: 0.9rem;
}

/* ==========================================================================
   Motion
   ========================================================================== */

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

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

  .hero-backdrop,
  .hero-motion-toggle {
    display: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 7.5rem;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(8, 13, 23, 0.88) 0%, rgba(8, 13, 23, 0.62) 100%),
      linear-gradient(180deg, rgba(7, 12, 21, 0.2) 0%, #10151f 100%);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-heading h2,
  .steam-card h2 {
    font-size: 2.35rem;
  }

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

  .store-beat h3 {
    font-size: 1.85rem;
  }

  .event-marquee {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section-pad {
    padding: 4.5rem 1rem;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .brand span {
    display: none;
  }

  .nav-cta {
    padding-inline: 0.75rem;
  }

  .hero {
    padding: 6.5rem 1rem 4.5rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats,
  .store-beat,
  .store-beat-reverse,
  .event-marquee {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 1.25rem;
  }

  .store-beat-reverse img {
    order: 0;
  }

  .section-heading h2,
  .steam-card h2 {
    font-size: 2rem;
  }

  .store-beats {
    padding: 4.5rem 1rem;
  }

  .store-beat {
    gap: 0.85rem;
    margin-bottom: 2.5rem;
  }

  .store-beat div {
    padding: 0;
  }

  .store-beat h3 {
    font-size: 1.9rem;
  }

  .event-marquee span {
    min-height: 4rem;
  }

  .steam-card {
    padding: 1.35rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
