/* Homepage-only layout: hero and closing call to action. */

.home__loading {
  padding-block: var(--space-8);
  color: var(--color-text-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Clip sideways only, so the glow never causes horizontal scrolling but
     can fade out naturally below the hero instead of ending in a hard edge. */
  overflow-x: clip;
  padding-block: var(--space-7) var(--space-6);
}

/* Soft teal glow behind the hero. Decorative only. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -10% auto auto; /* starts at the hero's top, so it never tints the banners */
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero__status {
  margin: var(--space-4) 0 0;
}

.hero__headline {
  max-width: 16ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.25rem);
  line-height: 1.02;
}

.hero__pitch {
  margin-bottom: var(--space-6);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 479px) {
  .hero__actions .button {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: 6rem 5rem;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Closing call to action ---------- */

.cta {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-7);
  background: var(--color-accent-surface);
  border: 1px solid var(--color-accent-surface-border);
  border-radius: 20px;
}

.cta__heading {
  margin-bottom: var(--space-2);
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2rem);
}

.cta__body {
  margin: 0;
  color: var(--color-text-nav);
  max-width: 60ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 479px) {
  .cta {
    padding: var(--space-6) var(--space-5);
  }

  .cta__actions .button {
    flex: 1 1 100%;
  }
}

@media (min-width: 860px) {
  .cta {
    grid-template-columns: 1fr auto;
  }
}
