/* ============================================================
   ANIMATIONS — VistoAuto Landing Page
   ============================================================ */

/* --- Keyframes -------------------------------------------- */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(124, 77, 255, 0);
  }
}

@keyframes pulseGlowBtn {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(124, 77, 255, 0.35);
  }
  50% {
    box-shadow: 0 4px 40px rgba(124, 77, 255, 0.65);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scrollLine {
  0% {
    height: 0;
    opacity: 1;
  }
  80%,
  100% {
    height: 40px;
    opacity: 0;
  }
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

@keyframes statusFlip {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pricingGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* --- Reveal on scroll ------------------------------------ */

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

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

/* --- Gradient text animated shimmer -------------------- */

.gradient-text {
  background: linear-gradient(135deg, #b388ff 0%, #7c4dff 30%, #2979ff 65%, #7c4dff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

/* --- Hero scroll indicator ------------------------------ */

.scroll-line {
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, rgba(124, 77, 255, 0.8), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* --- Badge pulse dot ------------------------------------ */

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c4dff;
  animation: badgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* --- Status dot ----------------------------------------- */

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-ok {
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}
.status-dot.status-alert {
  background: #f44336;
  box-shadow: 0 0 6px rgba(244, 67, 54, 0.5);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

/* --- Pricing glow --------------------------------------- */

.pricing-glow {
  animation: pricingGlow 3s ease-in-out infinite;
}

/* --- Button pulse --------------------------------------- */

.btn-primary {
  animation: pulseGlowBtn 3s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus {
  animation: none;
}

/* --- Alert card status flip on toggle ------------------ */

.alert-status.flipping {
  animation: statusFlip 0.3s ease-in-out;
}
