/* ===== ZapIA Motion Pack (GSAP + Lenis + micro-interações) ===== */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Spotlight que segue o cursor (desktop) */
#cursor-spot {
  position: fixed;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1400;
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(18, 161, 80, .06), transparent 62%);
}

/* Grain sutil por cima de tudo */
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Tilt 3D */
[data-tilt] { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  #cursor-spot, #grain { display: none; }
}
@media (max-width: 880px) {
  #cursor-spot { display: none; }
}
