/* ============================================
   lucum.io — Animations
   ============================================ */

/* ----- Scroll Reveal Base ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Feature Card Stagger ----- */
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 100ms; }
.feature-card:nth-child(3) { transition-delay: 200ms; }
.feature-card:nth-child(4) { transition-delay: 300ms; }
.feature-card:nth-child(5) { transition-delay: 400ms; }

/* ----- FAQ Item Stagger ----- */
.faq__item:nth-child(1) { transition-delay: 0ms; }
.faq__item:nth-child(2) { transition-delay: 80ms; }
.faq__item:nth-child(3) { transition-delay: 160ms; }
.faq__item:nth-child(4) { transition-delay: 240ms; }
.faq__item:nth-child(5) { transition-delay: 320ms; }
.faq__item:nth-child(6) { transition-delay: 400ms; }

/* ============================================
   Keyframes
   ============================================ */

/* Bounce — scroll indicator */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Pulse glow — hero dot */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 20px var(--color-accent-glow);
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 40px var(--color-accent-glow),
                 0 0 80px rgba(108, 99, 255, 0.15);
  }
}

/* Fade in down — hero content on load */
@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Apply Animations
   ============================================ */
.hero__scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

.hero__dot {
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero__content {
  animation: fade-in-down 1s ease-out 0.3s both;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
