/* Keep the capability map centered on the Flower of Life across breakpoints. */
.hero-v3 .constellation {
  container-type: size;
  align-self: center;
}

.hero-v3 .flower-layer {
  inset: 0;
  display: block;
  overflow: visible;
}

.hero-v3 .flower-art {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(116cqh, 830px);
  max-width: none;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .hero-v3 .flower-art {
    width: min(105cqh, 830px);
  }
}

@media (max-width: 820px) {
  .hero-v3 .flower-art {
    width: min(108cqh, 830px);
  }
}

.hero-v3 .orb-a {
  left: 50%;
  top: calc(50% - 32cqh);
}

.hero-v3 .orb-b {
  left: calc(50% + 27.7cqh);
  top: calc(50% - 16cqh);
}

.hero-v3 .orb-c {
  left: calc(50% + 27.7cqh);
  top: calc(50% + 16cqh);
}

.hero-v3 .orb-d {
  left: 50%;
  top: calc(50% + 32cqh);
}

.hero-v3 .orb-e {
  left: calc(50% - 27.7cqh);
  top: calc(50% + 16cqh);
}

.hero-v3 .orb-f {
  left: calc(50% - 27.7cqh);
  top: calc(50% - 16cqh);
}

/* Let the homepage's warm ambient light travel with its full content. */
.main-home {
  background-color: #080809;
  background-image:
    radial-gradient(ellipse 72% 560px at 82% 26%, rgba(185, 122, 43, 0.19), transparent 78%),
    radial-gradient(ellipse 68% 520px at 12% 65%, rgba(143, 83, 28, 0.17), transparent 80%),
    radial-gradient(ellipse 72% 520px at 88% 94%, rgba(185, 122, 43, 0.14), transparent 78%),
    linear-gradient(#080809, #080809);
  background-attachment: scroll;
}

.main-home .feature-showcase {
  background: linear-gradient(180deg, rgba(9, 9, 10, 0.88), rgba(8, 8, 9, 0.9));
}

/* Match the reference's compact desktop rhythm while keeping the existing
   two-column hero and the six capability nodes on the Flower of Life. */
@media (min-width: 1161px) {
  .hero-v3 {
    min-height: clamp(480px, 37.5vw, 540px);
  }

  /* The base desktop padding is designed for a 1370px content canvas. On
     ultrawide screens its viewport-based offset can exceed the 40% grid track,
     forcing the headline into a sliver and over the orbit. Keep the copy
     inside its own track at every desktop width. */
  .hero-v3 .hero-copy {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 24px clamp(24px, 2.4vw, 44px) 28px clamp(24px, 2.4vw, 44px);
  }

  .hero-v3 .constellation {
    height: clamp(480px, 37.5vw, 540px);
  }

  .hero-v3 .hero-copy {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .hero-v3 h1 {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: clamp(58px, 5.4vw, 78px);
  }

  .hero-v3 h2 {
    margin: 10px 0;
    font-size: clamp(22px, 2vw, 30px);
  }

  .hero-v3 p {
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .hero-v3 .hero-actions {
    margin-top: 10px;
  }

  .hero-pillars {
    margin-top: 18px;
    gap: 10px;
  }

  .feature-showcase {
    padding-top: 14px;
    padding-bottom: 34px;
  }

  .feature-showcase-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    max-width: none;
    margin-bottom: 12px;
  }

  .feature-showcase-head h2 {
    margin: 0;
    font-size: 23px;
  }

  .feature-showcase-head p {
    margin: 0;
  }

  .showcase-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1161px) and (max-width: 1370px) {
  .hero-v3 .hero-copy {
    padding-left: 30px;
  }
}

/* Give the homepage's lower roadmap a deliberate, full-width rhythm. */
.home-roadmap {
  width: min(100% - 48px, 1240px);
  margin: 76px auto 56px;
  padding: 36px clamp(18px, 3vw, 44px) 42px;
}

.home-roadmap .section-intro {
  max-width: 780px;
  margin: 0 auto 20px;
}

.home-milestones {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-milestones .milestone:nth-child(5) {
  grid-column: 1 / -1;
  width: calc(50% - 7px);
  justify-self: center;
}

.home-roadmap > .btn {
  margin-top: 24px;
}

@media (max-width: 820px) {
  .home-roadmap {
    width: min(100% - 32px, 680px);
    margin: 56px auto 40px;
    padding: 28px 0 36px;
  }

  .home-milestones {
    grid-template-columns: 1fr;
  }

  .home-milestones .milestone:nth-child(5) {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 550px) {
  .home-roadmap {
    width: calc(100% - 26px);
    margin: 42px auto 28px;
    padding: 22px 0 30px;
  }

  .home-roadmap .section-intro {
    margin-bottom: 14px;
  }
}
