/* ========================================
   Animations — Keyframes, fade-in, scroll bar
   ======================================== */

/* ---------- Orb drift keyframes ---------- */

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-50px, 50px) scale(1.05); }
  66%      { transform: translate(40px, -20px) scale(1.1); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, 40px) scale(1.08); }
  66%      { transform: translate(-60px, -30px) scale(0.92); }
}

/* ---------- Phone float ---------- */

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

/* ---------- Gradient rotate (pricing border) ---------- */

@keyframes gradient-rotate {
  0%   { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ---------- Shimmer (CTA section) ---------- */

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

/* ---------- Scroll-triggered fade-in ---------- */

.js-ready [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-ready [data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stagger delays ---------- */

.js-ready [data-animate]:nth-child(2) {
  transition-delay: 0.1s;
}

.js-ready [data-animate]:nth-child(3) {
  transition-delay: 0.2s;
}

.js-ready [data-animate]:nth-child(4) {
  transition-delay: 0.3s;
}

/* ---------- Reduced motion ---------- */

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

  .js-ready [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress {
    transition: none;
  }
}

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient);
  z-index: 2000;
  transition: width 0.1s linear;
}
