/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(168,85,247,0.18) 0%, rgba(0,245,255,0.1) 40%, transparent 70%);
  animation: aurora-pulse 8s ease-in-out infinite alternate;
}
@keyframes aurora-pulse {
  0%   { opacity: 0.7; transform: scale(1) translateY(0); filter: hue-rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.1) translateY(-20px); filter: hue-rotate(60deg); }
}
#hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 30%; z-index: 3; background: linear-gradient(to bottom, transparent, var(--bg-deep));
}

.hero-content { position: relative; z-index: 5; max-width: 900px; padding: 0 24px; }

.pre-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.5vw, 14px); color: var(--green);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 28px; opacity: 0;
}
.pre-title .blink {
  display: inline-block; width: 8px; height: 1em;
  background: var(--green); margin-left: 4px;
  vertical-align: text-bottom; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800;
  line-height: 0.95; margin-bottom: 24px; opacity: 0;
}
.title-line-1 {
  display: block; font-size: clamp(60px, 12vw, 130px);
  color: var(--text); position: relative; white-space: nowrap;
}
.title-line-2 {
  display: block; font-size: clamp(60px, 12vw, 130px); white-space: nowrap;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0,245,255,0.4));
}

/* GLITCH */
.glitch { position: relative; display: inline-block; cursor: none; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; font: inherit; color: var(--text);
}
.glitch::before {
  color: #ff00ff; clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  animation: glitch-top 4s infinite; text-shadow: -3px 0 #ff00ff;
}
.glitch::after {
  color: #00ffff; clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-bot 4s infinite 0.5s; text-shadow: 3px 0 #00ffff;
}
@keyframes glitch-top {
  0%,90%,100% { transform: translateX(0); opacity: 0; }
  92% { transform: translateX(-4px); opacity: 1; }
  95% { transform: translateX(4px);  opacity: 1; }
  98% { transform: translateX(-2px); opacity: 0.8; }
}
@keyframes glitch-bot {
  0%,88%,100% { transform: translateX(0); opacity: 0; }
  90% { transform: translateX(4px);  opacity: 1; }
  93% { transform: translateX(-4px); opacity: 1; }
  97% { transform: translateX(2px);  opacity: 0.6; }
}

.hero-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px); font-weight: 400;
  color: var(--muted); margin-bottom: 48px; min-height: 1.5em; opacity: 0;
}
.hero-sub .cursor-blink {
  display: inline-block; width: 2px; height: 1.1em; background: var(--cyan);
  margin-left: 2px; vertical-align: text-bottom; animation: blink 0.8s step-end infinite;
}

.cta-wrap { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; opacity: 0; }

.btn-primary {
  position: relative; padding: 18px 44px;
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg-deep); background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none; border-radius: 4px; cursor: none; outline: none; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 30px rgba(0,245,255,0.3), 0 0 60px rgba(168,85,247,0.2);
  white-space: nowrap;
}
.btn-primary:hover { box-shadow: 0 0 50px rgba(0,245,255,0.5), 0 0 100px rgba(168,85,247,0.35); }
.btn-primary::before {
  content: ''; position: absolute; inset: -2px; border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  background-size: 300% 300%; z-index: -1; animation: border-spin 3s linear infinite;
}
@keyframes border-spin {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Ripple */
.ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0); animation: ripple-expand 0.65s linear forwards;
  pointer-events: none;
}
@keyframes ripple-expand { to { transform: scale(4); opacity: 0; } }

.btn-ghost {
  padding: 18px 44px; font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); background: transparent; border: 1px solid rgba(0,245,255,0.35);
  border-radius: 4px; cursor: none; overflow: hidden; position: relative;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover { background: rgba(0,245,255,0.08); border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,245,255,0.15); }

.scroll-hint {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0;
}
.scroll-hint span {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); animation: scroll-bounce 1.5s ease-in-out infinite;
}
.scroll-arrow + .scroll-arrow { margin-top: -12px; opacity: 0.5; animation-delay: 0.2s; }
@keyframes scroll-bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(6px); }
}
