/* =========================================
   THE MENU — ANIMATIONS STYLESHEET
   ========================================= */

/* ----- Scroll Reveal Base ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* ----- Hero Orb Drift ----- */
@keyframes orb-drift-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.06); }
  66%      { transform: translate(-25px,25px) scale(0.95); }
}
@keyframes orb-drift-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-40px,30px) scale(1.08); }
}
@keyframes orb-drift-3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(30px,20px) scale(0.92); }
  80%     { transform: translate(-20px,-15px) scale(1.04); }
}

.hero-orb-1 { animation: orb-drift-1 14s ease-in-out infinite; }
.hero-orb-2 { animation: orb-drift-2 18s ease-in-out infinite; }
.hero-orb-3 { animation: orb-drift-3 11s ease-in-out infinite 2s; }

/* ----- Pulsing Live Dot ----- */
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,255,77,0.5); opacity: 1; }
  50%     { box-shadow: 0 0 0 7px rgba(201,255,77,0); opacity: 0.8; }
}

/* ----- Floating Phone / Cards ----- */
@keyframes float-a {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(1.2deg); }
}
@keyframes float-b {
  0%,100% { transform: translateY(0px); }
  40%     { transform: translateY(10px); }
}
@keyframes float-c {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  35%     { transform: translateY(-9px) rotate(-1deg); }
  70%     { transform: translateY(5px) rotate(0.5deg); }
}

.float-a { animation: float-a 7s ease-in-out infinite; }
.float-b { animation: float-b 9s ease-in-out infinite; }
.float-c { animation: float-c 8s ease-in-out infinite 1s; }

/* ----- Chart Bar Entrance ----- */
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1);  transform-origin: bottom; }
}
.ch-bar.animated {
  animation: bar-grow 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-play-state: paused;
}
.ch-bar.animated.play { animation-play-state: running; }
.ch-bar:nth-child(1)  { animation-delay: 0.05s; }
.ch-bar:nth-child(2)  { animation-delay: 0.10s; }
.ch-bar:nth-child(3)  { animation-delay: 0.15s; }
.ch-bar:nth-child(4)  { animation-delay: 0.20s; }
.ch-bar:nth-child(5)  { animation-delay: 0.25s; }
.ch-bar:nth-child(6)  { animation-delay: 0.30s; }
.ch-bar:nth-child(7)  { animation-delay: 0.35s; }
.ch-bar:nth-child(8)  { animation-delay: 0.40s; }
.ch-bar:nth-child(9)  { animation-delay: 0.45s; }
.ch-bar:nth-child(10) { animation-delay: 0.50s; }
.ch-bar:nth-child(11) { animation-delay: 0.55s; }
.ch-bar:nth-child(12) { animation-delay: 0.60s; }
.ch-bar:nth-child(13) { animation-delay: 0.65s; }
.ch-bar:nth-child(14) { animation-delay: 0.70s; }

/* ----- Shimmer Loading Effect ----- */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
.shimmer-bg {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  background-size: 400px 100%;
  animation: shimmer 2.4s ease-in-out infinite;
}

/* ----- Gradient Background Shift ----- */
@keyframes grad-shift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.grad-animate {
  background-size: 200% 200%;
  animation: grad-shift 5s ease infinite;
}

/* ----- Icon Pulse on Hover ----- */
@keyframes icon-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}
.feat-card:hover .icon-frame { animation: icon-pulse 0.5s ease; }

/* ----- Number Counter ----- */
@keyframes count-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-counter].counted { animation: count-in 0.5s ease forwards; }

/* ----- Slide-in from bottom ----- */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slide-up 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }

/* ----- Rotate Animation ----- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ----- Fade In ----- */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in { animation: fade-in 0.5s ease forwards; }

/* ----- Pricing card glow pulse ----- */
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 20px 60px -20px rgba(201,255,77,0.15); }
  50%     { box-shadow: 0 20px 60px -20px rgba(201,255,77,0.38); }
}
.price-card--pro { animation: glow-pulse 4s ease-in-out infinite; }

/* ----- QR scan line ----- */
@keyframes qr-scan {
  0%   { top: 8%; opacity: 0.8; }
  48%  { top: 92%; opacity: 0.8; }
  50%  { opacity: 0; }
  52%  { top: 8%; opacity: 0; }
  54%  { opacity: 0.8; }
  100% { top: 92%; opacity: 0.8; }
}
.qr-scanline {
  position: absolute;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,255,77,0.9), transparent);
  border-radius: 2px;
  animation: qr-scan 3.5s linear infinite;
  pointer-events: none;
}

/* ----- Differentiator cards staggered grid ----- */
.diff-card { transition-delay: calc(var(--i, 0) * 0.06s); }
