/* SpeedX family layer. Keep the shipped application and motion bundles intact. */
:root {
  --family-blue: #a8d2ff;
  --section-space: 104px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html { scroll-padding-top: 84px; }
.hero h1 { letter-spacing: -.04em; }
h2, .technology-section h2, .samples-section h2 { letter-spacing: -.035em; }

/* The family strip scrolls away; only the 64px product header stays sticky. */
.site-header { position: sticky; top: 0; height: 64px; margin-bottom: -64px; background: #061932e8; }
.nav-wrap { height: 64px; }
.family-bar { position: relative; z-index: 51; height: 32px; color: #d6e7ff; background: #031127; border-bottom: 1px solid #a6cfff1f; }
.family-inner {
  width: min(1296px, calc(100% - 96px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.family-brand { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 18px; font-weight: 750; letter-spacing: -.7px; }
.family-brand svg { width: 21px; height: 24px; color: var(--family-blue); }
.family-dot { color: var(--family-blue); }
.family-brand:hover { color: var(--family-blue); }
.family-bar .family-brand { min-height: 32px; font-size: 12px; gap: 5px; letter-spacing: -.3px; }
.family-bar .family-brand svg { width: 14px; height: 14px; }
.family-mobile-slot, .family-label-mobile { display: none; }
.family-menu { position: relative; }
.family-menu summary { min-height: 31px; gap: 9px; padding: 0 4px 0 12px; font-size: 12px; color: #d6e7ff; border-radius: 5px; }
.family-menu summary:hover, .family-menu[open] summary { color: #fff; }
.family-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
.family-menu[open] .family-chevron { transform: rotate(180deg); }
.family-products {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  width: 244px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid #36516f;
  border-radius: 12px;
  background: #0b203c;
  color: #e4efff;
  box-shadow: 0 16px 40px #0005;
}
.family-products a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 11px 14px; border-radius: 6px; font-size: 14px; }
.family-products a::after, .family-footer-links a::after { content: none; }
.family-products a:hover, .family-products a:focus-visible { background: #19385b; color: #fff; }
.family-product-name { display: inline-flex; align-items: center; gap: 10px; }
.family-accent { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; }
.family-accent-drop { background: #8faeff; }
.family-accent-ocr { background: #a8c8b2; }
.family-accent-esp { background: #edbb82; }
.family-accent-api { background: #c0a5ed; }
.family-accent-agent { background: #83cece; }
.family-products a[aria-current="page"] { background: #19385b; }
.family-current { font-size: 11px; color: #b9cee9; }
.family-products .icon { width: 16px; height: 16px; color: var(--family-blue); }
.family-products a:focus-visible { outline-offset: -2px; }
.family-menu summary:focus-visible { outline-color: #b6e3ff; outline-offset: -3px; }
.site-header .wordmark { min-height: 44px; }
.site-header .icon-button, .site-header .small, .motion-toggle { min-height: 44px; }
.site-header .icon-button { width: 44px; }
.motion-toggle { font-size: 12px; letter-spacing: 0; }
.hero, [data-theme=dark] .hero { padding-top: 94px; height: 1104px; }

/* Readable supporting text, including the narrow-screen and dark sections. */
.hero-eyebrow, .hero-eyebrow span, .hero .release-pill,
.hero-bridge .image-caption, .image-caption, .eyebrow,
.tab-number, .feature-tab small, .feature-footnote,
.check-preview > .eyebrow, .check-preview > p,
.privacy-points article > span, .download-badge,
.download-card .download-caption, .checksum p, .checksum code,
.copy-status, .site-footer p { font-size: 12px; }
.hero-eyebrow { letter-spacing: 5px; }
.hero-eyebrow span { letter-spacing: 5px; }
.download-card .download-caption { line-height: 1.8; }
.checksum code { line-height: 1.9; }
.download-meta { gap: 8px 16px; flex-wrap: wrap; }
.hero .primary:hover, [data-theme=dark] .hero .primary:hover,
.download-card .primary, [data-theme=dark] .download-card .primary { background: #0665df; }
.download-card .primary:hover, [data-theme=dark] .download-card .primary:hover { background: #0057c4; }
.privacy-section a:focus-visible, .download-section a:focus-visible,
.download-section button:focus-visible { outline-color: #b6e3ff; }

/* One spacing cadence for the existing sections. */
.section { padding-block: var(--section-space); }
.privacy-section, .download-section { padding-block: var(--section-space); }
.section-heading { margin-bottom: 40px; }
.export-section { margin-top: 72px; }
.feature-tab:hover { background: var(--tint); }
.feature-tab:focus-visible { outline-offset: -3px; }
.feature-panels [role=tabpanel]:focus-visible { outline-offset: -4px; }
.sample-thumbnails a:focus-visible { outline-offset: 3px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 30px 40px; padding-block: 40px 24px; }
.footer-right > div { gap: 8px 24px; }
.footer-right a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin-top: 8px; }
.family-footer { --family-blue: var(--blue); grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.family-footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; }
.family-footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; }
.family-footer-links .icon { width: 14px; height: 14px; }
.family-footer-links a:hover { color: var(--blue); }

@media (min-width: 1600px) {
  .hero, [data-theme=dark] .hero { padding-top: 134px; height: 1254px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero, [data-theme=dark] .hero { padding-top: 116px; height: 1074px; }
  .family-inner { width: calc(100% - 48px); }
  .nav-wrap { gap: 16px; }
  .nav-wrap nav { gap: 18px; }
  .nav-actions { gap: 6px; }
  .feature-tab { min-height: 124px; }
}
@media (max-width: 900px) {
  .family-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 760px) {
  :root { --section-space: 72px; }
  .family-inner, .nav-wrap { width: calc(100% - 32px); }
  .nav-wrap { gap: 8px; }
  .nav-actions { gap: 4px; }
  .motion-toggle { padding-inline: 6px; }
  .hero, [data-theme=dark] .hero { height: auto; padding-top: 108px; }
  .hero h1 { font-size: clamp(34px, 9.3vw, 64px); }
  .hero-description { font-size: 14px; }
  .hero .large { font-size: 14px; }
  .hero .release-pill { gap: 6px; letter-spacing: 0; padding-inline: 0; flex-wrap: wrap; justify-content: center; }
  .hero .pill-divider { margin-inline: 2px; }
  .hero-bridge .image-caption { line-height: 1.8; letter-spacing: 0; }
  .section-heading { margin-bottom: 28px; }
  .section-intro { margin-top: 16px; padding-bottom: 0; }
  .eyebrow { letter-spacing: 1.4px; }
  .feature-tabs { gap: 8px; }
  .feature-tab { min-height: 124px; padding: 12px 10px; }
  .feature-tab strong { font-size: 14px; }
  .feature-tab small { line-height: 1.8; margin-top: 7px; }
  .feature-footnote { padding-block: 16px; align-items: flex-start; }
  .feature-footnote .icon { margin-top: 2px; }
  .feature-panels { padding: 16px; }
  .feature-panels img { border: 1px solid var(--line); border-radius: 6px; }
  .check-preview { padding: 0; }
  .export-section { margin-top: 48px; }
  .export-heading h3 { font-size: 25px; }
  .export-options { gap: 28px 0; }
  .sample-thumbnails { gap: 20px; padding: 20px; }
  .sample-thumbnails a { min-width: 0; }
  .sample-download { width: 100%; padding-inline: 14px; font-size: 14px; }
  .sample-download [data-sample-size] { white-space: nowrap; }
  .download-copy h2 { font-size: clamp(32px, 9vw, 42px); }
  .download-layout { gap: 28px; }
  .download-card { padding: 24px; min-width: 0; }
  .download-card h3 span { white-space: nowrap; }
  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 24px; }
  .footer-right { margin-top: 0; text-align: left; }
  .footer-right > div { gap: 4px 24px; }
  .family-footer { gap: 12px; padding-top: 16px; }
  .family-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 4px 20px; }
  .family-footer-links a { width: fit-content; }
}
@media (max-width: 720px) {
  .family-bar { display: none; }
  .nav-wrap { position: relative; gap: 6px; }
  .site-header .wordmark { font-size: 17px; gap: 4px; }
  .family-mobile-slot { display: block; margin-right: auto; }
  .family-menu { position: static; }
  .family-menu summary { min-height: 44px; padding: 0 2px; gap: 2px; font-size: 11px; white-space: nowrap; }
  .family-label-desktop { display: none; }
  .family-label-mobile { display: inline; }
  .family-chevron { width: 12px; height: 12px; }
  .family-products { top: calc(100% + 6px); right: 0; }
  .site-header .icon-button { width: 32px; }
  .nav-actions { gap: 2px; }
  .motion-toggle { font-size: 10px; padding-inline: 4px; }
  .nav-actions .small { font-size: 12px; padding-inline: 10px; gap: 6px; }
  .nav-actions .small .icon { width: 14px; height: 14px; }
}
@media (max-width: 360px) {
  .nav-wrap { gap: 4px; }
  .nav-wrap .wordmark { font-size: 15px; }
  .family-menu summary { font-size: 10px; }
  .nav-actions .small { padding-inline: 6px; }
  .nav-actions { gap: 2px; }
  .motion-toggle { padding-inline: 4px; }
  .download-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .family-chevron { transition: none; }
}
@media (forced-colors: active) {
  .family-bar, .family-products { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .family-menu summary, .family-brand svg, .family-dot, .family-products .icon { color: LinkText; }
}
