.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-glow,
.orb,
.line {
  position: absolute;
  display: block;
}

.grid-glow {
  inset: 12% 6% 8%;
  border: 1px solid rgba(101, 211, 65, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(101, 211, 65, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  transform: perspective(900px) rotateX(58deg) translateY(-12%);
  opacity: 0.8;
}

.orb {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(101, 211, 65, 0.18), transparent 68%);
  filter: blur(2px);
  animation: float 10s ease-in-out infinite;
}

.orb-a {
  top: 18%;
  right: 8%;
}

.orb-b {
  bottom: 8%;
  left: 6%;
  animation-delay: -4s;
}

.line {
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.35;
}

.line-a {
  top: 28%;
  left: 12%;
  transform: rotate(-18deg);
}

.line-b {
  right: 10%;
  bottom: 24%;
  transform: rotate(24deg);
}

.reveal {
  opacity: 0;
  transform: translate3d(var(--mouse-x, 0px), calc(28px + var(--parallax-y, 0px) + var(--mouse-y, 0px) + var(--hover-y, 0px)), 0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(var(--mouse-x, 0px), calc(var(--parallax-y, 0px) + var(--mouse-y, 0px) + var(--hover-y, 0px)), 0);
}

[data-parallax]:not(.reveal) {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 180ms;
}

.delay-3 {
  transition-delay: 260ms;
}

.delay-4 {
  transition-delay: 340ms;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -22px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
