/* ================================================
   RevBoostApp — animations.css
   All @keyframes and animation utility classes
   ================================================ */

/* ================================================
   1. HERO MOCKUP FLOAT
   ================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(-1deg); }
}

.anim-float {
  animation: float 5s ease-in-out infinite;
}

/* ================================================
   2. QR SCAN LINE
   ================================================ */
@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.qr-scan-container {
  position: relative;
  overflow: hidden;
}

.qr-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.8), transparent);
  animation: scanLine 1.5s linear infinite;
  animation-delay: 1s;
  pointer-events: none;
  z-index: 2;
}

/* Pause scan when not in view */
.qr-scan-line.paused {
  animation-play-state: paused;
}

/* ================================================
   3. PAGE LOAD SEQUENCE
   ================================================ */

/* Hero eyebrow badge — slides down */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* General fade up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mockup scale in */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94) rotate(-1deg); }
  to   { opacity: 1; transform: scale(1) rotate(-1deg); }
}

/* Slide in from left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Page load animations with delays */
.anim-hero-badge {
  animation: slideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.anim-hero-h1 {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.anim-hero-sub {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.anim-hero-ctas {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.anim-hero-proof {
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.0s both;
}

.anim-hero-mockup {
  animation: scaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.anim-review-card {
  animation: slideInLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.8s both;
}

/* ================================================
   4. STAR FILL ANIMATION
   ================================================ */
@keyframes starFill {
  from { color: var(--text-muted); }
  to   { color: var(--star); }
}

.star-icon {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.star-icon.filled {
  color: var(--star);
}

/* Staggered star fill */
.stars-row .star-icon:nth-child(1) { transition-delay: 0.0s; }
.stars-row .star-icon:nth-child(2) { transition-delay: 0.1s; }
.stars-row .star-icon:nth-child(3) { transition-delay: 0.2s; }
.stars-row .star-icon:nth-child(4) { transition-delay: 0.3s; }
.stars-row .star-icon:nth-child(5) { transition-delay: 0.4s; }

/* ================================================
   5. COUNTER ANIMATION
   ================================================ */
/* Stat numbers use JS — this just marks them */
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* ================================================
   6. HOVER TRANSITIONS
   ================================================ */

/* Primary CTA buttons */
.btn-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
  background-color: var(--accent-dark);
}

/* Cards */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Feature icon scale */
.feature-icon {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.feature-row:hover .feature-icon {
  background: var(--accent-light);
  transform: scale(1.08);
}

/* ================================================
   7. ACCORDION ANIMATION
   ================================================ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-arrow {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* ================================================
   8. PRICING TOGGLE
   ================================================ */
.price-display {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.price-display.switching {
  opacity: 0;
  transform: translateY(-4px);
}

/* ================================================
   9. NAV SCROLL TRANSITION
   ================================================ */
.site-nav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ================================================
   10. TICKER FADE
   ================================================ */
@keyframes tickerFade {
  0%   { opacity: 1; }
  30%  { opacity: 0; }
  60%  { opacity: 0; }
  100% { opacity: 1; }
}

.ticker-number {
  display: inline-block;
  transition: opacity 0.3s ease;
}

/* ================================================
   11. PULSE (for "live" indicator)
   ================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.92); }
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}
