/* Put the event details where visitors first scan the hero. */
#home .hero-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 14px;
  color: #d7e8fa;
  font-size: max(14px, clamp(.9375rem, 1.4vw, 1.125rem));
  font-weight: 600;
  line-height: 1.45;
}

.hero-event-location::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 12px;
  border-radius: 50%;
  background: #c8f904;
  vertical-align: .18em;
}

@media (max-width: 900px) {
  #home .hero-event-meta {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  #home .hero-event-meta {
    display: grid;
    gap: 2px;
  }

  .hero-event-location::before {
    display: none;
  }
}

/* Keep the orbit readable while decorative particles move independently. */
.product-universe .product-universe-label {
  font-size: max(14px, clamp(.68rem, .95vw, .85rem));
  letter-spacing: .1em;
}

#home:has(.hero-with-products) {
  padding-bottom: clamp(24px, 4vw, 48px);
}

#home .product-universe-header {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
  align-items: center;
  min-height: 44px;
  width: 88%;
  margin: 0 auto;
}

#home .product-universe-header .product-universe-label {
  grid-column: 2;
  margin: 0;
  font-size: max(14px, clamp(.875rem, 1.4vw, 1.125rem));
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
}

#home .product-universe-header .motion-toggle {
  grid-column: 3;
  justify-self: end;
  position: static;
  margin: 0;
  opacity: 1;
}

@media (max-width: 540px) {
  #home .product-universe-header {
    grid-template-columns: 1fr;
    width: 92%;
  }

  #home .product-universe-header .product-universe-label {
    grid-column: 1;
  }

  #home .product-universe-header .motion-toggle {
    grid-column: 1;
    grid-row: 2;
  }
}

.product-universe .product-orbit-core {
  width: clamp(140px, 29%, 182px);
  height: auto;
  aspect-ratio: 1;
  padding: 12px;
}

.product-universe .product-orbit-cube {
  width: 45%;
  height: auto;
}

.product-universe .product-orbit-core strong {
  font-size: max(14px, clamp(.88rem, 1.23vw, 1.08rem));
  line-height: 1.25;
}

.product-universe .product-orbit-core > span {
  font-size: max(14px, clamp(.7rem, .95vw, .86rem));
  line-height: 1.35;
  margin-top: 5px;
}

.ecosystem-orbit-links {
  pointer-events: none;
}

.ecosystem-orbit-group {
  position: absolute;
  width: 35%;
  text-align: center;
}

.ecosystem-orbit-group a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 5px;
  min-height: 44px;
  color: var(--white);
  pointer-events: auto;
  text-shadow: 0 2px 10px #061329, 0 0 8px #061329;
}

.ecosystem-orbit-group strong {
  font-size: max(14px, clamp(.82rem, 1.18vw, 1rem));
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 189, .5);
  text-underline-offset: .32em;
}

.ecosystem-orbit-group span {
  color: #bfcde8;
  font-size: max(14px, clamp(.7rem, .96vw, .83rem));
  line-height: 1.5;
}

.ecosystem-orbit-group a:hover strong,
.ecosystem-orbit-group a:focus-visible strong {
  color: var(--mint);
}

.orbit-runtimes { top: 13%; left: 4%; }
.orbit-build { top: 13%; right: 4%; }
.orbit-ai { bottom: 13%; left: 4%; }
.orbit-delivery { bottom: 13%; right: 4%; }

.product-universe .product-universe-caption {
  font-size: max(14px, .76rem);
}

.product-universe .product-universe-caption strong {
  font-size: .9rem;
}

/* Let the site's ambient background carry through at a lower intensity. */
#tools {
  --ecosystem-accent: #c8f904;
  --ecosystem-line: rgb(215 232 250 / 20%);
  scroll-margin-top: 130px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgb(6 19 41 / 72%) 18% 82%,
    transparent
  );
}
@media (forced-colors: none) {
  @supports (background-clip: text) {
    #tools-heading > span {
      background-image: linear-gradient(90deg, #d7e8fa, #c8f904);
      background-clip: text;
      color: transparent;
    }
  }
}

.tools .ecosystem-map {
  position: relative;
  display: block;
  padding: 0 0 0 23px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ecosystem-map::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 1px;
  width: 1px;
  background: var(--ecosystem-line);
}

.ecosystem-row {
  position: relative;
  padding: 16px 0 18px;
  scroll-margin-top: 115px;
}

.ecosystem-row + .ecosystem-row {
  border-top: 1px solid var(--ecosystem-line);
}

.ecosystem-row::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ecosystem-accent);
  opacity: .65;
}

.ecosystem-map.diagram-live .ecosystem-row::before {
  animation: ecosystem-pulse 5s ease-in-out infinite;
}

.ecosystem-row:nth-child(2)::before { animation-delay: .7s !important; }
.ecosystem-row:nth-child(3)::before { animation-delay: 1.4s !important; }
.ecosystem-row:nth-child(4)::before { animation-delay: 2.1s !important; }

.ecosystem-row h3 {
  margin: 0;
  font-size: max(14px, clamp(1rem, 1.6vw, 1.25rem));
  color: var(--white);
}

.ecosystem-row p {
  margin: 6px 0 9px;
  font-size: max(14px, .82rem);
  line-height: 1.65;
  color: #bfcde8;
}

.ecosystem-tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 0;
  padding: 0;
  color: #d7e8fa;
  font-size: max(14px, .8rem);
  line-height: 1.65;
  font-weight: 600;
}

.ecosystem-tools a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(215 232 250 / 45%);
  text-underline-offset: .24em;
}

.ecosystem-tools a:hover,
.ecosystem-tools a:focus-visible {
  text-decoration-color: var(--ecosystem-accent);
}

.motion-paused .ecosystem-row::before {
  animation-play-state: paused;
}

@keyframes ecosystem-pulse {
  50% { opacity: 1; }
}

@media (max-width: 540px) {
  .product-universe .product-orbit-core {
    width: clamp(128px, 40%, 155px);
  }

  .ecosystem-orbit-group {
    width: 42%;
  }

  .orbit-runtimes, .orbit-build { top: 7%; }
  .orbit-ai, .orbit-delivery { bottom: 7%; }
  .orbit-runtimes, .orbit-ai { left: 1%; }
  .orbit-build, .orbit-delivery { right: 1%; }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-map.diagram-live .ecosystem-row::before {
    animation: none;
  }
}

.ecosystem-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .25rem 1rem;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

.ecosystem-row > summary::-webkit-details-marker {
  display: none;
}

.ecosystem-row > summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.ecosystem-row .disclosure-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--ecosystem-line);
  border-radius: 50%;
  color: var(--ecosystem-accent);
  font: 600 1.2rem/1 system-ui, sans-serif;
}

.ecosystem-row .disclosure-icon::before { content: "+"; }
.ecosystem-row[open] .disclosure-icon::before { content: "−"; }

.ecosystem-row summary:hover h3,
.ecosystem-row[open] summary h3 {
  color: var(--lime);
}

.ecosystem-row .ecosystem-tools {
  gap: .5rem;
  margin-top: .75rem;
}

.ecosystem-tools li {
  padding: .35rem .65rem;
  border: 1px solid var(--ecosystem-line);
  border-radius: 8px;
}
