:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --gray-dark: #1a1a1a;
  --gray-mid: #333;
  --gray-light: #888;
  --pixel-border: #444;
  --accent-red: #ff3b3b;
  --accent-cyan: #00e5ff;
  --accent-gold: #ffd700;
  --accent-violet: #b44dff;
  --accent-green: #39ff14;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

.pixel-font {
  font-family: 'Press Start 2P', monospace;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.15) 1px, transparent 0),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.1) 1px, transparent 0),
    radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.12) 1px, transparent 0),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.08) 1px, transparent 0),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 100px 100px;
  animation: drift 20s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

.hero-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 4px 4px 0 var(--gray-mid);
}

.hero-logo .color-letter {
  display: inline-block;
  animation: colorPulse 4s ease-in-out infinite;
}

.hero-logo .color-letter:nth-child(1) { color: var(--accent-red); animation-delay: 0s; }
.hero-logo .color-letter:nth-child(2) { color: var(--accent-cyan); animation-delay: 0.5s; }
.hero-logo .color-letter:nth-child(3) { color: var(--accent-gold); animation-delay: 1s; }

@keyframes colorPulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.7; filter: brightness(1.4); }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gray-light);
  max-width: 500px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

/* Hero CTA actions row */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

/* Hero CTA button — base */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 1rem 1.75rem;
  text-decoration: none;
  min-width: 260px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Primary: filled white — "Play as Guest" is the main path */
.hero-cta--primary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--white);
}
.hero-cta--primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Secondary: outlined — Google sign-in */
.hero-cta--secondary {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--pixel-border);
}
.hero-cta--secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Disclaimer under the buttons */
.hero-guest-note {
  font-size: 0.75rem;
  color: var(--gray-light);
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.hero-pixels {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.hero-pixel {
  width: 12px;
  height: 12px;
  background: var(--white);
  opacity: 0.3;
  animation: pixelBlink 3s ease-in-out infinite;
}

.hero-pixel:nth-child(2) { animation-delay: 0.4s; }
.hero-pixel:nth-child(3) { animation-delay: 0.8s; }
.hero-pixel:nth-child(4) { animation-delay: 1.2s; }
.hero-pixel:nth-child(5) { animation-delay: 1.6s; }

@keyframes pixelBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== SECTION BASE ===== */
section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ===== CONCEPT ===== */
.concept {
  border-top: 1px solid var(--gray-mid);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.concept-card {
  padding: 2rem;
  border: 1px solid var(--pixel-border);
  position: relative;
}

.concept-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--white);
  border-left: 2px solid var(--white);
}

.concept-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.concept-card p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.concept-card.has-color {
  border-color: var(--accent-cyan);
}

.concept-card.has-color::before {
  border-color: var(--accent-cyan);
}

/* ===== FEATURES ===== */
.features {
  border-top: 1px solid var(--gray-mid);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--pixel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  image-rendering: pixelated;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== GACHA ===== */
.gacha {
  border-top: 1px solid var(--gray-mid);
  text-align: center;
}

.gacha-visual {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.gacha-swatch {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.gacha-swatch:hover {
  transform: scale(1.3);
}

.gacha-swatch:nth-child(1) { background: var(--accent-red); }
.gacha-swatch:nth-child(2) { background: var(--accent-cyan); }
.gacha-swatch:nth-child(3) { background: var(--accent-gold); }
.gacha-swatch:nth-child(4) { background: var(--accent-violet); }
.gacha-swatch:nth-child(5) { background: var(--accent-green); }
.gacha-swatch:nth-child(6) { background: #ff6b9d; }
.gacha-swatch:nth-child(7) { background: #ff8c00; }
.gacha-swatch:nth-child(8) { background: #00ff88; }

.gacha-desc {
  color: var(--gray-light);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  border-top: 1px solid var(--gray-mid);
  text-align: center;
  padding-bottom: 4rem;
}

.closing-statement {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.4;
}

.closing-sub {
  color: var(--gray-light);
  font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--gray-mid);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--gray-light);
  letter-spacing: 0.2em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .gacha-swatch {
    width: 32px;
    height: 32px;
  }
}