:root {
  --bg-0: #050505;
  --bg-1: #120d08;
  --bg-2: #24180c;
  --panel: rgba(15, 11, 8, 0.88);
  --panel-strong: rgba(21, 14, 9, 0.96);
  --line: rgba(255, 173, 84, 0.16);
  --line-strong: rgba(255, 145, 72, 0.78);
  --gold: #ffd872;
  --gold-deep: #ca8620;
  --red: #ff705d;
  --red-soft: #ffb39c;
  --text: #ffe8c0;
  --muted: #dfbe89;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  --display: 'Press Start 2P', monospace;
  --body: 'VT323', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 198, 95, 0.12), transparent 24%),
    radial-gradient(circle at 16% 0%, rgba(255, 92, 70, 0.1), transparent 18%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 28%, var(--bg-0) 100%);
  font-family: var(--body);
}

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

.pixel-world {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.pixel-grid,
.pixel-scanlines,
.pixel-rain,
.pixel-battle,
.pixel-planets {
  position: absolute;
  inset: 0;
}

.pixel-grid {
  background-image:
    linear-gradient(rgba(255, 114, 65, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 114, 65, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.12));
  animation: gridDrift 20s linear infinite;
}

.pixel-scanlines {
  background-image: linear-gradient(rgba(255,255,255,0.025) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: 0.2;
}

.rain-pixel {
  position: absolute;
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, rgba(255, 220, 145, 0.72), rgba(255, 104, 78, 0));
  animation: pixelRain linear infinite;
}

.star-pixel {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffd991;
  box-shadow: 0 0 10px rgba(255, 182, 86, 0.7);
  animation: twinkle ease-in-out infinite;
}

.battle-fighter,
.battle-alien {
  position: absolute;
  width: 30px;
  height: 14px;
  opacity: 0.38;
}

.battle-fighter {
  background: linear-gradient(90deg, #f6d16b 0 30%, #8a4d1f 30% 68%, #f1a068 68% 100%);
  clip-path: polygon(0 60%, 18% 18%, 70% 18%, 100% 50%, 72% 82%, 18% 82%);
  animation: driftFighter 16s linear infinite;
}
.battle-fighter.reverse { transform: scaleX(-1); }
.battle-alien {
  background: linear-gradient(180deg, #ff8f74 0 45%, #7f281c 45% 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 34%, 82% 62%, 82% 100%, 62% 100%, 50% 78%, 38% 100%, 18% 100%, 18% 62%, 0 34%);
  animation: driftAlien 20s linear infinite;
}
.battle-laser {
  position: absolute;
  width: 2px;
  height: 88px;
  background: linear-gradient(180deg, rgba(255, 237, 146, 0.88), rgba(255, 92, 71, 0));
  opacity: 0.3;
  animation: laserPulse 1.1s ease-in-out infinite;
}

.planet { position: absolute; border-radius: 50%; opacity: 0.24; }
.planet.one { width: 100px; height: 100px; left: 8%; top: 10%; background: radial-gradient(circle at 34% 30%, #ffe7a3, #cb7d1d 62%, #3f2209 100%); }
.planet.two { width: 60px; height: 60px; right: 14%; top: 18%; background: radial-gradient(circle at 36% 28%, #ffd0c0, #8e3325 64%, #2b0f09 100%); }
.planet.three { width: 42px; height: 42px; left: 24%; bottom: 22%; background: radial-gradient(circle at 36% 28%, #fff0b7, #c9861f 62%, #43260b 100%); }
.planet.four { width: 72px; height: 72px; right: 22%; bottom: 14%; background: radial-gradient(circle at 34% 30%, #ffe7a3, #9867cf 62%, #231032 100%); opacity: .18; }
.planet.ring::after {
  content: '';
  position: absolute;
  inset: 44% -22%;
  border: 2px solid rgba(255, 220, 151, 0.62);
  border-radius: 50%;
}
.drift-slow { animation: planetDriftSlow 18s ease-in-out infinite; }
.drift-mid { animation: planetDriftMid 14s ease-in-out infinite; }
.drift-fast { animation: planetDriftFast 10s ease-in-out infinite; }

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 34px));
  margin: 0 auto;
  padding: 20px 0 38px;
}

.topbar,
.hero-card,
.hero-panel,
.page-card,
.page-banner,
.stat-card,
.mini-card,
.footerbar {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(255, 201, 103, 0.18));
}

.brand-copy h1,
.hero-copy h2,
.section-title h3,
.page-card h3,
.page-card h4,
.page-banner h3,
.mini-card strong,
.nav a,
.button,
.eyebrow,
.stat-number,
.kicker,
.hero-console strong,
.hero-console .eyebrow {
  font-family: var(--display);
}

.brand-copy h1,
.hero-copy h2,
.section-title h3,
.page-card h3,
.page-card h4,
.page-banner h3 {
  margin: 0;
  color: #fff4cf;
}

.brand-copy h1 { font-size: clamp(0.88rem, 1.2vw, 1rem); line-height: 1.55; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--red-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  line-height: 1.7;
}

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.nav a,
.button {
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(36, 20, 11, 0.94), rgba(19, 12, 8, 0.96));
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.nav a { padding: 11px 13px; font-size: 0.62rem; line-height: 1.4; }
.nav a:hover,
.nav a.active,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 110, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 216, 140, 0.12), 0 10px 18px rgba(88, 24, 10, 0.34);
}
.nav a.active { background: linear-gradient(180deg, rgba(82, 34, 18, 0.9), rgba(28, 15, 10, 0.96)); }

main { margin-top: 24px; }
.hero-layout,
.two-col,
.three-col,
.stats-row,
.manifest-grid { display: grid; gap: 22px; }
.hero-layout { grid-template-columns: 1.02fr 0.98fr; }
.two-col { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.stats-row { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.manifest-grid { grid-template-columns: repeat(3, 1fr); }

.hero-card,
.hero-panel,
.page-card,
.page-banner,
.mini-card { padding: 28px; }

.hero-copy h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  line-height: 1.35;
  max-width: 14ch;
  text-shadow: 3px 3px 0 rgba(68, 28, 8, 0.9);
}

.hero-copy p,
.page-card p,
.page-banner p,
.clean-list,
.feature-lines li,
.stat-label,
.hero-console span,
.mini-card span {
  font-family: var(--body);
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.35rem;
}

.hero-buttons,
.card-actions,
.support-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text);
}
.button.primary { color: #261004; background: linear-gradient(180deg, #ffd96d 0%, #d38b22 100%); }
.button.wide { width: 100%; }

.tag-row span,
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 197, 95, 0.32);
  background: rgba(37, 19, 10, 0.72);
  color: #ffd8a7;
  font-family: var(--display);
  font-size: 0.56rem;
  line-height: 1.5;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(180deg, rgba(10, 8, 5, 0.96), rgba(18, 11, 8, 0.92));
}
.hero-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48%;
  background-image:
    linear-gradient(rgba(255, 113, 74, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 113, 74, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(480px) rotateX(72deg);
  transform-origin: bottom;
  animation: gridDrift 18s linear infinite reverse;
}
.hero-soldier {
  position: absolute;
  inset: 20px 24px 96px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-soldier img {
  width: min(82%, 430px);
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,0.55));
  animation: floatSprite 4.8s ease-in-out infinite;
}
.hero-console {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 175, 88, 0.7);
  background: rgba(10, 8, 6, 0.9);
}
.hero-console strong { display: block; margin-top: 8px; color: #fff2c7; font-size: 0.86rem; line-height: 1.7; }
.hero-console span { display: block; margin-top: 8px; font-size: 0.96rem; }

.section-title { margin: 30px 0 16px; }
.section-title h3 { font-size: clamp(1.2rem, 2vw, 1.9rem); line-height: 1.5; }
.stat-card { padding: 20px 18px; }
.stat-number { display: block; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1.7; color: #fff2c7; }
.stat-label { display: block; margin-top: 10px; font-size: 1.22rem; }

.feature-lines,
.clean-list { margin: 14px 0 0; padding-left: 20px; }
.feature-lines li,
.clean-list li { margin-bottom: 8px; }
.page-card.highlight { background: linear-gradient(180deg, rgba(34, 19, 10, 0.95), rgba(18, 12, 8, 0.98)); }
.page-card h4, .page-card h3, .page-banner h3 { font-size: 1.22rem; line-height: 1.7; }
.page-banner { margin-bottom: 24px; }

.scene-card, .scene-frame { position: relative; overflow: hidden; }
.scene-frame {
  min-height: 260px;
  border: 1px solid rgba(255, 181, 88, 0.24);
  background:
    linear-gradient(rgba(255, 115, 70, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 115, 70, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11,8,6,0.94), rgba(6,5,4,0.98));
  background-size: 30px 30px, 30px 30px, auto;
  margin-top: 18px;
}
.scene-frame::before,
.scene-frame::after {
  content: '';
  position: absolute;
}
.scene-frame::before {
  width: 80px; height: 80px; left: 12%; top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe7a3, #cb7d1d 62%, #3f2209 100%);
  opacity: .82;
  animation: planetDriftSlow 16s ease-in-out infinite;
}
.scene-frame::after {
  width: 44px; height: 44px; right: 18%; top: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #ffd0c0, #8e3325 64%, #2b0f09 100%);
  opacity: .8;
  box-shadow: 0 0 0 2px rgba(255,220,151,.36), 0 0 0 16px rgba(255,220,151,.06);
  animation: planetDriftFast 11s ease-in-out infinite;
}

.footerbar {
  margin-top: 26px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 1.22rem;
}

@keyframes floatSprite { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pixelRain { from { transform: translateY(-120vh); opacity: 0; } 15% { opacity: .85; } to { transform: translateY(120vh); opacity: 0; } }
@keyframes driftFighter { 0% { transform: translateX(-30px); } 50% { transform: translateX(28px); } 100% { transform: translateX(-30px); } }
@keyframes driftAlien { 0% { transform: translateX(30px); } 50% { transform: translateX(-22px); } 100% { transform: translateX(30px); } }
@keyframes laserPulse { 0%,100% { opacity: .16; } 50% { opacity: .55; } }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }
@keyframes gridDrift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 38px, 38px 0; } }
@keyframes planetDriftSlow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,-6px); } }
@keyframes planetDriftMid { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12px,6px); } }
@keyframes planetDriftFast { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8px,8px); } }

@media (max-width: 1120px) {
  .hero-layout, .two-col, .three-col, .stats-row, .manifest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-shell { width: min(100% - 16px, 1280px); }
  .topbar, .brand-lockup { flex-direction: column; align-items: flex-start; }
  .hero-copy h2 { max-width: none; }
  .nav { justify-content: flex-start; }
  .hero-card, .hero-panel, .page-card, .page-banner, .mini-card { padding: 18px; }
  .footerbar { flex-direction: column; }
  .button, .nav a, .eyebrow, .kicker, .brand-copy h1, .page-card h4, .page-card h3, .hero-console strong, .section-title h3, .stat-number {
    font-size: revert;
    font-family: var(--body);
  }
}

