/* Homepage — subtle enhancements (hero base styles in components.css) */

.hero.hero-premium {
  position: relative;
  isolation: isolate;
  background: transparent;
}

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

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(244, 180, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 75%, rgba(244, 180, 0, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #0b1f3a 0%, #142d4d 38%, #1f3a5f 72%, #0b1f3a 100%);
}

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.hero-bg-glow--left {
  width: min(400px, 50vw);
  height: min(400px, 50vw);
  top: -6%;
  left: -5%;
  background: radial-gradient(circle, rgba(244, 180, 0, 0.2) 0%, transparent 70%);
}

.hero-bg-glow--right {
  width: min(340px, 45vw);
  height: min(340px, 45vw);
  bottom: 8%;
  right: -4%;
  background: radial-gradient(circle, rgba(255, 202, 40, 0.14) 0%, transparent 68%);
  animation-delay: -4s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content.reveal,
.hero-stack.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.hero-content.reveal.revealed,
.hero-stack.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-stack.reveal.revealed {
  transition-delay: 0.1s;
}

#popular-preview-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 680px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.3), transparent);
}

#popular-preview-section {
  position: relative;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.65; }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stack {
    order: -1;
    height: 240px;
    margin-bottom: var(--space-2);
  }

  .stack-book {
    width: 140px;
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-glow,
  .hero-particles {
    animation: none !important;
  }

  .hero-particles {
    display: none;
  }
}
