.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Night road canvas background */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Parallax layers */
.hero__parallax {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__parallax-layer {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__stars {
  background: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 50%, transparent 50%),
              radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6) 50%, transparent 50%),
              radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.9) 50%, transparent 50%),
              radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5) 50%, transparent 50%),
              radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.7) 50%, transparent 50%),
              radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.8) 50%, transparent 50%),
              radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.6) 50%, transparent 50%),
              radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.7) 50%, transparent 50%),
              radial-gradient(2px 2px at 60% 70%, rgba(0,240,255,0.4) 50%, transparent 50%),
              radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.5) 50%, transparent 50%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero__city {
  bottom: 0;
  height: 40%;
  top: auto;
  background: linear-gradient(to top, var(--bg-primary) 5%, transparent 100%);
}

.hero__city-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  opacity: 0.15;
}

/* Headlight overlay */
.hero__headlights {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* CRT scanline overlay */
.hero__scanlines {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Content */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero__subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hero__title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-cyan) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.2)); }
  100% { filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.5)); }
}

.hero__description {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero car */
.hero__car-wrapper {
  position: relative;
  margin: 0 auto 3rem;
  width: clamp(250px, 50vw, 450px);
}

.hero__car {
  width: 100%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 240, 255, 0.2));
  image-rendering: pixelated;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-15px) rotate(0.5deg); }
}

/* Pixel exhaust particles canvas */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Stats badges */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__stat {
  background: rgba(26, 31, 53, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 9999px;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.hero__stat:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.hero__stat-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero__stat-value {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-cyan);
}

/* Hero terminal snippet */
.hero__terminal {
  margin-top: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 18, 30, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  text-align: left;
}

.hero__terminal-header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__terminal-copy {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero__terminal-copy:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
}

.hero__terminal-copy.copied {
  color: var(--neon-green);
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.08);
}

.hero__terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.hero__terminal-body {
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.hero__terminal-comment {
  color: var(--text-muted);
}

.hero__terminal-cmd {
  color: var(--neon-green);
}

.hero__terminal-prompt {
  color: var(--neon-cyan);
  margin-right: 0.4rem;
}

@media (max-width: 768px) {
  .hero__terminal {
    max-width: 100%;
  }

  .hero__terminal-body {
    font-size: 0.7rem;
    padding: 0.75rem 1rem;
  }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-indicator span {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-cyan);
  transform: rotate(45deg);
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
