:root {
  color-scheme: dark;
  --ink: #f3f0e8;
  --muted: #b8b4a8;
  --paper: #111316;
  --panel: #191d20;
  --panel-strong: #22272b;
  --line: rgba(243, 240, 232, 0.16);
  --mint: #8ad6bd;
  --coral: #ff8066;
  --gold: #f3bc54;
  --blue: #76a9ff;
  --shadow: rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(243, 240, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.025) 1px, transparent 1px),
    #111316;
  background-size: 44px 44px;
}

a {
  color: inherit;
  text-decoration-color: rgba(138, 214, 189, 0.55);
  text-underline-offset: 0.18em;
}

.hero-canvas {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: min(760px, 92vh);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(138, 214, 189, 0.5);
  background: #18201f;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  width: min(1120px, calc(100% - 32px));
  min-height: min(620px, calc(76vh - 72px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 clamp(42px, 6vw, 68px);
}

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

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.8rem, 10vw, 7.2rem);
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--mint);
  color: #0b1714;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #9de8cf;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(243, 240, 232, 0.05);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(243, 240, 232, 0.34);
}

.hero-panel {
  display: grid;
  min-height: 380px;
  place-items: center;
}

.signal-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
}

.signal-screen {
  position: absolute;
  inset: 10% 7% 25%;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(138, 214, 189, 0.12) 18% 20%, transparent 20%),
    linear-gradient(#1d2326, #141719);
  box-shadow: 0 28px 70px var(--shadow);
}

.signal-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(243, 240, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.signal-row {
  position: absolute;
  left: 12%;
  height: 16px;
  border-radius: 999px;
}

.signal-row-a {
  top: 26%;
  width: 64%;
  background: var(--coral);
}

.signal-row-b {
  top: 43%;
  width: 38%;
  background: var(--gold);
}

.signal-row-c {
  top: 60%;
  width: 52%;
  background: var(--blue);
}

.signal-pulse {
  position: absolute;
  right: 15%;
  bottom: 16%;
  width: 76px;
  height: 76px;
  border: 12px solid var(--mint);
  border-left-color: transparent;
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.signal-base {
  position: absolute;
  right: 8%;
  bottom: 10%;
  left: 18%;
  height: 24%;
  border: 1px solid rgba(243, 240, 232, 0.2);
  border-radius: 8px 8px 28px 28px;
  background: #20252a;
  box-shadow: 0 32px 60px var(--shadow);
  transform: skewX(-10deg);
}

.section,
.studio-band,
.content-page,
.policy-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.section h2,
.studio-copy h2,
.content-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.game-art {
  position: relative;
  min-height: 250px;
  background: #202328;
}

.game-art::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: 6px;
}

.game-art span {
  position: absolute;
  inset: 34% 22%;
  border-radius: 8px;
  background: currentColor;
}

.game-art-one {
  color: var(--coral);
  background:
    linear-gradient(135deg, rgba(255, 128, 102, 0.28), transparent 40%),
    linear-gradient(225deg, rgba(118, 169, 255, 0.26), transparent 45%),
    #202328;
}

.game-art-one span {
  box-shadow:
    -34px 30px 0 -4px var(--gold),
    42px -26px 0 -10px var(--mint);
}

.game-art-two {
  color: var(--blue);
  background:
    linear-gradient(45deg, rgba(138, 214, 189, 0.28), transparent 42%),
    linear-gradient(315deg, rgba(243, 188, 84, 0.2), transparent 44%),
    #202328;
}

.game-art-two span {
  border-radius: 50%;
  box-shadow:
    -42px -18px 0 -11px var(--coral),
    44px 28px 0 -8px var(--gold);
}

.game-content {
  padding: 24px;
}

.game-content h3,
.support-list h2,
.policy-copy h2 {
  font-size: 1.35rem;
}

.game-content p,
.studio-copy p,
.support-list p,
.policy-copy p,
.content-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.studio-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 36px;
  padding: 80px 0 96px;
  border-top: 1px solid var(--line);
}

.studio-copy p {
  max-width: 640px;
  font-size: 1.08rem;
}

.studio-facts {
  display: grid;
  gap: 1px;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.studio-facts div {
  padding: 20px;
  background: var(--panel);
}

.studio-facts dt {
  margin-bottom: 6px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-facts dd {
  margin: 0;
  color: var(--ink);
}

.page-body {
  background: #111316;
}

.content-page,
.policy-page {
  padding: clamp(40px, 7vw, 90px) 0 90px;
}

.content-hero {
  max-width: 780px;
  padding-bottom: 36px;
}

.content-hero p {
  max-width: 700px;
  font-size: 1.08rem;
}

.content-hero .button {
  margin-top: 14px;
}

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

.support-list article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-copy {
  max-width: 820px;
}

.policy-copy h2 {
  margin-top: 36px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    padding-top: 42px;
  }

  h1 {
    max-width: 8ch;
  }

  .hero-panel {
    min-height: 260px;
  }

  .signal-frame {
    max-width: 320px;
  }

  .game-grid,
  .studio-band,
  .support-list {
    grid-template-columns: 1fr;
  }

  .section,
  .studio-band {
    padding: 56px 0;
  }
}

@media (max-width: 520px) {
  .site-nav {
    font-size: 0.9rem;
  }

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

  h1 {
    font-size: clamp(3.25rem, 19vw, 4rem);
  }

  .game-art {
    min-height: 210px;
  }

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

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