/* =============================================================
   VALO.TRACK — Animations
   Jett dash, wind rings, agent ultimate effects
   ============================================================= */

/* ---------------- Jett float + dash ---------------- */
@keyframes jettFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes jettDash {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  40% { transform: translate(60px, -30px) scale(1.04); opacity: 0.85; }
  70% { transform: translate(-20px, -10px) scale(0.98); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

.jett-silhouette {
  animation: jettFloat 4s ease-in-out infinite;
  will-change: transform;
}

.jett-silhouette:hover {
  animation: jettDash 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Cape flutter */
@keyframes capeFlutter {
  0%, 100% { transform: rotate(-3deg) skewX(-2deg); }
  50% { transform: rotate(3deg) skewX(3deg); }
}

.jett-cape {
  transform-origin: 95px 120px;
  animation: capeFlutter 2.4s ease-in-out infinite;
}

/* Wind bursts */
@keyframes windBurst {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
    border-color: rgba(157, 246, 255, 0.6);
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
    border-color: rgba(157, 246, 255, 0);
  }
}

.jett-wind {
  animation: windBurst 2.4s ease-out infinite;
}

.jett-wind--2 {
  animation-delay: 0.8s;
}

.jett-wind--3 {
  animation-delay: 1.6s;
}

/* Rings slow rotation */
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ring-1 {
  animation: ringRotate 40s linear infinite;
}

.ring-2 {
  animation: ringRotate 28s linear infinite reverse;
}

.ring-3 {
  animation: ringRotate 18s linear infinite;
}

/* ---------------- Scroll bar hint ---------------- */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

.scroll-bar {
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------------- Hero title stagger reveal ---------------- */
@keyframes titleSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-line {
  animation: titleSlideUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.25s; }

.hero-sub,
.hero-cta,
.hero-stats {
  animation: titleSlideUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-sub { animation-delay: 0.4s; }
.hero-cta { animation-delay: 0.55s; }
.hero-stats { animation-delay: 0.7s; }

/* ---------------- Button ripple on hover ---------------- */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

/* ---------------- Feature card shimmer ---------------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.feature-card--locked::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--valo-gold);
  box-shadow: 0 0 10px var(--valo-gold);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ---------------- Stat counter ---------------- */
.hero-stat-num {
  display: inline-block;
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
