/* ============================================
   HUNTO — ANIMATIONS
   Keyframes + scroll-driven enter animations
   ============================================ */

/* ===== KEYFRAMES ===== */

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow-glow-primary);
  }
  50% {
    box-shadow: var(--shadow-glow-primary-lg);
  }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

@keyframes caret-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes gauge-fill {
  from { width: 0; }
  to   { width: 23%; }
}

@keyframes row-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SCROLL ANIMATIONS ===== */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (timeline, grids) */

.timeline__step[data-animate] {
  transition-delay: 0ms;
}

.proof__item[data-animate].proof__item--2 {
  transition-delay: 100ms;
}

.proof__item[data-animate].proof__item--3 {
  transition-delay: 200ms;
}

.plan[data-animate].plan--sub {
  transition-delay: 120ms;
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn--pulse {
    animation: none;
  }
  .marquee__track {
    animation: none;
  }
}
