/* ── Hero section ────────────────────────────── */

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

/* WebGL / canvas background */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video background fallback */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay — provides text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 80% 60% at 30% 50%,
      rgba(8, 8, 13, 0.9) 0%,
      rgba(8, 8, 13, 0.6) 50%,
      rgba(8, 8, 13, 0.3) 100%
    );
}

/* Content sits above everything */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ── Hero text side ─────────────────────────── */

.hero-headline {
  margin-bottom: var(--space-lg);
}

.hero-headline .accent {
  color: var(--decoded-orange);
}

.hero-tagline {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--decoded-orange);
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--dark-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 540px;
  margin-bottom: var(--space-2xl);
}

/* ── Hero stats bar ─────────────────────────── */

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--decoded-orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--dark-text-muted);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .hero-stats {
    gap: var(--space-lg);
  }
  .hero-stat-value {
    font-size: var(--text-2xl);
  }
}

/* ── Hero form side (glass card) ────────────── */

.hero-form-card {
  background: var(--dark-glass);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.hero-form-card h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.hero-form-card p {
  font-size: var(--text-sm);
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
  .hero-form-card {
    max-width: 480px;
  }
}

/* ── Scroll indicator ───────────────────────── */

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--dark-text-muted);
  font-size: var(--text-xs);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
