@font-face {
  font-family: "Press Start 2P";
  src: url("assets/PressStart2P-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #0a0618;
  --bg2: #12082a;
  --pink: #ff4fa3;
  --cyan: #00ffff;
  --yellow: #ffee00;
  --purple: #7b2cbf;
  --text: #e8e0ff;
  --muted: #9988bb;
  --border: #2a1848;
  --glow: rgba(255, 79, 163, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.85em;
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--pink);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 6, 24, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  image-rendering: pixelated;
}

.site-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.9rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--pink) !important;
  border: 1px solid var(--pink);
  padding: 6px 14px;
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--pink);
  color: var(--bg) !important;
  text-decoration: none !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--pink);
  color: var(--bg);
  box-shadow: 0 0 20px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--glow);
}

.btn-ghost {
  border-color: var(--cyan);
  color: var(--cyan);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(0, 255, 255, 0.1);
}

.btn-steam {
  background: #1b2838;
  color: #fff;
  border-color: #66c0f4;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 0.55rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ff6b9d 0%, #c44dff 25%, #2a1050 55%, var(--bg) 100%);
}

.hero-bg .road {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 140%;
  height: 45%;
  transform: translateX(-50%) perspective(200px) rotateX(55deg);
  background: linear-gradient(90deg, #222 0%, #444 48%, #ff0 49%, #444 51%, #222 100%);
  background-size: 80px 100%;
  animation: roadScroll 1.2s linear infinite;
  opacity: 0.5;
}

@keyframes roadScroll {
  from { background-position: 0 0; }
  to { background-position: 80px 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.hero-logo {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px var(--glow));
  margin-bottom: 16px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eyebrow {
  font-family: "Press Start 2P", monospace;
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.eyebrow.pink {
  color: var(--pink);
}

.hero h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 4vw, 1.4rem);
  line-height: 1.8;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Game spotlight */
.game-spotlight {
  padding: 80px 24px;
  background: var(--bg2);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.spotlight-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.game-frame {
  border: 4px solid var(--pink);
  border-radius: 6px;
  box-shadow: 0 0 40px var(--glow), inset 0 0 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 360px;
  margin: 0 auto;
}

.game-preview {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0618;
}

.preview-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ff6b9d, #7b2cbf 60%, #1a0a3e);
}

.preview-road {
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 55%;
  background: #333;
  transform: perspective(100px) rotateX(40deg);
  transform-origin: bottom;
  border-top: 4px solid #ff0;
}

.preview-car {
  position: absolute;
  bottom: 32%;
  left: 50%;
  width: 36px;
  height: 56px;
  margin-left: -18px;
  background: #e52521;
  border: 2px solid #fff;
  border-radius: 4px;
  animation: carBob 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

@keyframes carBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.preview-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.35rem;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.5);
}

.spotlight-copy h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 1.2rem;
  color: var(--pink);
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.feature-bullets {
  list-style: none;
  margin-bottom: 28px;
}

.feature-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* Features grid */
.features {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-grid article {
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.feature-grid article:hover {
  border-color: var(--pink);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-grid h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  color: var(--pink);
  margin-bottom: 10px;
}

.feature-grid p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Buy section */
.buy {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #1a0a3e 100%);
}

.buy-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: var(--bg2);
  border: 3px solid var(--pink);
  border-radius: 8px;
  box-shadow: 0 0 60px var(--glow);
}

.buy-logo {
  image-rendering: pixelated;
  margin-bottom: 16px;
}

.buy-card h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.price-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 1.4rem;
  color: var(--yellow);
}

.price-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.buy-desc {
  color: var(--muted);
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.buy-fine {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Roadmap */
.roadmap {
  padding: 60px 24px 80px;
  max-width: 640px;
  margin: 0 auto;
}

.roadmap h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  margin-bottom: 24px;
  text-align: center;
}

.roadmap-list {
  list-style: none;
}

.roadmap-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

.roadmap-list .done {
  color: #0f0;
  margin-right: 8px;
}

.roadmap-list .soon {
  color: var(--pink);
  margin-right: 8px;
}

/* Footer */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner strong {
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero h1 {
    font-size: 0.85rem;
  }
}
