/* ═══════════════════════════════════════════════════════════════
   HERO — Clean text hero with subtle gradient
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg, 1.5rem);
  overflow: hidden;
  padding: 56px 0 var(--space-lg);
}

/* Subtle ambient glow background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(6, 182, 212, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  z-index: 0;
}

.hero__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md) var(--space-lg) 0;
  max-width: 1400px;
  width: 100%;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-xs, 0.5rem);
  background: linear-gradient(135deg, #F0F2F5 0%, var(--accent-light) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subhead {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 100%;
  margin: 0 auto var(--space-xs, 0.5rem);
  line-height: 1.6;
}

.hero__cta-row {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs, 0.5rem);
}

.hero__bottom {
  text-align: center;
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ─── STATS STRIP ─── */
.hero__stats { min-height: 50px; margin-bottom: 0; }

.stats-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-sm) var(--space-xl);
  background: rgba(15, 19, 24, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--grid-15);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat__label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat__divider {
  width: 1px;
  height: 28px;
  background: var(--grid);
  opacity: 0.3;
}

/* ─── MARKOV CHAIN SECTION ─── */
.markov-wrap {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: 2.4 / 1;
  max-height: 520px;
}

@media (max-width: 1024px) {
  .markov-wrap {
    aspect-ratio: 2.2 / 1;
    max-height: 460px;
  }
}

@media (max-width: 768px) {
  .markov-wrap {
    aspect-ratio: 1.6 / 1;
    max-height: 500px;
  }
}

@media (max-width: 480px) {
  .markov-wrap {
    aspect-ratio: 1.3 / 1;
    max-height: 560px;
  }
}

#markov-svg {
  width: 100%;
  display: block;
}

.markov-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.markov-stat {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.markov-stat__sep {
  color: var(--grid);
  font-size: 0.9rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { min-height: 60vh; }
  .stats-strip { gap: var(--space-md); padding: var(--space-sm) var(--space-md); }
  .stat__number { font-size: 1rem; }
  .stat__divider { height: 20px; }
  .hero__cta-row .btn { padding: 0.65rem 1.5rem; font-size: 0.8rem; }
}
