@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&f[]=satoshi@400,500,700&display=swap");

/*
 * Canonical inner-page typography and rhythm.
 * The About page is the visual source of truth for every page except index.html.
 */
:root {
  --inner-heading-font: "General Sans", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif;
  --inner-body-font: "Satoshi", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif;
  --inner-heading-color: #f4f8ff;
  --inner-card-heading-color: #f3f7ff;
  --inner-copy-color: rgba(188, 205, 229, .82);
  --inner-section-space: 56px;
  --inner-module-space: 56px;
  --inner-grid-row-gap: 28px;
  --inner-grid-column-gap: 30px;
}

/* Banner hierarchy: the same light kicker, gold primary line and white lead
   used on the About page. Both legacy hero-* and shared banner-* names are
   supported so no page has to change its content structure. */
main :where(.page-hero, .account-hero, .stock-hero, .partner-banner, .contact-banner, .blank-hero)
  :where(.hero-copy, .banner-copy) h1 {
  display: grid;
  justify-items: start;
  gap: 2px;
  max-width: none;
  margin: 0;
  color: var(--inner-heading-color);
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", var(--inner-heading-font);
  line-height: 1;
  letter-spacing: 0;
  white-space: normal;
}

main :where(.hero-title-line, .banner-title-line) {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

main :where(.hero-title-kicker, .banner-title-kicker) {
  color: rgba(238, 247, 255, .96);
  font-size: clamp(34px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .14em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .58);
}

main :where(.hero-title-accent, .banner-title-accent) {
  position: relative;
  padding: 3px 0 12px;
  color: #e8bd63;
  font-size: clamp(52px, 4.45vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .025em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .58);
  -webkit-text-fill-color: currentColor;
}

main :where(.hero-title-accent, .banner-title-accent)::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8bd63, rgba(232, 189, 99, 0));
}

main :where(.hero-lead, .banner-lead) {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", var(--inner-body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -.01em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .58);
}

/* Canonical statistic-strip placement, matched to Regulation & Compliance.
   Product-page .stock-stats strips already use the equivalent absolute,
   bottom-of-banner overlay in stock-page.css. */
main > .stats {
  position: relative;
  z-index: 3;
  margin-top: -104px;
  padding-bottom: 36px;
}

main > .stats > .wrap {
  max-width: none;
  padding: 0;
  transform: translateY(-8px);
}

/* When a statistic strip overlaps the banner, balance the banner's vertical
   padding so the copy is centered inside the visible area above the strip. */
main > .page-hero:has(+ .stats) {
  padding-top: 118px;
  padding-bottom: 118px;
}

/* All direct content sections share the About page's 56px vertical rhythm.
   Heroes, statistic strips and closing calls-to-action retain their bespoke
   geometry. */
main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing) {
  padding-top: var(--inner-section-space);
  padding-bottom: var(--inner-section-space);
}

main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
  :where(h1, h2) {
  color: var(--inner-heading-color);
  font-family: var(--inner-heading-font);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}

main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
  h3 {
  color: var(--inner-card-heading-color);
  font-family: var(--inner-heading-font);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
}

main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
  p {
  color: var(--inner-copy-color);
  font-family: var(--inner-body-font);
  font-size: 15.5px;
  line-height: 1.7;
}

main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
  :where(h1, h2) + p {
  margin-top: 18px;
}

main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
  h3 + p {
  margin-top: 12px;
}

main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
  p + p {
  margin-top: 18px;
}

main :where(.head-block, .section-head, .section-heading, .article-head, .faq-heading) {
  margin-bottom: var(--inner-module-space);
}

main :where(
  .value-grid,
  .award-grid,
  .license-grid,
  .legal-docs-grid,
  .news-grid,
  .analysis-grid,
  .learning-grid,
  .advantage-grid,
  .feature-grid,
  .benefit-grid,
  .stock-benefit-grid,
  .partner-benefit-grid,
  .partner-type-grid,
  .support-benefit-grid,
  .copy-benefit-grid,
  .audience-grid,
  .currency-grid,
  .market-grid
) {
  row-gap: var(--inner-grid-row-gap);
  column-gap: var(--inner-grid-column-gap);
}

@media (max-width: 820px) {
  main > .stats {
    margin-top: -72px;
    padding-bottom: 28px;
  }

  main > .stats > .wrap {
    padding: 0;
  }

  main > .page-hero:has(+ .stats) {
    padding-top: 91px;
    padding-bottom: 91px;
  }

  main :where(.hero-title-kicker, .banner-title-kicker) {
    font-size: clamp(31px, 5vw, 38px);
  }

  main :where(.hero-title-accent, .banner-title-accent) {
    font-size: clamp(44px, 7vw, 56px);
  }

  main :where(.hero-lead, .banner-lead) {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  :root {
    --inner-section-space: 58px;
    --inner-module-space: 30px;
    --inner-grid-row-gap: 16px;
    --inner-grid-column-gap: 16px;
  }

  main :where(.hero-title-kicker, .banner-title-kicker) {
    font-size: 26px;
    letter-spacing: .08em;
  }

  main > .page-hero:has(+ .stats) {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  main :where(.hero-title-accent, .banner-title-accent) {
    padding-bottom: 10px;
    font-size: 38px;
    letter-spacing: .01em;
  }

  main :where(.hero-title-accent, .banner-title-accent)::after {
    width: 64px;
    height: 2px;
  }

  main :where(.hero-lead, .banner-lead) {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.75;
  }

  main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
    :where(h1, h2) {
    font-size: 28px;
  }

  main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
    h3 {
    font-size: 22px;
  }

  main > section:not(.page-hero):not(.account-hero):not(.stock-hero):not(.partner-banner):not(.contact-banner):not(.blank-hero):not(.stats):not(.cta):not(.closing)
    p {
    font-size: 15.5px;
    line-height: 1.75;
  }
}
