/* ============================================================
   SPACEMAN TECHNOLOGIES — Hero Section
   ============================================================ */

#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-deep-space);
}

/* ── THREE.JS / HERO CANVAS (ACTIVE IN OPTION C) ─────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── NEBULA BG — hidden in Option C ──────────────────────────── */
.hero-nebula {
  display: none;
}

/* Vignette overlay for text readability */
.hero-nebula-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 50%, transparent 25%, rgba(2, 2, 10, 0.45) 65%, var(--color-deep-space) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── CONTENT ─────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-40);
  max-width: 900px;
  width: 100%;
}

/* ── WORDMARK ────────────────────────────────────────────────── */
.hero-wordmark {
  font-family: var(--font-montserrat);
  font-size: clamp(13px, 1.5vw, 22px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--color-pure-white);
  margin-bottom: var(--sp-40);
  display: block;
  opacity: 0; /* GSAP animates this */
}

.hero-wordmark .char {
  display: inline-block;
  position: relative;
}

/* ── HEADLINE ────────────────────────────────────────────────── */
.hero-headline {
  font-family: var(--font-playfair);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: var(--fw-regular);
  line-height: 1.08;
  color: var(--color-pure-white);
  margin-bottom: var(--sp-24);
  opacity: 0; /* GSAP */
}

.hero-headline em {
  font-style: italic;
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 35%, #a855f7 70%, #ffd166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 18px rgba(0, 240, 255, 0.65))
    drop-shadow(0 0 35px rgba(168, 85, 247, 0.45));
  display: inline-block;
}

/* ── SUBHEADING / TYPEWRITER ─────────────────────────────────── */
.hero-sub {
  font-family: var(--font-source);
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-40);
  min-height: 28px;
  font-weight: 600;
  opacity: 0; /* GSAP */
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-typewriter {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 35%, #a855f7 70%, #ffd166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.6));
  display: inline-block;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.15em;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
}

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

/* ── CTA ─────────────────────────────────────────────────────── */
.hero-cta-group {
  display: flex;
  gap: var(--sp-16);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0; /* GSAP */
}

#hero-cta-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

#hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

/* ── SCROLL INDICATOR ────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-40);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  opacity: 0; /* GSAP */
}

.scroll-indicator span {
  font-family: var(--font-source);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-steel);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-lagoon-teal), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content { padding: 0 var(--sp-24); width: 100%; }
  .hero-wordmark { font-size: 11px; letter-spacing: 0.1em; }
  .hero-headline { font-size: clamp(32px, 8vw, 44px); }
  .hero-cta-group { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; gap: 12px; }
  .hero-cta-group .btn { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content { padding: 0 16px; }
  .hero-headline { font-size: 28px; line-height: 1.25; }
  .hero-typewriter-wrap { font-size: 15px; }
}
