/* ═══════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
═══════════════════════════════════════════════════════════ */

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

@keyframes scroll-bounce {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 0; transform: translateY(10px); }
  61%  { opacity: 0; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.85) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes count-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   GSAP ANIMATION TARGETS — initial hidden states
   (GSAP will animate these in via ScrollTrigger)
═══════════════════════════════════════════════════════════ */

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
}

/* ═══════════════════════════════════════════════════════════
   HERO — load-time animation classes (applied by JS)
═══════════════════════════════════════════════════════════ */

.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
}

/* Floating cards start hidden */
.floating-card,
.hero-stat-card {
  opacity: 0;
  transform: translateY(16px);
}

/* ═══════════════════════════════════════════════════════════
   PRICING TOGGLE — selection state transition
   NOTE: No CSS keyframe animation here — GSAP sets inline
   opacity/transform after entrance; keyframe animations
   lose to inline styles and produce broken visual state.
   All selected-state feedback is handled by CSS transitions
   on border, background, and child elements only.
═══════════════════════════════════════════════════════════ */

.pricing-toggle {
  will-change: border-color, background-color, box-shadow;
}

/* ═══════════════════════════════════════════════════════════
   PRICE NUMBER — update animation
═══════════════════════════════════════════════════════════ */

.price-changed {
  animation: count-in 0.25s ease both;
}

/* ═══════════════════════════════════════════════════════════
   COPY BUTTON — success state
═══════════════════════════════════════════════════════════ */

.btn-copy-upi.copied {
  color: var(--success);
  background: var(--success-light);
  border-color: var(--success-border);
}

/* ═══════════════════════════════════════════════════════════
   STEP NUMBERS — highlight when scrolled to
═══════════════════════════════════════════════════════════ */

.step.is-visible .step-num-wrap {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(29,78,216,0.12), 0 0 0 12px var(--bg-alt);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.step.is-visible .step-num {
  color: #fff;
  transition: color 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════
   SMOOTH SCROLL OVERRIDE (Lenis applies its own transform)
═══════════════════════════════════════════════════════════ */

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION SUPPORT
═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .hero-content > *,
  .floating-card,
  .hero-stat-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .scroll-wheel { animation: none; }
  .eyebrow-dot  { animation: none; }
}
