/* === Base Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

/* === CTA Glow (sky blue) === */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3, 105, 161, 0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(3, 105, 161, 0.15); }
}
.btn-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* === Text gradient (sky blue → gold) === */
.text-gradient {
  background: linear-gradient(135deg, #0369A1, #38BDF8, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Tabular numbers === */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* === Alpine cloak === */
[x-cloak] { display: none !important; }

/* === Story slide transitions === */
@keyframes slideInLeft {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.slide-in-left { animation: slideInLeft 0.25s ease-out forwards; }
.slide-in-right { animation: slideInRight 0.25s ease-out forwards; }

/* === Ring pulse for unviewed story thumbnails === */
@keyframes ringPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}
.ring-pulse circle {
  animation: ringPulse 2s ease-in-out infinite;
}

/* === Shimmer loading placeholder === */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.story-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* === Animated counter === */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Sticky CTA bar === */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.sticky-cta.visible { transform: translateY(0); }

/* === Proof ticker auto-scroll === */
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  animation: tickerScroll 20s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }

/* === Earning calculator slider === */
input[type="range"].calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #0369A1 var(--val, 10%), #E0F2FE var(--val, 10%));
  outline: none;
}
input[type="range"].calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0369A1;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}
input[type="range"].calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0369A1;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* === Progress path milestones === */
.milestone-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.3s ease;
}
.milestone-dot.reached {
  background: #0369A1;
  color: white;
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.2);
}
.milestone-dot.upcoming {
  background: #E0F2FE;
  color: #0369A1;
}

/* === Scrollbar hide for horizontal scroll === */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Card hover lift === */
.card-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
