/* ═══════════════════════════════════════
   Hero Section — V2 Enterprise Redesign
   Deep navy canvas + teal accents
═══════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 40px 60px;
  overflow: hidden;
}

/* Subtle gradient overlay on top of starfield canvas */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ── Social Proof Bar ── */

.hero-social-proof {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
  animation: hero-fade-up 0.7s ease-out both;
  animation-delay: 0.1s;
}

.hero-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--steel-light);
  letter-spacing: 0.02em;
}

.hero-proof-badge strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero-logo-placeholder {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0;
  animation: logo-fade 0.5s ease-out forwards;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: opacity 0.3s, border-color 0.3s;
}

.hero-logo-placeholder:hover {
  border-color: rgba(0, 200, 150, 0.15);
  opacity: 0.7 !important;
}

.hero-logo-placeholder:nth-child(1) { animation-delay: 0.6s; }
.hero-logo-placeholder:nth-child(2) { animation-delay: 0.75s; }
.hero-logo-placeholder:nth-child(3) { animation-delay: 0.9s; }
.hero-logo-placeholder:nth-child(4) { animation-delay: 1.05s; }
.hero-logo-placeholder:nth-child(5) { animation-delay: 1.2s; }

/* ── Headline ── */

.hero-content {
  margin-bottom: 40px;
  animation: hero-fade-up 0.8s ease-out both;
  animation-delay: 0.3s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 24px 0;
}

.hero-title-accent {
  color: var(--accent);
  display: inline-block;
}

/* ── "?" Reveal Button + Hidden Subtitle ── */

.hero-reveal-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hero-q-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, 0.3);
  background: rgba(0, 200, 150, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  animation: accent-pulse 2.5s ease-in-out infinite;
}

.hero-q-btn:hover {
  background: rgba(0, 200, 150, 0.15);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 200, 150, 0.2);
  animation: none;
}

.hero-q-icon {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* Subtitle hidden by default, revealed on click */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--steel-light);
  max-width: 640px;
  margin: 0;
}

.hero-subtitle--hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  pointer-events: none;
}

.hero-subtitle--visible {
  opacity: 1;
  max-height: 200px;
  pointer-events: auto;
}

/* Collapse the button after reveal */
.hero-q-btn.revealed {
  opacity: 0;
  width: 0;
  padding: 0;
  border: none;
  pointer-events: none;
  transition: opacity 0.3s, width 0.3s;
  animation: none;
}

/* ── CTAs ── */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 56px;
  animation: hero-fade-up 0.8s ease-out both;
  animation-delay: 0.5s;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  background: var(--accent);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
  animation: accent-pulse 3s ease-in-out infinite;
  animation-delay: 2s;
  position: relative;
  overflow: hidden;
}

.btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn-accent:hover::after {
  left: 150%;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 200, 150, 0.25);
  animation: none;
}

.btn-accent-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
}

.btn-ghost-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--steel-light);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s;
}

.btn-ghost-v2:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 200, 150, 0.05);
  transform: translateY(-2px);
}

.btn-ghost-v2 .btn-arrow {
  transition: transform 0.25s;
  display: inline-block;
  color: var(--accent);
}

.btn-ghost-v2:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost-v2:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* ── Key Metrics ── */

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  background: rgba(5, 5, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 36px;
  width: 100%;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: hero-fade-up 0.8s ease-out both;
  animation-delay: 0.7s;
}

.hero-metric {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 4px 0;
}

.hero-metric-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  animation: metric-count-in 0.6s ease-out both;
}

.hero-metric:nth-child(1) .hero-metric-value { animation-delay: 1s; }
.hero-metric:nth-child(3) .hero-metric-value { animation-delay: 1.15s; }
.hero-metric:nth-child(5) .hero-metric-value { animation-delay: 1.3s; }

.hero-metric-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel-mid);
  letter-spacing: 0.02em;
}

.hero-metric-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.hero-metrics-context {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: hero-fade-in 0.6s ease-out both;
  animation-delay: 1.5s;
}

/* ── Scroll Indicator (original bottom-left horizontal style) ── */

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  animation: hero-fade-in 1s ease-out both;
  animation-delay: 2s;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--steel-dark);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-move 2s ease-in-out infinite;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--steel);
  text-transform: uppercase;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  #hero {
    padding: 88px 20px 48px;
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-inner {
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .hero-social-proof {
    align-items: center;
    margin-bottom: 20px;
  }

  .hero-logos { display: none; }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 15px;
  }

  .hero-reveal-wrap { gap: 10px; }

  .hero-cta {
    justify-content: center;
    margin-bottom: 28px;
    gap: 10px;
  }

  .btn-accent, .btn-ghost-v2 {
    width: 100%;
    justify-content: center;
  }

  .btn-accent {
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 200, 150, 0.2);
  }

  .btn-ghost-v2 {
    padding: 13px 20px;
    font-size: 14px;
  }

  .hero-metrics {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    padding: 16px 12px;
    border-radius: 12px;
  }

  .hero-metric {
    min-width: unset;
    flex: 1;
    gap: 2px;
    padding: 0;
  }

  .hero-metric-value {
    font-size: 22px;
  }

  .hero-metric-label {
    font-size: 10px;
    line-height: 1.3;
  }

  .hero-metric-divider {
    display: block;
    height: 32px;
    width: 1px;
    margin: 0 4px;
  }

  .hero-metrics-context {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 6px;
    font-size: 9px;
  }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  #hero {
    padding: 80px 16px 36px;
  }

  .hero-social-proof { margin-bottom: 16px; }

  .hero-proof-badge { font-size: 12px; }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 36px);
    margin-bottom: 16px;
  }

  .hero-content { margin-bottom: 20px; }

  .hero-cta { margin-bottom: 20px; }

  .hero-logo-placeholder {
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero-metrics { padding: 14px 8px; }
  .hero-metric-value { font-size: 20px; }
  .hero-metric-label { font-size: 9px; }
}
