:root {
  color-scheme: dark;
  --ink: #0b0d0f;
  --surface: #15181b;
  --paper: #f3f4f2;
  --paper-muted: #d4d8d5;
  --text: #f7f8f6;
  --muted: #b1b7b5;
  --cyan: #52d6e8;
  --border-dark: rgba(255, 255, 255, 0.15);
  --content: 1240px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(11, 13, 15, 0.22);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 13, 15, 0.94);
  border-color: var(--border-dark);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-type {
  width: 143px;
  height: 20px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--paper-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(960px, calc(100svh - 88px));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 72px;
  background: var(--ink) url("../assets/background.png") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  margin: 0 auto;
  text-align: left;
}

.hero h1 {
  width: 100%;
  margin: 0;
  line-height: 1;
}

.hero h1 img {
  width: 100%;
  height: auto;
}

.hero-copy {
  max-width: 540px;
  margin: 34px 0 0;
  color: #dde0de;
  font-size: 1.08rem;
  hyphens: auto;
  text-align: justify;
}

.product-frame.hero-product-frame {
  width: 100%;
  margin: 0;
  text-align: left;
}

.section-inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.download-band {
  padding: 78px 0 84px;
  background: #e8eaed;
  color: var(--ink);
}

.download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-content h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.download-content .platform-label {
  margin: 10px 0 0;
  color: #60666b;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.section-label {
  margin: 0 0 14px;
  color: #147887;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.download-band .section-label {
  margin: 0;
  color: #646b70;
}

.steam-button {
  width: 220px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 5px;
  transition: opacity 150ms ease, transform 150ms ease;
}

.steam-button img {
  width: 100%;
  height: auto;
}

.steam-button:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.section-copy h2 {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy > p {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

.section-copy > .feature-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
}

.feature-section-light .section-copy > p {
  color: #4d5552;
}

.product-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #090a0b;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.3);
}

.feature-section-light .product-frame {
  border-color: rgba(11, 13, 15, 0.22);
  box-shadow: 0 28px 56px rgba(11, 13, 15, 0.18);
}

.product-frame img,
.product-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1032;
  object-fit: cover;
}

.feature-section {
  padding: 92px 0;
  background: var(--surface);
}

.feature-section-light {
  background: #e7eae7;
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 56px;
}

.feature-grid-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.feature-grid-reverse .section-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-grid-reverse .product-frame {
  grid-column: 1;
  grid-row: 1;
}

.site-footer {
  width: min(var(--content), calc(100% - 48px));
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.site-footer > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  width: fit-content;
  margin: 0 auto;
}

.site-footer p {
  margin: 12px 0 0;
  font-size: 0.88rem;
  text-align: justify;
  text-align-last: center;
}

.site-footer .copyright,
.site-footer .steam-legal {
  max-width: 620px;
  color: #8f9694;
  font-size: 0.64rem;
  font-weight: 500;
}

.site-footer .copyright {
  margin-top: 22px;
}

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

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }

  .hero h1 {
    width: min(720px, 88%);
    margin: 0 auto;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .feature-grid,
  .feature-grid-reverse {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .feature-grid-reverse .section-copy,
  .feature-grid-reverse .product-frame {
    grid-column: 1;
  }

  .feature-grid-reverse .section-copy {
    grid-row: 1;
  }

  .feature-grid-reverse .product-frame {
    grid-row: 2;
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding: 0 18px;
  }

  .hero {
    min-height: min(720px, calc(100svh - 72px));
    height: auto;
    padding: 104px 0 58px;
    background-position: 58% center;
  }

  .hero-shade {
    background: rgba(0, 0, 0, 0.56);
  }

  .hero-content,
  .section-inner,
  .site-footer {
    width: min(100% - 36px, var(--content));
  }

  .hero h1 {
    width: 100%;
  }

  .hero-copy {
    max-width: 500px;
    margin-top: 24px;
    font-size: 0.98rem;
  }

  .feature-section {
    padding: 72px 0;
  }

  .download-band {
    padding: 62px 0 68px;
  }

  .download-content {
    align-items: center;
  }

  .download-content h2 {
    font-size: 1.8rem;
  }

  .section-copy h2 {
    font-size: 2.25rem;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
  }

  .site-footer {
    justify-content: center;
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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