/* ============================================================
   AICyclone — Shared Animation Layer  (anim.css)
   Requires: anim.js (cursor, progress, nav glass)
   Scroll reveals handled by main.js (.reveal → .visible)
   ============================================================ */

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #484847; }
::-webkit-scrollbar-thumb:hover { background: #8ff5ff; }

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9990; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ── Scroll progress bar ── */
#anim-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, #8ff5ff, #00deec);
  z-index: 9999; width: 0%;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(143,245,255,0.6);
}

/* ── Custom cursor ── */
#anim-cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: #8ff5ff; border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: opacity 0.3s;
}
#anim-cursor-ring {
  position: fixed; width: 30px; height: 30px;
  border: 1px solid rgba(143,245,255,0.45); border-radius: 50%;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1),
              height 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s;
}
#anim-cursor-ring.hover { width: 52px; height: 52px; border-color: #8ff5ff; }
@media (pointer: coarse) {
  #anim-cursor-dot, #anim-cursor-ring { display: none !important; }
}

/* ── Nav glass on scroll ── */
[data-navbar] {
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
[data-navbar].anim-scrolled {
  background-color: rgba(14,14,14,0.82) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: rgba(72,72,71,0.4) !important;
}

/* ── Scroll reveals (CSS — JS adds .visible via main.js IntersectionObserver) ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-36px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(36px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.38s; }
.reveal-d5 { transition-delay: 0.48s; }

/* ── Influencer hero entrance ── */
@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes anim-fade-right {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-tags  { animation: anim-fade-right 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero-name  { animation: anim-fade-up   1s   cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.hero-sub   { animation: anim-fade-up   0.8s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.hero-stats { animation: anim-fade-up   0.8s cubic-bezier(0.16,1,0.3,1) 0.7s  both; }

/* ── Hero scan line ── */
.hero-scan-wrap { position: relative; overflow: hidden; }
.hero-scan-wrap::after {
  content: '';
  position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(143,245,255,0.6), transparent);
  animation: anim-scan 8s linear infinite;
  z-index: 3; pointer-events: none;
}
@keyframes anim-scan {
  0%   { top: -2px; opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* ── Bento content pillar cards ── */
.pillar-card {
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.pillar-card:hover {
  border-color: rgba(143,245,255,0.45) !important;
  transform: translate(-3px,-3px);
  box-shadow: 3px 3px 0 #8ff5ff;
}

/* ── Stat item hover ── */
.stat-item {
  transition: border-color 0.3s, background-color 0.3s;
}
.stat-item:hover { border-color: rgba(143,245,255,0.3); }

/* ── CTA button shine ── */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-shine:hover::after { left: 150%; }

/* ── Partner CTA glow ── */
@keyframes anim-glow-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(143,245,255,0.15); }
  50%      { box-shadow: 0 0 60px 20px rgba(143,245,255,0.05); }
}
.cta-glow-pulse { animation: anim-glow-pulse 4s ease-in-out infinite; }

/* ── Footer link underline ── */
.foot-link { position: relative; }
.foot-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: #8ff5ff;
  transition: width 0.3s ease;
}
.foot-link:hover::after { width: 100%; }

/* ── Status pulse dot ── */
@keyframes anim-status-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(143,245,255,0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(143,245,255,0); }
}
.status-dot-anim {
  animation: anim-status-pulse 2s ease-in-out infinite;
}
