@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

@keyframes floatReverse {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(12px) rotate(-4deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(145, 71, 255, 0));
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(145, 71, 255, 0.45));
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.period-banner--animated {
  background: linear-gradient(
    90deg,
    var(--purple-deep) 0%,
    var(--purple-primary) 40%,
    var(--orange-accent) 50%,
    var(--purple-primary) 60%,
    var(--purple-deep) 100%
  );
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
}

.site-logo__icon--animated {
  animation: logoPulse 3s ease-in-out infinite;
}

.hero-decor--float {
  animation: float 6s ease-in-out infinite;
}

.hero-decor--float-reverse {
  animation: floatReverse 5s ease-in-out infinite;
}

.hero-decor--sparkle {
  animation: sparkle 2.5s ease-in-out infinite;
}

.title-hero--animated {
  animation: fadeInUp 0.8s ease both;
}

.hero__subtitle--animated {
  animation: fadeInUp 0.8s ease 0.15s both;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.goal-panel[aria-hidden="false"] {
  animation: panelIn 0.45s ease both;
}

.prize-grid li {
  animation: fadeInUp 0.5s ease both;
}

.prize-grid li:nth-child(1) { animation-delay: 0.05s; }
.prize-grid li:nth-child(2) { animation-delay: 0.1s; }
.prize-grid li:nth-child(3) { animation-delay: 0.15s; }
.prize-grid li:nth-child(4) { animation-delay: 0.2s; }
.prize-grid li:nth-child(5) { animation-delay: 0.25s; }
.prize-grid li:nth-child(6) { animation-delay: 0.3s; }

.tier-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(145, 71, 255, 0.18);
}

.btn--primary {
  animation: fadeInUp 0.8s ease 0.3s both;
}

.exclusion-callout {
  animation: fadeInUp 0.7s ease 0.2s both;
}

.reveal.is-visible .info-card {
  animation: fadeInUp 0.55s ease both;
}

.reveal.is-visible .info-card:nth-child(1) { animation-delay: 0.05s; }
.reveal.is-visible .info-card:nth-child(2) { animation-delay: 0.12s; }
.reveal.is-visible .info-card:nth-child(3) { animation-delay: 0.19s; }
.reveal.is-visible .info-card:nth-child(4) { animation-delay: 0.26s; }

.reveal.is-visible .faq-item {
  animation: fadeInUp 0.5s ease both;
}

.reveal.is-visible .faq-item:nth-child(1) { animation-delay: 0.03s; }
.reveal.is-visible .faq-item:nth-child(2) { animation-delay: 0.06s; }
.reveal.is-visible .faq-item:nth-child(3) { animation-delay: 0.09s; }
.reveal.is-visible .faq-item:nth-child(4) { animation-delay: 0.12s; }
.reveal.is-visible .faq-item:nth-child(5) { animation-delay: 0.15s; }

.reveal.is-visible .tier-card {
  animation: fadeInUp 0.55s ease both;
}

.reveal.is-visible .tier-card:nth-child(1) { animation-delay: 0.05s; }
.reveal.is-visible .tier-card:nth-child(2) { animation-delay: 0.15s; }
.reveal.is-visible .tier-card:nth-child(3) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .period-banner--animated,
  .site-logo__icon--animated,
  .hero-decor--float,
  .hero-decor--float-reverse,
  .hero-decor--sparkle,
  .title-hero--animated,
  .hero__subtitle--animated,
  .goal-panel[aria-hidden="false"],
  .prize-grid li,
  .btn--primary,
  .exclusion-callout {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tier-card:hover {
    transform: none;
  }

  .reveal.is-visible .info-card,
  .reveal.is-visible .faq-item,
  .reveal.is-visible .tier-card {
    animation: none;
  }
}
