/* Shared visual direction, limited to the homepage product area and SMS page. */
.connection-home .product-stories,
.connection-product {
  --connection-navy: #050b1c;
  --connection-blue: #2457eb;
  --connection-paper: #f5f7fb;
  --connection-line: #dce4f1;
  --connection-muted: #61718a;
}

/* Keep the existing homepage hero intact; the product index bridges its edge. */
.connection-home .product-index {
  margin: 0; padding: 0 0 40px; color: #f2f6ff; background: #030715;
}
.connection-home .index-band { border-block: 1px solid #ffffff14; }
.connection-home .index-band a { padding-block: 24px; gap: 14px; }
.connection-home .index-band a + a { border-left: 1px solid #ffffff12; }
.connection-home .index-band a:hover { background: #ffffff08; }
.connection-home .index-band span { color: #7b9cec; font-size: 11px; }
.connection-home .index-band b { font-size: 14px; font-weight: 600; }
.connection-home .product-stories {
  position: relative; margin-top: -24px; padding: 64px 0 64px;
  border-radius: 24px 24px 0 0; counter-reset: connection-product;
  background: radial-gradient(ellipse 75% 360px at 10% 0, #edf2ff 0, transparent 100%), #f7f9fc;
  color: #111d34;
}
.connection-home .product-stories .section-head {
  grid-template-columns: 1.15fr 1fr; align-items: end; gap: 64px; margin-bottom: 26px;
  padding-bottom: 34px; border-bottom: 1px solid #dfe6f0;
}
.connection-home .product-stories h2,
.connection-product h1,
.connection-product h2 {
  font-family: "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700; letter-spacing: -.035em;
}
.connection-home .product-stories .section-head h2 { font-size: clamp(30px, 2.65vw, 38px); line-height: 1.36; }
.connection-home .product-stories p { color: #5d6c82; }
.connection-home .product-stories .section-head > p { font-size: 14px; line-height: 1.95; max-width: 390px; padding-bottom: 4px; }
.connection-home .product-stories .eyebrow { color: #4770b9; font-size: 11px; letter-spacing: 1px; }
.connection-home .product-story { grid-template-columns: 1fr 1fr; gap: 64px; padding: 44px 0; counter-increment: connection-product; }
.connection-home .product-story + .product-story { border-color: #e0e7f1; }
.connection-home .story-copy { padding-inline: 18px; }
.connection-home .story-copy > .product-entry-link:first-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.connection-home .story-copy > .product-entry-link:first-child::after {
  content: counter(connection-product, decimal-leading-zero) " / 04";
  color: #62728c; font: 11px "SFMono-Regular", Consolas, monospace; letter-spacing: 1px;
}
.connection-home .story-copy .eyebrow { margin: 0; gap: 10px; }
.connection-home .story-copy .eyebrow::before { display: none; }
.connection-home .story-copy h2 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.4; max-width: 12em; margin-bottom: 21px; }
.connection-home .story-copy p { font-size: 15px; line-height: 1.95; max-width: 440px; }
.connection-home .story-copy .story-audience { font-size: 12px; line-height: 1.85; color: #657289; margin-top: 18px; margin-bottom: 24px; }
.connection-home .story-copy .eyebrow .product-business-icon { width: 30px; height: 30px; }
.connection-home .story-copy .button.secondary {
  min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid #b7c9e8;
  background: transparent; color: #285bc8; border-radius: 0; font-size: 13px; font-weight: 600;
}
.connection-home .story-copy .button.secondary:hover { background: transparent; border-color: #2457eb; color: #1741a0; }
.connection-visual img {
  background: radial-gradient(ellipse at 80% 0, #24477b 0, #10213d 45%, #081426 100%);
  border: 1px solid #182d4d; box-shadow: 0 12px 28px #10234312, inset 0 1px 0 #ffffff1a;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.connection-home .product-art-link { border-radius: 18px; }
.connection-home .connection-visual img { border-radius: 18px; }
.connection-home .product-art-link:hover img { border-color: #506c9a; box-shadow: 0 16px 36px #10234320; }
.connection-visual figcaption { color: #66738b; font-size: 11px; letter-spacing: .3px; }

/* A compact dark page header, with readable cold-white content below. */
.connection-product { --paper: #f5f7fb; --ink: #111d34; --muted: #61718a; --line: #dce4f1; background: #f5f7fb; }
.connection-product .site-header { background: #050b1c; color: #edf3ff; border-color: #ffffff12; }
.connection-product .site-header .wordmark { filter: brightness(0) invert(1); }
.connection-product .nav-links > a,
.connection-product .product-menu > summary,
.connection-product .language-switch a { color: #e2eafb; }
.connection-product .nav-links > a:hover { color: #9cbdff; }
.connection-product .language-switch a:hover,
.connection-product .language-switch a[aria-current=true] { background: #ffffff12; color: #fff; }
.connection-product .product-menu > summary .site-ui-icon { filter: brightness(0) invert(1); }
.connection-product .product-menu-links { background: #111c34; border-color: #ffffff24; color: #edf3ff; }
.connection-product .product-menu-links a:hover { background: #ffffff08; color: #b9d0ff; }
.connection-product .menu-toggle { color: #fff; border-color: #ffffff40; }
.connection-product .button { min-height: 48px; padding-inline: 24px; border-radius: 8px; }
.connection-product .button:not(.secondary) { background: #2457eb; border-color: #2457eb; }
.connection-product .button:not(.secondary):hover { background: #396af7; border-color: #396af7; }
.connection-product .product-hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 26px 0 48px;
  background: radial-gradient(ellipse 65% 85% at 85% 45%, #173563 0, #0c1b34 43%, #050b1c 100%);
  color: #f5f8ff;
}
.connection-product .product-hero::before {
  content: ""; position: absolute; z-index: -1; width: 800px; height: 340px;
  right: -260px; bottom: -245px; transform: rotate(-23deg);
  border: 1px solid #648ff74d; border-radius: 50%;
  box-shadow: 0 0 0 28px #3169df0d, 0 0 0 76px #3169df09;
  pointer-events: none;
}
.connection-product .product-hero::after {
  content: ""; position: absolute; left: 50%; top: 95px; bottom: 58px; width: 1px;
  background: linear-gradient(transparent, #91b7ff20, transparent); pointer-events: none;
}
.connection-product .breadcrumb { color: #8999b5; margin-bottom: 32px; font-size: 11px; }
.connection-product .breadcrumb a:hover { color: #fff; }
.connection-product .product-hero .hero-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
.connection-product .product-hero h1 { font-size: clamp(38px, 3.5vw, 50px); line-height: 1.4; max-width: 560px; }
.connection-product .product-hero .eyebrow { display: inline-flex; color: #acc9f5; font-size: 11px; letter-spacing: 1.4px; gap: 9px; padding: 7px 12px; border: 1px solid #82a9e633; border-radius: 6px; background: #91b9ff09; }
.connection-product .product-hero .eyebrow::before { display: none; }
.connection-product .product-hero .eyebrow .product-business-icon { display: none; }
.connection-product .product-hero .hero-copy > p { color: #b2c0d8; font-size: 15px; line-height: 1.95; max-width: 455px; }
.connection-product .product-hero .hero-note { color: #8f9fba; font-size: 12px !important; padding-top: 18px; border-top: 1px solid #ffffff12; max-width: 455px; }
.connection-product .product-hero .button.secondary { background: #ffffff06; border-color: #6c81a6; color: #e9f0ff; }
.connection-product .product-hero .button.secondary:hover { background: #ffffff12; border-color: #b6c9ed; }
.connection-product .product-hero .connection-visual img { background: transparent; border: 0; box-shadow: none; }
.connection-product .product-hero .connection-visual figcaption { color: #90a5c8; }
.connection-product .section-jump { padding-block: 20px; gap: 10px 22px; border-top: 0; }
.connection-product .section-jump a { color: #576b8e; padding: 8px 12px; border-radius: 6px; }
.connection-product .section-jump a:hover { color: #2457eb; background: #e7eefc; }
.connection-product:not(:has(main section:target)) .section-jump a[href="#overview"],
.connection-product:has(#overview:target) .section-jump a[href="#overview"],
.connection-product:has(#features:target) .section-jump a[href="#features"],
.connection-product:has(#scenarios:target) .section-jump a[href="#scenarios"],
.connection-product:has(#integration:target) .section-jump a[href="#integration"],
.connection-product:has(#faq:target) .section-jump a[href="#faq"] { background: #e6edfb; color: #2457eb; font-weight: 600; }
.connection-product .section { padding: 80px 0; }
.connection-product .section-head { gap: 72px; margin-bottom: 40px; }
.connection-product .intro-grid { gap: 80px; }
.connection-product .eyebrow { color: #3a68b7; font-size: 12px; }
.connection-product .product-definition { font-size: 19px; line-height: 1.95; color: #30435f; }
.connection-product .scope-note { background: #eaf0fc; border-radius: 0 8px 8px 0; padding: 16px 20px; }
.connection-product .product-introduction { padding-bottom: 32px; }
.connection-product .feature-story { gap: 48px; padding: 40px 0 80px; }
.connection-product .feature-story > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: connection-feature; }
.connection-product .feature-story > div > .eyebrow { grid-column: 1 / -1; margin-bottom: 6px; }
.connection-product .feature-explanation,
.connection-product .feature-explanation:first-of-type { padding: 23px 20px; border: 1px solid #e0e7f1; background: #fff; border-radius: 10px; counter-increment: connection-feature; }
.connection-product .feature-explanation::before { content: counter(connection-feature, decimal-leading-zero); display: block; color: #7190be; font: 11px "SFMono-Regular", Consolas, monospace; margin-bottom: 18px; }
.connection-product .feature-explanation h3 { font-size: 16px; line-height: 1.65; color: #172b4c; }
.connection-product .feature-explanation p { font-size: 14px; line-height: 1.95; color: #63728a; }
.connection-product .light-section { background: #edf2fa; }
.connection-product .scenario-row { border-color: #d5e0f1; padding-block: 30px; }
.connection-product .scenario-number { color: #2457eb; }
.connection-product .scenario-row h3 { color: #172b4c; font-size: 21px; }
.connection-product .journey { gap: 18px; }
.connection-product .journey-step { background: #fff; padding: 26px 22px; border: 1px solid #dce4f1; border-radius: 12px; }
.connection-product .journey-node { background: #eaf0ff; color: #2457eb; border: 1px solid #dae5fb; border-radius: 8px; width: 32px; height: 32px; margin-bottom: 20px; font-size: 11px; }
.connection-product .journey-step h3 { font-size: 17px; }
.connection-product .journey-step p { font-size: 14px; margin-bottom: 0; }
.connection-product .integration-notes { gap: 60px; border-color: #d5e0f1; }
.connection-product .faq details { border-color: #dce4f1; }
.connection-product .faq summary { color: #172b4c; }
.connection-product .compare-links { gap: 20px; }
.connection-product .compare-links a { border: 1px solid #dce4f1; border-radius: 12px; padding: 26px; background: #fff; }
.connection-product .compare-links a:hover { border-color: #a6bde8; }
.connection-product .compare-links h3 { color: #172b4c; }
.connection-product .compare-links p { margin-bottom: 0; }
.connection-product .cta-section { padding: 64px 0; background: #08132b; border: 0; color: #f5f8ff; }
.connection-product .cta-section p { color: #a7b8d5; }
.connection-product .site-footer { background: #f5f7fb; }
.connection-product a:focus-visible,
.connection-home .product-index a:focus-visible { outline-color: #8eafff; }

@media (max-width: 1100px) {
  .connection-home .product-story,
  .connection-product .product-hero .hero-grid,
  .connection-product .feature-story { gap: 40px; }
  .connection-product .journey-step { padding: 23px 18px; }
}
@media (max-width: 900px) {
  .connection-home .product-stories .section-head { gap: 36px; }
  .connection-home .product-story { gap: 36px; padding-block: 48px; }
  .connection-product .nav-links > a,
  .connection-product .product-menu > summary { border-color: #ffffff20; }
  .connection-product .product-menu-links a { border-color: #ffffff20; }
  .connection-product .product-hero .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .connection-product .product-hero h1 { font-size: 38px; }
  .connection-product .product-hero .hero-copy > p { font-size: 14px; }
  .connection-product .product-hero .button { font-size: 12px; padding-inline: 16px; }
  .connection-product .intro-grid { gap: 38px; }
  .connection-product .section { padding-block: 64px; }
  .connection-product .feature-story { padding-bottom: 64px; }
  .connection-product .journey { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .connection-home .product-index { padding-bottom: 28px; }
  .connection-home .index-band a { justify-content: center; padding: 20px 5px; }
  .connection-home .index-band b { font-size: 11px; }
  .connection-home .index-band a:nth-child(-n+2) { border-bottom: 1px solid #ffffff18; }
  .connection-home .index-band a:nth-child(3) { border-left: 0; }
  .connection-home .product-stories { border-radius: 20px 20px 0 0; margin-top: -16px; padding: 54px 0 42px; }
  .connection-home .product-stories .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 10px; }
  .connection-home .product-stories .section-head h2 { font-size: 30px; }
  .connection-home .product-stories .section-head > p { font-size: 14px; }
  .connection-home .product-story { grid-template-columns: 1fr; padding-block: 34px; gap: 25px; }
  .connection-home .story-copy { padding: 0; }
  .connection-home .story-copy h2 { font-size: 27px; }
  .connection-home .story-copy p { font-size: 14px; }
  .connection-home .story-copy .story-audience { font-size: 12px; margin-bottom: 22px; }
  .connection-home .product-story.reverse .story-copy,
  .connection-home .product-story.reverse .product-art-link { order: 0; }
  .connection-product .product-hero { padding: 24px 0 38px; }
  .connection-product .product-hero::after { display: none; }
  .connection-product .breadcrumb { margin-bottom: 25px; }
  .connection-product .product-hero .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .connection-product .product-hero h1 { font-size: 35px; line-height: 1.4; }
  .connection-product .product-hero .hero-copy > p { font-size: 14px; }
  .connection-product .product-hero .hero-note { font-size: 11px !important; }
  .connection-product .product-hero .connection-visual { width: 100%; max-width: 420px; }
  .connection-product .product-hero .connection-visual img { max-height: 280px; }
  .connection-product .section-jump { padding-block: 14px; gap: 4px 6px; font-size: 12px; }
  .connection-product .section-jump a { padding-inline: 7px; min-height: 40px; }
  .connection-product .section { padding-block: 52px; }
  .connection-product .intro-grid { gap: 22px; }
  .connection-product .product-introduction { padding-bottom: 24px; }
  .connection-product .product-definition { font-size: 16px; }
  .connection-product .feature-story { padding: 20px 0 50px; gap: 28px; }
  .connection-product .feature-story > div { grid-template-columns: 1fr; gap: 12px; }
  .connection-product .feature-explanation,
  .connection-product .feature-explanation:first-of-type { padding: 22px; }
  .connection-product .feature-explanation h3 { font-size: 17px; }
  .connection-product .feature-explanation p { font-size: 14px; }
  .connection-product .section-head { gap: 24px; margin-bottom: 28px; }
  .connection-product .journey { grid-template-columns: 1fr; gap: 12px; }
  .connection-product .journey-step { padding: 24px 20px 24px 76px; }
  .connection-product .journey-node { left: 20px; top: 25px; }
  .connection-product .journey-step h3 { padding-top: 4px; }
  .connection-product .integration-notes { gap: 24px; }
  .connection-product .compare-links a { padding: 24px; }
  .connection-product .cta-section { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .connection-visual img { transition: none; }
}
