:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e8f0;
  --fg-muted: #8888a0;
  --accent: #ff3366;
  --accent-glow: rgba(255, 51, 102, 0.3);
  --neon-green: #00ff88;
  --neon-blue: #3388ff;
  --neon-purple: #aa44ff;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,51,102,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,51,102,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.boss-hp {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.hp-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.hp-bar {
  width: 200px;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,51,102,0.2);
}

.hp-fill {
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff6644);
  border-radius: 4px;
  animation: pulse-hp 2s ease-in-out infinite;
}

@keyframes pulse-hp {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--neon-green);
  border: 1px solid rgba(0,255,136,0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,51,102,0.1);
  border-bottom: 1px solid rgba(255,51,102,0.1);
}

.how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.how h2 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 3rem;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--accent);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-right .feature-text {
  order: 2;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-purple);
  margin-bottom: 0.75rem;
}

.feature-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Feature visuals */
.difficulty-meter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diff-level {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.diff-level::before {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  width: 80px;
}

.diff-level.skull {
  border-color: var(--accent);
  background: rgba(255,51,102,0.08);
  color: var(--accent);
}

.boss-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.boss-type {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.3s;
}

.boss-type:hover {
  border-color: var(--neon-blue);
}

.boss-type span {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.score-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-good, .score-bad {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.score-good {
  border-color: rgba(0,255,136,0.3);
}

.score-bad {
  border-color: rgba(255,51,102,0.3);
}

.score-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
}

.score-verdict {
  font-size: 0.8rem;
  display: block;
  margin-top: 0.25rem;
}

.score-good .score-verdict { color: var(--neon-green); }
.score-bad .score-verdict { color: var(--accent); }

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255,51,102,0.1);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.closing h2 em {
  font-style: italic;
  color: var(--fg-muted);
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
footer {
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-right .feature-text {
    order: 0;
  }

  .boss-types {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem;
    min-height: 90vh;
  }

  .hp-bar { width: 140px; }

  .boss-types {
    grid-template-columns: 1fr;
  }
}