/* ============================================
   Hero Sections
   ============================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-hero-overlay-start), var(--color-hero-overlay-end));
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  background: var(--color-hero-label-bg);
  border: 1px solid var(--color-hero-label-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-forest-400);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease both;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-bold);
  color: var(--color-dark-section-heading);
  line-height: var(--lh-tight);
  max-width: 800px;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease 0.15s both;
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--color-forest-400), var(--color-forest-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-dark-section-text);
  max-width: 600px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease 0.45s both;
}

.hero__trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.8rem;
  background: var(--color-hero-trust-bg);
  border: 1px solid var(--color-hero-trust-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-dark-section-text);
}

.hero__trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-forest-400);
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-dark-section-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease 0.75s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-dark-section-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Page Hero (smaller, for inner pages) ── */
.page-hero {
  background: var(--color-hero-bg);
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--color-hero-label-bg), transparent 70%);
}

.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  background: var(--color-hero-label-bg);
  border: 1px solid var(--color-hero-label-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-forest-400);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-bold);
  color: var(--color-dark-section-heading);
  margin-bottom: var(--space-4);
  position: relative;
}

.page-hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-dark-section-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ── Keyframes ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Dark Mode: Hero bottom-fade into unified base ── */
html.dark .hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #0B0F19);
  z-index: 2;
  pointer-events: none;
}

/* Remove page-hero radial glow in dark mode (no secondary gradients) */
html.dark .page-hero::before {
  display: none;
}

/* Page-hero bottom blend in dark mode */
html.dark .page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0B0F19);
  pointer-events: none;
}
