/* ===================================================
   FLARESALE — KEYFRAME ANIMATIONS
   =================================================== */

/* ─── PULSE & GLOW ───────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px currentColor; }
  50%       { opacity: 0.6; box-shadow: 0 0 4px currentColor; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ─── FLOAT ──────────────────────────────────────── */
@keyframes float-bob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(1deg); }
  66%       { transform: translateY(-5px) rotate(-0.5deg); }
}

/* ─── GRADIENT SHIFT ─────────────────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── SHIMMER ────────────────────────────────────── */
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── SPIN ───────────────────────────────────────── */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── FADE IN VARIANTS ───────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fade-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── HERO ENTRANCE ──────────────────────────────── */
.hero-badge   { animation: fade-in-up 0.6s ease both; animation-delay: 0.1s; }
.hero-title   { animation: fade-in-up 0.7s ease both; animation-delay: 0.2s; }
.hero-subtitle{ animation: fade-in-up 0.7s ease both; animation-delay: 0.35s; }
.hero-actions { animation: fade-in-up 0.7s ease both; animation-delay: 0.5s; }
.hero-stats   { animation: fade-in-up 0.7s ease both; animation-delay: 0.65s; }
.hero-visual  { animation: fade-in-left 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: 0.3s; }

/* ─── LIVE BADGE ─────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #10b981;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(16,185,129,0.5);
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ─── ANIMATED GRADIENT TEXT ─────────────────────── */
.gradient-animated {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ─── SHIMMER BUTTON EFFECT ──────────────────────── */
.btn-primary .shimmer {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg) translateX(-150%);
}

.btn-primary:hover .shimmer {
  animation: shimmer 0.8s ease;
}

/* ─── SCROLL INDICATOR ───────────────────────────── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: fade-in-up 1s ease both 1.2s;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse-dot {
  width: 3px; height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ─── FEATURE CARD ENTRANCE ──────────────────────── */
.feature-card {
  animation: none !important; /* handled by JS IntersectionObserver */
}

/* ─── STATS COUNTER ──────────────────────────────── */
.counter {
  display: inline-block;
}

/* ─── NOISE TEXTURE OVERLAY ──────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── MARQUEE TRUST BAR ──────────────────────────── */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}

.trust-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg), transparent);
}

.trust-bar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-bg), transparent);
}

.trust-track {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.trust-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.trust-item:hover { opacity: 1; }

.trust-item-icon {
  font-size: 1.25rem;
}
