/* Final editorial palette: brand navy, sapphire signals, quiet reading surfaces. */
:root {
  --sapphire:#2055ed;
  --sapphire-deep:#1744c4;
  --sapphire-ink:#012a64;
  --sapphire-text:#34465f;
  --sapphire-muted:#52637b;
  --sapphire-paper:#f6f8fc;
  --sapphire-white:#fff;
  --sapphire-ice:#edf3ff;
  --sapphire-frost:#f6f8fc;
  --sapphire-stage:#edf3ff;
  --sapphire-stage-edge:#cadbfb;
  --sapphire-line:#dce5f4;
  --sapphire-silver:#dce8ff;
  --sapphire-on-blue:#fff;
  --sapphire-on-blue-muted:#e8eeff;
  --impact-blue:var(--sapphire);
  --impact-ink:var(--sapphire-ink);
  --impact-copy:var(--sapphire-text);
  --impact-ice:var(--sapphire-paper);
  --font-display:"Bahnschrift","Microsoft YaHei UI",sans-serif;
  --font-body:"Microsoft YaHei UI","PingFang SC",sans-serif;
  --refine-grid:rgb(32 85 237 / .035);
  --bright-hero-edge:var(--sapphire-ice);
}
body { color:var(--sapphire-text); background:var(--sapphire-white); }
body :is(h1,h2,h3,h4) { color:var(--sapphire-ink); letter-spacing:-.018em; }
body :is(.hero-title,.eng-hero h1,.software-opening h1,.lab-hero-band h1) {
  font-size:clamp(38px,4.5vw,62px); line-height:1.2; letter-spacing:-.025em;
}
body :is(.sec-head,.lab-section-head,.eng-section-head,.software-section-head,.adv-heading) h2,
body .exv-intro h2 { font-size:clamp(30px,3.5vw,46px); line-height:1.28; }
body :is(.hero-sub,.lab-lead,.eng-lead,.software-intro > p) { font-size:17px; line-height:1.85; }
body :is(.sec-head,.lab-section-head,.eng-section-head,.software-section-head) > p { font-size:16px; line-height:1.85; }
body :is(.adv-section,.exv-section) {
  --adv-ink:var(--sapphire-ink); --adv-blue:var(--sapphire); --adv-muted:var(--sapphire-text);
  --exv-ink:var(--sapphire-ink); --exv-blue:var(--sapphire); --exv-muted:var(--sapphire-text);
}
body :is(.exv-lead,.exv-reading,.exv-figure-note,.scene-card .sc-why,.scene-details dd,.local-context,
  .adv-note,.adv-metric p,.adv-metric span,.compiler-panel > p,.artifact-source > span,.artifact-result > span,
  .eng-evidence-row p,.eng-roadmap p,.eng-gate-static p,.workload-copy p,.software-delivery p) { color:var(--sapphire-text); }
body :is(.adv-note,.device-scene-note,.pc-disclaimer,.operator-boundary,.compiler-artifact small,
  .hero-caption,.adv-footer,.exv-specs,.section-source,.eng-source) { color:var(--sapphire-muted); }
body .adv-section .adv-feature p { line-height:1.85; }
body :is(.adv-gpnpu,.exv-section,.software-validation,.eng-roadmap-section) { background:var(--sapphire-paper); }
body :is(.hero,.lab-hero-band,.software-hero,.eng-hero) {
  background-image:linear-gradient(115deg,#fff 20%,#f8faff 65%,#edf3ff);
}
body[data-page="home"] main > .section,
body .adv-section,body .exv-section { padding-block:80px; }
body :is(.sec-head,.adv-heading,.lab-section-head,.eng-section-head,.software-section-head) { margin-bottom:36px; }
body :is(.adv-heading,.impact-deployment > div,.impact-engineering > div) { column-gap:56px; }
body :is(.product-card,.scene-card,.range-card) { border-radius:8px; }
body #scenarios .scene-card { padding:28px; border-radius:8px; background:var(--sapphire-paper); }
body #scenarios .scene-primary { background:var(--sapphire-ice); }
body #scenarios .scene-card h3 { font-size:23px; }
body :is(.adv-art,.adv-company-art,.exv-figure,.validation-illustration,.device-scene-figure) { background:transparent; }
body :is(.adv-feature,.scene-card,.product-card) h3 { line-height:1.4; }
body .adv-feature .adv-link { margin-top:auto; }
body .adv-feature { display:flex; flex-direction:column; }
body .adv-feature .adv-art { flex:none; }
body .adv-section .adv-feature p { min-height:0; }
body :is(.text-link,.software-text-link,.eng-text-link,.adv-link) { color:var(--sapphire-deep); text-underline-offset:5px; }
body :is(.btn,.software-button,.eng-button) { border-radius:6px; }
body :is(.cta,.lab-cta) { background:var(--sapphire); }
body :is(.cta,.lab-cta) :is(h2,h3,p) { color:#fff; }
body[data-page="home"] .metrics { background:var(--sapphire); padding-block:26px; }
body[data-page="home"] .metrics .metric b { color:#fff; font-size:clamp(23px,2.5vw,34px); }
body[data-page="home"] .metrics .metric span { color:#dce7ff; }
body #astryx-header .nav { background:rgb(255 255 255 / .98); }
body #astryx-header .nav-links a { color:var(--sapphire-text); }
body #astryx-header .nav-links a.is-active { color:var(--sapphire); font-weight:600; }
body #astryx-header .nav-links a:hover { color:var(--sapphire); }
body :is(.footer,.lab-footer,.eng-footer) { color:var(--sapphire-muted); background:#fff; }
body .cta h2 { font-size:clamp(30px,3.4vw,46px); line-height:1.3; max-width:none; }
/* Animate technical diagrams, rather than decorative edges around prose. */
body :is(.sm-reading-rail,.sm-reading-progress,.sm-edge-traveller,.sm-entry-sweep,.sm-circuit-corner,
  .sm-feedback-glint,.sm-feedback-spot) { display:none !important; }
body :is(.eng-evidence-row,.workload-index li,.scene-card,.product-card,.eng-lifecycle,.eng-gate-static) > .live-diagram-overlay { display:none !important; }
body :is(.eng-lifecycle,.eng-delivery-grid,.delivery-chain) { isolation:isolate; }
body :is(a,button,input,select,summary,[tabindex]):focus-visible { outline:2px solid var(--sapphire); outline-offset:4px; }
@media(max-width:760px) {
  body[data-page="home"] main > .section,body .adv-section,body .exv-section { padding-block:52px; }
  body :is(.hero-title,.eng-hero h1,.software-opening h1,.lab-hero-band h1) { font-size:38px; line-height:1.25; }
  body :is(.hero-sub,.lab-lead,.eng-lead,.software-intro > p) { font-size:15px; line-height:1.85; }
  body :is(.sec-head,.adv-heading,.lab-section-head,.eng-section-head,.software-section-head) { margin-bottom:28px; }
  body :is(.sec-head,.lab-section-head,.eng-section-head,.software-section-head,.adv-heading) h2,
  body .exv-intro h2 { font-size:30px; }
  body #scenarios .scene-card { padding:24px; }
  body .adv-trio { gap:36px; }
  body .footer-inner { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
  body .footer-brand { grid-column:1 / -1; }
  body .footer-brand p { max-width:30em; font-size:13px; line-height:1.8; }
  body .footer-top { grid-column:1 / -1; justify-self:end; }
  body .cta h2 { font-size:30px; }
}
