:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #eee5d6;
  --muted: #8f887d;
  --red: #c82530;
  --red-dark: #5f1117;
  --coal: #111;
  --line: #29231f;
  --ash: #b5aa9b;
  --green: #3d5b49;
  --gold: #a47a3c;
  --pixel: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 18px;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.noise {
  opacity: .09;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 7px 5px, 5px 7px;
  mix-blend-mode: screen;
}

.scanlines {
  opacity: .16;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .06) 0,
    rgba(255, 255, 255, .06) 1px,
    transparent 1px,
    transparent 5px
  );
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(5, 5, 5, .94), rgba(5, 5, 5, .35));
  border-bottom: 1px solid rgba(200, 37, 48, .22);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.brand-mark,
.hero-mark {
  image-rendering: pixelated;
  shape-rendering: crispEdges;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px #050505, 0 0 22px rgba(200, 37, 48, .34);
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  color: var(--muted);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.nav-links a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--red);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 5vw, 72px) 76px;
  isolation: isolate;
  overflow: hidden;
}

.hero-art,
.hero-shade,
.pixel-rain {
  position: absolute;
  inset: 0;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: .94;
  filter: saturate(.88) contrast(1.06) brightness(.94);
  z-index: -4;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .24) 46%, rgba(0, 0, 0, .03)),
    linear-gradient(180deg, rgba(5, 5, 5, .06), #030303 99%);
}

.pixel-rain {
  z-index: -2;
  opacity: .23;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(226, 216, 200, .16) 21px 22px, transparent 22px 34px),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(200, 37, 48, .14) 28px 32px, transparent 32px 76px);
  animation: fall 1.7s steps(8) infinite;
}

@keyframes fall {
  to {
    transform: translateY(76px);
  }
}

.hero-content {
  width: min(760px, 100%);
}

.studio-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--ash);
  font-family: "Press Start 2P", "Courier New", monospace;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.8;
}

.hero-mark {
  width: 54px;
  height: 54px;
}

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

h1,
h2,
h3,
.button,
.ticker,
.status,
.eyebrow,
.section-heading p {
  font-family: "Press Start 2P", "Courier New", monospace;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(26px, 5.8vw, 74px);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 4px 0 0 #35090d, -4px 4px 0 #010101;
}

.hero-copy {
  width: min(620px, 100%);
  color: #c9bfaf;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 2px solid var(--red);
  background: #0c0c0c;
  color: var(--ink);
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #000;
  font-size: 8px;
  line-height: 1.4;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
}

.button.primary {
  background: var(--red);
  color: #100406;
  font-weight: 700;
}

.button.ghost {
  border-color: var(--line);
}

.ticker {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: auto;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(680px, calc(100% - 36px));
  padding: 0;
  overflow: visible;
  border-top: 0;
  background: transparent;
  color: #9a8e80;
  font-size: 8px;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(200, 37, 48, .32);
  background: rgba(4, 4, 4, .68);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .82);
}

.section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
  border-top: 1px solid #181818;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p,
.eyebrow {
  color: var(--red);
  font-size: 9px;
  text-transform: uppercase;
}

h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.28;
  text-transform: uppercase;
}

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

.game-card {
  background: #0d0d0d;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 #020202;
}

.card-screen {
  min-height: 145px;
  image-rendering: pixelated;
  border-bottom: 1px solid var(--line);
  background-color: #080808;
}

.screen-one {
  background:
    linear-gradient(90deg, transparent 10%, #1b1b1b 10% 14%, transparent 14% 40%, #4a0d12 40% 44%, transparent 44%),
    linear-gradient(0deg, #090909 0 22%, transparent 22%),
    repeating-linear-gradient(90deg, #101010 0 16px, #151515 16px 20px);
}

.screen-two {
  background:
    radial-gradient(circle at 70% 30%, rgba(164, 122, 60, .65) 0 4px, transparent 5px),
    linear-gradient(0deg, #17120f 0 24%, transparent 24%),
    repeating-linear-gradient(45deg, #080808 0 12px, #141414 12px 18px);
}

.screen-three {
  background:
    linear-gradient(90deg, transparent 30%, #eee5d6 30% 34%, transparent 34%),
    linear-gradient(0deg, #090909 0 30%, transparent 30%),
    repeating-linear-gradient(0deg, #070707 0 14px, #151515 14px 19px);
}

.card-body {
  padding: 16px;
}

.status {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 9px;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

.card-body p,
.signal-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  background: linear-gradient(180deg, #030303, #070605);
}

.signal-panel {
  min-height: 360px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(200, 37, 48, .15), transparent 45%),
    #080808;
  box-shadow: inset 0 0 0 8px #030303, 8px 8px 0 #000;
  display: grid;
  place-items: center;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  grid-auto-rows: 42px;
  gap: 8px;
}

.signal-grid i {
  background: #141414;
  border: 1px solid #28201f;
  box-shadow: inset 0 0 0 8px #0b0b0b;
}

.signal-grid i:nth-child(3n) {
  background: var(--red-dark);
}

.signal-grid i:nth-child(5n) {
  background: var(--green);
}

.contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  background: #040404;
}

.contact-link {
  color: var(--ink);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(11px, 2vw, 22px);
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 8px;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 92vh;
    padding-top: 136px;
  }

  .studio-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 28px;
  }

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

  .button {
    width: 100%;
  }

  .signal-grid {
    grid-template-columns: repeat(4, 30px);
    grid-auto-rows: 30px;
  }
}

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

  .pixel-rain {
    animation: none;
  }
}
