/* ============================================================
   ANIMAÇÕES — Fade-in, Slide-up, Pulse, etc.
   ============================================================ */

/* --- FADE IN UP (entrada de elementos ao scroll) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- FADE IN (sem movimento) --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- SLIDE IN LEFT --- */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- SLIDE IN RIGHT --- */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- PULSE (botão CTA) --- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(255,214,0,.50); }
  50%       { box-shadow: 0 4px 40px rgba(255,214,0,.80); }
}

/* Classe aplicada por JS ao botão CTA principal */
.btn-pulse { animation: pulse 2s ease-in-out infinite; }

/* --- SCALE IN (modal) --- */
@keyframes scaleIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* --- CLASSES TRIGGER PELO INTERSECTION OBSERVER --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Delay staggerado para grids */
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }
.animate-delay-5 { transition-delay: .5s; }

/* --- COUNTING ANIMATION (números dos stats) --- */
.count-up {
  display: inline-block;
}

/* --- PROGRESS BAR --- */
@keyframes progressFill {
  from { width: 0; }
}

/* --- BLINK CURSOR --- */
@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Hero subtitle animação de entrada */
.hero__content .hero__pretitle  { animation: fadeInUp .6s ease both; }
.hero__content .hero__title     { animation: fadeInUp .6s ease .1s both; }
.hero__content .hero__subtitle  { animation: fadeInUp .6s ease .2s both; }
.hero__content .hero__actions   { animation: fadeInUp .6s ease .3s both; }
.hero__content .hero__badges    { animation: fadeInUp .6s ease .4s both; }
.hero__visual                   { animation: slideInRight .7s ease .2s both; }

/* Smooth reveal para a navbar ao scrollar */
@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Spinner loading (checkout) */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,0,0,.1);
  border-top-color: var(--color-accent-text);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* Confetti / success animation */
@keyframes successPop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-icon {
  animation: successPop .5s cubic-bezier(.175,.885,.32,1.275) both;
}
