/* Restore the original comparison heading scale across content modules.
   Keep this stylesheet last; navigation, cards, dialogs and partner labels
   deliberately remain outside these selectors. */
#agents .journey-intro,
#agent-team .section-heading,
#showcase .platform-intro,
#finance-scenarios .foundation-intro,
#platform-principles .foundation-intro,
#architecture .section-heading,
#comparison .section-heading,
#solutions .section-heading,
#customers .section-heading,
#about .section-heading {
  width: 100%;
  max-width: 1152px;
  min-width: 0;
}

#agents .journey-intro h2,
#agent-team .section-heading h2,
#showcase .platform-intro h2,
#finance-scenarios .foundation-intro h2,
#platform-principles .foundation-intro h2,
#architecture .section-heading h2,
#comparison .section-heading h2,
#solutions .section-heading h2,
#customers .section-heading h2,
#about .section-heading h2,
#contact.cta h2 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -1.2px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

#agents .journey-intro h2 em,
#showcase .platform-intro h2 em,
#finance-scenarios .foundation-intro h2 em,
#platform-principles .foundation-intro h2 em {
  color: transparent;
  background: linear-gradient(112deg, #3161fb 6%, #32b8ed 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

/* Preserve legibility on the solid-blue call-to-action panel. */
#contact.cta h2 { color: #fff; }

@media (max-width: 640px) {
  #agents .journey-intro h2,
  #agent-team .section-heading h2,
  #showcase .platform-intro h2,
  #finance-scenarios .foundation-intro h2,
  #platform-principles .foundation-intro h2,
  #architecture .section-heading h2,
  #comparison .section-heading h2,
  #solutions .section-heading h2,
  #customers .section-heading h2,
  #about .section-heading h2,
  #contact.cta h2 {
    font-size: 29px;
  }

  /* Short lines may wrap naturally instead of forcing the team title wide. */
  #agent-team .section-heading h2 .gradient-text > span {
    white-space: normal;
  }

  #showcase .platform-intro h2 > span { max-width: 100%; }
}
