/* Home page */

.hm-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  background: #080f0e;
}

.hm-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 120%, oklch(0.28 0.09 168) 0%, #080f0e 65%);
}

.mh-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-slide {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1.25rem;
}

.hero-h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,0.52);
  line-height: 1.75;
  margin: 0 0 2.5rem;
  max-width: 500px;
  width: 100%;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}

.hm-btn--light {
  background: #047c68;
  color: #fff;
  box-shadow: 0 10px 28px rgba(4, 124, 104, 0.28);
}

.hm-btn--light:hover { opacity: 0.85; }

.hm-btn--hero-outline {
  border: 1.5px solid rgba(72, 211, 181, 0.45);
  color: #d8fff5;
  background: transparent;
}

.hm-btn--hero-outline:hover {
  border-color: rgba(72, 211, 181, 0.75);
  background: rgba(4, 124, 104, 0.22);
}

.hm-btn--dark {
  background: #047c68;
  color: #fff;
  box-shadow: 0 10px 22px rgba(4, 124, 104, 0.18);
}

.hm-btn--dark:hover { opacity: 0.84; }

.hm-btn--outline {
  border-color: #047c68;
  color: #047c68;
  background: transparent;
}

.hm-btn--outline:hover {
  background: #047c68;
  color: #fff;
}

.hm-value-panel .hm-btn {
  align-self: flex-start;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.carousel-arrow:hover { background: rgba(255,255,255,0.20); }

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.18s ease, background 0.18s ease;
}

.carousel-dot.is-active {
  width: 24px;
  background: #fff;
}

.hm-stats {
  background: #f8faf9;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.75rem 0;
}

.hm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.hm-stat-value {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  color: #09090b;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hm-stat-label {
  font-size: 10px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hm-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.hm-section {
  padding: 5rem 0;
}

.hm-section--muted {
  background: var(--muted);
}

.hm-section--plain {
  background: var(--background);
}

.hm-info-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.hm-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.hm-step:last-child {
  border-bottom: 1px solid var(--border);
}

.hm-step-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: #047c68;
  line-height: 1;
  letter-spacing: 0;
}

.hm-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-top: 1px solid #e5e7eb;
  background: #f8faf9;
}

.hm-value-panel {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbfcfb;
}

.hm-value-panel:first-child {
  border-right: 1px solid #e5e7eb;
}

.hm-value-panel--muted {
  background: #f3f6f4;
}

.hm-value-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: 0;
}

@media (max-width: 860px) {
  .hm-hero {
    height: auto;
    min-height: calc(100vh - 64px);
  }

  .hero-slide {
    min-height: calc(100vh - 64px);
    padding: 4.5rem 1.25rem 5.5rem;
  }

  .hero-ctas {
    width: 100%;
    max-width: calc(100vw - 2.5rem);
    align-items: center;
  }

  .hero-ctas .hm-btn {
    width: 100%;
    max-width: 320px;
  }

  .carousel-arrow {
    display: none;
  }

  .hm-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .hm-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .hm-section {
    padding: 3.5rem 0;
  }

  .hm-step {
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .hm-value-grid {
    grid-template-columns: 1fr;
  }

  .hm-value-panel {
    padding: 3rem 1.5rem;
  }

  .hm-value-panel:first-child {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (max-width: 520px) {
  .hero-h1 {
    font-size: clamp(30px, 9vw, 34px);
    max-width: calc(100vw - 3rem);
  }

  .hero-sub {
    max-width: calc(100vw - 3rem);
  }

  .hero-ctas .hm-btn {
    max-width: 280px;
  }

  .hm-stats-grid {
    grid-template-columns: 1fr;
  }

  .hm-step {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #heroCarousel { scroll-behavior: auto; }
}
