/* ---- HERO BACKGROUND ---- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(230, 237, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 237, 243, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.9), transparent 75%);
}

.hero__line {
  position: absolute;
  width: 1px;
  height: 160%;
  top: -30%;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
  opacity: 0.18;
  transform: rotate(15deg);
  animation: drift 14s linear infinite;
}

.hero__line--1 { left: 15%; animation-duration: 16s; }
.hero__line--2 { left: 55%; background: linear-gradient(to bottom, transparent, var(--accent-violet), transparent); animation-duration: 20s; animation-delay: -4s; }
.hero__line--3 { left: 80%; animation-duration: 12s; animation-delay: -8s; }

@keyframes drift {
  0% { transform: translateY(-10%) rotate(15deg); }
  100% { transform: translateY(10%) rotate(15deg); }
}

/* ---- TYPING CURSOR ---- */
.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- SCROLL HINT ---- */
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollline 1.6s ease-in-out infinite;
}

@keyframes scrollline {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero__line,
  .hero__scroll-line,
  .hero__cursor {
    animation: none;
  }

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