/* Site-wide type scale. Keep this stylesheet last: legacy component styles
   remain responsible for layout. Important declarations here only standardize
   typography across their existing ID and media-query overrides. */
:root {
  --type-sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --type-mono: Consolas, "SFMono-Regular", monospace;
  --type-hero: 64px;
  --type-section: 40px;
  --type-number: 32px;
  --type-subtitle: 26px;
  --type-item: 18px;
  --type-body: 16px;
  --type-small: 14px;
  --type-caption: 12px;
  --type-leading-title: 1.5;
  --type-leading-body: 1.85;
  --type-leading-small: 1.65;
}
@media (max-width:1100px) {
  :root { --type-hero:56px; --type-section:32px; --type-number:26px; --type-subtitle:26px; }
}
@media (max-width:760px) {
  :root {
    --type-hero:40px; --type-section:26px; --type-number:26px;
    --type-subtitle:22px; --type-item:16px; --type-body:14px;
    --type-small:12px;
  }
}
body { font-family:var(--type-sans); font-size:var(--type-body); }
button, input, textarea, select { font-family:var(--type-sans); }

/* Page and section headings. */
.hero h1 { font-size:var(--type-hero)!important; font-weight:600; line-height:1.35; }
:is(#anatomy,#simulators,#data,#ar-anatomy,#robotics) .product-section-label,
:is(.about-title h2, .credentials-heading h2, .contact-heading h2) {
  font-family:var(--type-sans)!important;
  font-size:var(--type-section)!important;
  font-weight:600!important;
  line-height:var(--type-leading-title)!important;
}
.product-section-label>strong { font:inherit!important; }
.product-section-label>span {
  font-family:var(--type-mono)!important;
  font-size:var(--type-section)!important; font-weight:400!important;
  line-height:var(--type-leading-title)!important;
}
:is(.product-section-tagline, .exploration-copy h3, .product-forms-heading h3,
    .product-copy h3, .ar-copy>h3, .about-lead, .navigation-panel-heading strong) {
  font-size:var(--type-subtitle)!important; font-weight:400!important;
  line-height:1.65!important;
}

/* Item titles, including selectable cards (regular weight in every state). */
:is(.simulator-summary-heading h3, .simulator-function-grid h4,
    .simulator-coverage-grid h4, .simulation-algorithms dt,
    .simulation-realtime strong, .product-choice-copy strong,
    .dataset-case-tabs button, .dataset-benefits h3, .ar-capabilities h4,
    .ar-devices-intro strong, .training-keypoints dt, .robotics-principles h4,
    .credential-card-copy strong, .navigation-panel-heading span,
    .universe-product-title, .universe-core strong) {
  font-size:var(--type-item)!important; font-weight:400!important;
  line-height:var(--type-leading-title)!important;
}
.dataset-case-tabs button span { font-size:inherit!important; font-weight:400!important; }

/* Main reading text, navigation controls, and form fields. */
:is(.hero-description, .anatomy-intro-copy>p, .section-heading>p,
    .exploration-copy>p, .product-copy>p, .simulator-coverage-grid p,
    .generation-heading>p, .ar-copy>p, .training-copy>p,
    .robotics-content>p:not(.product-section-tagline), .about-copy>p:not(.about-lead),
    .credentials-heading p:not(.credentials-overline), .contact-heading>p,
    .model-tabs button, .credentials-tabs button, .ar-device b,
    #contact-form label, #contact-form input, #contact-form select,
    #contact-form textarea, .form-footer .button, #form-result) {
  font-size:var(--type-body)!important; font-weight:400!important;
  line-height:var(--type-leading-body)!important;
}

/* Supporting explanations and compact controls. */
:is(.simulation-algorithms dd, .simulation-realtime span,
    .simulator-function-grid p, .feature-list li, .product-choice-copy small,
    .dataset-benefits p, .ar-capabilities p, .training-keypoints dd,
    .robotics-principles p, .ar-device small, .ar-flow,
    .dataset-legend>span, .organ-group-label, .organ-selector button,
    .anatomy-mesh-stats>div>span, .simulator-performance-grid>div>span,
    .generation-metrics span, .credentials-stats span, .generation-use,
    .exploration-view figcaption, .generation-bar, .header nav,
    .footer>div, .footer>a:last-child, .credential-holder) {
  font-size:var(--type-small)!important; font-weight:400!important;
  line-height:var(--type-leading-small)!important;
}

/* Small labels, units, and visualization readouts use one legible minimum. */
:is(.eyebrow, .section-kicker, .credentials-overline, .research-badge,
    .header-language, .brand small, .about-brand-name small,
    .universe-product-title small, .universe-core>span,
    .generation-gpu figcaption, 
    .generation-card strong, .generation-card code, .generation-pose,
    #exploration-angle, .exploration-legend, .credential-kind,
    .credential-level, .credential-number, .credentials-tabs small,
    .credentials-stats small, .simulator-performance-grid small,
    .simulator-performance-grid sup, .simulator-coverage-grid small,
    .generation-metrics small, .anatomy-mesh-stats small,
    .ar-devices-intro>span, .footer>div small, #credentials-status,
    #exploration-status, #generation-status, .dataset-source-note) {
  font-size:var(--type-caption)!important; font-weight:400!important;
  line-height:var(--type-leading-small)!important;
}
.generation-card code span { font-size:inherit; }
.brand>span, .about-brand-name { font-size:var(--type-item)!important; }
.brand small, .about-brand-name small { letter-spacing:1.5px!important; }
.brand small { white-space:nowrap; }
.about-brand-name b { font-size:inherit; }
.universe-number { font-size:var(--type-item)!important; font-weight:400!important; }

/* All large metrics share the same numerals, weight, and blue. */
:is(.simulator-performance-grid strong, .simulator-coverage-grid header>strong,
    .anatomy-mesh-stats strong, .generation-metrics strong, .credentials-stats strong) {
  font-family:var(--type-mono)!important; font-size:var(--type-number)!important;
  font-weight:400!important; line-height:1.2!important;
  letter-spacing:0!important; color:#9cdcff!important;
  font-variant-numeric:tabular-nums;
}
:is(.simulator-performance-grid small, .simulator-coverage-grid small,
    .anatomy-mesh-stats small, .generation-metrics small, .credentials-stats small) {
  font-family:var(--type-sans)!important;
}
:is(.product-section-label>span, .universe-number, .simulator-function-grid article>span,
    .dataset-benefits>div>span, .robotics-principles span,
    .generation-pose, #exploration-angle, .generation-card code,
    .credential-number, .credentials-tabs small) {
  font-family:var(--type-mono)!important; font-variant-numeric:tabular-nums;
}
:is(.simulator-function-grid article>span, .dataset-benefits>div>span, .robotics-principles span) {
  font-size:var(--type-small)!important; font-weight:400!important; color:#9cdcff!important;
}

/* SVG labels stay in viewBox units so they scale with the technical diagram. */
#navigation-animation { font-family:var(--type-sans); }
.nav-small, .nav-result-label { font-size:14px; }
.nav-pose-readout { font-family:var(--type-mono); font-size:12px; }
.nav-stage-labels text { font-size:18px; }

/* Dense overview cards use the compact label tier on small screens. */
@media(max-width:1100px) {
  .hero .universe-product-title { font-size:var(--type-small)!important; }
}
@media(max-width:760px) {
  .hero .universe-product-title { font-size:var(--type-small)!important; }
  .universe-product-title small { line-height:1.5!important; }
  .navigation-panel-heading span { font-size:var(--type-small)!important; }
  .navigation-panel-heading strong { font-size:var(--type-item)!important; }
}
@media(max-width:380px) {
  :root { --type-number:22px; }
  .dataset-case-tabs button { font-size:var(--type-caption)!important; }
}
