/* ============================================================
   ANIMATIONS.CSS — Arioun AI v2
   ============================================================ */

/* ── Fade Up ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}
.animate-fade-up {
  animation: fadeUp 0.8s var(--ease-out) forwards;
  opacity: 0;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.30s; }
.d4 { animation-delay: 0.44s; }
.d5 { animation-delay: 0.58s; }
.d6 { animation-delay: 0.70s; }

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity  0.65s var(--ease-out),
    transform 0.65s var(--ease-out),
    filter   0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger for grid children */
.bento-grid .reveal:nth-child(1),
.grid-3     .reveal:nth-child(1),
.grid-auto  .reveal:nth-child(1) { transition-delay: 0s;    }

.bento-grid .reveal:nth-child(2),
.grid-3     .reveal:nth-child(2),
.grid-auto  .reveal:nth-child(2) { transition-delay: 0.07s; }

.bento-grid .reveal:nth-child(3),
.grid-3     .reveal:nth-child(3),
.grid-auto  .reveal:nth-child(3) { transition-delay: 0.14s; }

.bento-grid .reveal:nth-child(4),
.grid-3     .reveal:nth-child(4),
.grid-auto  .reveal:nth-child(4) { transition-delay: 0.21s; }

.bento-grid .reveal:nth-child(5),
.grid-3     .reveal:nth-child(5),
.grid-auto  .reveal:nth-child(5) { transition-delay: 0.28s; }

.bento-grid .reveal:nth-child(6),
.grid-3     .reveal:nth-child(6) { transition-delay: 0.35s; }

/* ── Aurora Blobs ─────────────────────────────────────────── */
@keyframes aurora-drift {
  0%   { transform: translate(0, 0)    scale(1.0); }
  33%  { transform: translate(6%, 4%)  scale(1.08); }
  66%  { transform: translate(-4%, 6%) scale(0.95); }
  100% { transform: translate(0, 0)    scale(1.0); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0)     scale(1.0); }
  33%  { transform: translate(-8%, -3%) scale(1.06); }
  66%  { transform: translate(5%, -6%)  scale(0.92); }
  100% { transform: translate(0, 0)     scale(1.0); }
}
.aurora-1 { animation: aurora-drift   18s ease-in-out infinite; }
.aurora-2 { animation: aurora-drift-2 22s ease-in-out infinite; }
.aurora-3 { animation: aurora-drift   26s ease-in-out infinite reverse; }

/* ── Eyebrow dot pulse ────────────────────────────────────── */
@keyframes eyebrow-ring {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
.eyebrow-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-vivid);
  flex-shrink: 0;
}
.eyebrow-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-vivid);
  animation: eyebrow-ring 1.8s var(--ease-inout) infinite;
}

/* ── Scroll hint bounce ───────────────────────────────────── */
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(7px); opacity: 1; }
}
.scroll-hint { animation: scroll-hint 2s ease-in-out infinite; }

/* ── Number counter entrance ─────────────────────────────── */
@keyframes count-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-number { animation: count-up 0.6s var(--ease-out) forwards; }

/* ── Shimmer / skeleton ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-3) 25%,
    var(--bg-4) 50%,
    var(--bg-3) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-md);
}

/* ── Card glow sweep ──────────────────────────────────────── */
@keyframes card-sweep {
  from { transform: translateX(-100%) skewX(-15deg); }
  to   { transform: translateX(260%)  skewX(-15deg); }
}

/* ── Marquee ──────────────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 28s linear infinite; }

/* ── Gradient border spin ─────────────────────────────────── */
@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* ── Float (for decorative elements) ─────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Prefers-reduced-motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .animate-fade-up {
    opacity: 1;
    animation: none;
  }
  .marquee-track { animation: none; }
}
