/* ============================================================
   MHX Analytics — Hero Section Styles
   Canvas flow-field + overlay text
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-background);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    #1a1040 0%,
    #1e3a32 30%,
    #2d6b52 55%,
    rgba(45, 107, 82, 0.4) 72%,
    transparent 85%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  text-align: center;
  padding: 2rem;
}

.hero__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: inline-block;
  background: var(--gradient-liquid);
  color: var(--color-on-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
}

.hero__cta:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 104, 93, 0.25);
}

/* ── Page hero (static gradient — non-home pages) ── */
.page-hero {
  position: relative;
  width: 100%;
  padding: clamp(6rem, 12vw, 10rem) 2rem clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--color-surface-container-low) 0%,
    var(--color-background) 50%,
    var(--color-surface-container) 100%
  );
}

.page-hero__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  color: var(--color-on-surface);
}

/* ── Load fade-in ────────────────────────────────── */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content,
.page-hero__title {
  opacity: 0;
  animation: heroFadeIn 0.8s ease-out 0.15s forwards;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero__content {
    padding: 1.25rem;
  }
  .hero__cta {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }
}
