/* ── Entrance Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,0,0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(255,77,0,0); }
}
@keyframes meshMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Scroll-triggered Reveal ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Download button pulse ── */
.btn-primary.pulse { animation: pulse 2s infinite; }

/* ── Floating hero image ── */
.hero-img img { animation: float 6s ease-in-out infinite; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Number counter animation ── */
.count-up { font-variant-numeric: tabular-nums; }

/* ── Typewriter cursor ── */
.typewriter::after {
  content: '|'; color: var(--accent); animation: blink 0.8s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Animated mesh background ── */
.mesh-bg {
  background: linear-gradient(45deg, #0A0A0F, #1a0a1f, #0d1520, #1a0a0f);
  background-size: 400% 400%;
  animation: meshMove 15s ease infinite;
}

/* ── Stagger animation for grids ── */
.stagger-in > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.16s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.24s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.32s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.48s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.56s; }

/* ── Shimmer loading effect ── */
@keyframes shimmer {
  from { background-position: -1000px 0; }
  to { background-position: 1000px 0; }
}
.shimmer {
  background: linear-gradient(90deg, 
    var(--bg-card) 0%, 
    rgba(255,255,255,0.05) 50%, 
    var(--bg-card) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ── Glow border animation ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,77,0,0.15); }
  50%       { box-shadow: 0 0 40px rgba(255,77,0,0.3); }
}
.glow-border { animation: glowPulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-img img { animation: none; }
  .btn-primary.pulse { animation: none; }
  .stagger-in > * { opacity: 1; transform: none; animation: none; }
  .shimmer { animation: none; }
  .glow-border { animation: none; }
}
