/* ═══════════════════════════════════════════════════
   BIONOTES — Hero Section v2.0
   3D Canvas | Parallax | Typewriter | Stats
═══════════════════════════════════════════════════ */

/* ── HERO WRAPPER ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* ── THREE.JS CANVAS ── */
.dna-canvas {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1;
  pointer-events: none;
}

/* ── DOM PARTICLES HOST ── */
.hero-particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── RADIAL VIGNETTE ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 65% 50%, rgba(0,255,178,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(123,97,255,0.06) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
/* Bottom fade into page */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--clr-bg));
  z-index: 2;
  pointer-events: none;
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  width: 100%;
}

/* ── BADGE ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--clr-text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 12px var(--clr-primary);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* ── HERO TITLE ── */
.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--clr-text);
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
}
.hero-title .word-inner {
  display: inline-block;
  transform: translateY(100%);
}

/* ── HERO SUBTITLE ── */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-text-dim);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-sub.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

/* ── HERO ACTIONS ── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-actions.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(20px);
}
.hero-stats.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 2rem;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--clr-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(0,255,178,0.4));
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--clr-text-mute);
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
  flex-shrink: 0;
}

/* ── SCROLL HINT ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-mute);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--clr-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-content { padding: 6rem 1.5rem 4rem; }
  .stat { padding: 0 1.25rem; }
}
@media (max-width: 600px) {
  .hero-badge { font-size: 0.62rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 0.75rem; }
  .stat-num { font-size: 1.5rem; }
}
