/* ===========================================
   KEYFRAME ANIMATIONS
=========================================== */
@keyframes float-orb {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out-up {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes pulse-cta {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 4px 40px rgba(139, 92, 246, 0.6),
      0 0 60px rgba(139, 92, 246, 0.4);
  }
}

/* ===========================================
   SCROLL ANIMATIONS
   Research: Fade-in increases perceived quality
=========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation for grids */
.features-grid .animate-visible:nth-child(1) {
  transition-delay: 0s;
}
.features-grid .animate-visible:nth-child(2) {
  transition-delay: 0.1s;
}
.features-grid .animate-visible:nth-child(3) {
  transition-delay: 0.2s;
}

.pricing-grid .animate-visible:nth-child(1) {
  transition-delay: 0s;
}
.pricing-grid .animate-visible:nth-child(2) {
  transition-delay: 0.15s;
}
.pricing-grid .animate-visible:nth-child(3) {
  transition-delay: 0.3s;
}

.steps-container .animate-visible:nth-child(1) {
  transition-delay: 0s;
}
.steps-container .animate-visible:nth-child(2) {
  transition-delay: 0.2s;
}
.steps-container .animate-visible:nth-child(3) {
  transition-delay: 0.4s;
}

/* ===========================================
   PULSING CTA BUTTON
   Research: Animation draws eye to action
=========================================== */
.btn-primary.pulse {
  animation: pulse-cta 4s ease-in-out infinite;
}
