:root {
  --paper: #f7f8fa;
  --surface: #fff;
  --ink: #141b24;
  --muted: #4a5665;
  --line: #d8dfe6;
  --accent: #0b665e;
  --accent-soft: #e1f2ee;
  --night: #101317;
  --night-line: #323a42;
  --night-muted: #b8c4cc;
  --mint: #9ce6d7;
}

.site-frame { width: min(100% - 96px, 1240px); margin-inline: auto; }
.page { width: min(100% - 96px, 1240px); }
.masthead { background: var(--night); color: #f5f8fa; border-bottom: 1px solid #2b333a; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 72px; }
.product-mark { display: inline-flex; gap: 9px; align-items: center; font-weight: 650; font-size: 1.05rem; line-height: 1; letter-spacing: -.036em; white-space: nowrap; text-decoration: none; }
.logo-engine { color: #c1c9d1; font-weight: 480; }
.masthead nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(16px, 2.9vw, 42px); }
.masthead nav a, .footer-inner nav a { color: #c9d2d9; font-weight: 525; font-size: .91rem; text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current], .product-mark:hover, .footer-inner nav a:hover { color: #fff; }
.masthead nav a[aria-current] { text-decoration: underline; text-underline-offset: .45em; text-decoration-color: var(--mint); }
.masthead nav .nav-download { padding: 6px 12px; border: 1px solid #4e5c65; border-radius: 4px; color: #f0f5f8; }
.masthead nav .nav-download:hover { border-color: var(--mint); }
.product-footer { margin-top: 24px; background: var(--night); color: #f5f8fa; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 140px; padding-block: 24px; }
.footer-inner p { margin: 8px 0 0 39px; color: var(--night-muted); font-size: .87rem; }
.masthead a:focus-visible, .product-footer a:focus-visible, .landing-hero a:focus-visible, .evidence-band a:focus-visible { outline-color: var(--mint); }

.landing-hero { position: relative; isolation: isolate; overflow: hidden; background: #0b0f15; color: #f6f8fa; }
.landing-inner { display: grid; align-items: center; min-height: min(620px, 68vw); }
.landing-copy { width: 57%; padding-block: 72px; }
.landing-copy h1 { margin-bottom: 22px; font-size: clamp(3.25rem, 6.45vw, 6.65rem); font-weight: 590; line-height: .96; letter-spacing: -.053em; }
.landing-copy > p { max-width: 33rem; color: #c7d0d8; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.55; }
.landing-copy .platform-note { margin-top: 17px; color: #aebbc6; font-size: .875rem; }
.landing-capture { position: absolute; z-index: -1; inset: 0 0 0 35%; }
.landing-capture img { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; display: block; }
.landing-capture::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #0b0f15 0%, #0b0f15f2 8%, #0b0f1570 22%, transparent 46%), linear-gradient(0deg, #0b0f15 0%, transparent 23%); }
.landing-capture figcaption { position: absolute; z-index: 1; right: max(48px, calc((100vw - 1240px) / 2)); bottom: 27px; display: grid; gap: 1px; text-align: right; color: #b9c7d2; font-size: .86rem; }
.landing-capture figcaption strong { color: #fff; font-size: .95rem; }

.landing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.site-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 15px; border: 1px solid transparent; border-radius: 4px; font-weight: 630; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.site-button-light { color: #142022; background: var(--mint); }
.site-button-light:hover { color: #142022; background: #baf3e8; }
.site-button-ghost { color: #fff; border-color: #616d77; }
.site-button-ghost:hover { color: #fff; border-color: #b2c0cb; background: #ffffff10; }
.site-button-dark { color: #fff; background: var(--night); }
.site-button-dark:hover { background: var(--accent); color: #fff; }
.site-inline { color: var(--accent); font-weight: 630; text-decoration: underline; text-underline-offset: .25em; }
.site-inline:hover { color: var(--ink); }
.section-label { margin-bottom: 13px; color: var(--accent); font-size: .9rem; font-weight: 650; }
.landing-section { padding-block: clamp(49px, 7vw, 93px); }
.landing-section h2, .feature-heading h2 { color: inherit; font-size: clamp(2rem, 4.1vw, 3.65rem); letter-spacing: -.042em; line-height: 1.08; text-wrap: balance; }
.engine-feature { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: clamp(26px, 6vw, 96px); }
.feature-heading > p:not(.section-label) { max-width: 36ch; margin: 18px 0 21px; color: var(--muted); font-size: 1.04rem; }
.feature-capture { overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 5px; }
.feature-capture img { display: block; width: 100%; height: auto; }
.feature-capture figcaption, .evidence-figure figcaption { padding: 10px 13px; color: var(--muted); font-size: .875rem; }
.evidence-band { color: #f5f7fa; background: var(--night); }
.evidence-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 6vw, 90px); align-items: center; padding-block: clamp(48px, 7vw, 87px); }
.evidence-band .section-label, .evidence-band .site-inline { color: var(--mint); }
.evidence-band .feature-heading > p:not(.section-label), .evidence-figure figcaption { color: var(--night-muted); }
.evidence-band .site-inline:hover { color: #fff; }
.evidence-figure { border: 1px solid var(--night-line); border-radius: 5px; overflow: hidden; }
.evidence-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-line); }
.evidence-frames > div { min-width: 0; background: #151a20; }
.evidence-frames img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.evidence-frames p { padding: 9px 12px; font-size: .9rem; font-weight: 530; }
.section-intro { display: flex; gap: 12px 28px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 25px; }
.package-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.package-links a { display: grid; align-content: center; gap: 5px; padding: 18px 24px 19px 16px; min-height: 103px; border-bottom: 1px solid var(--line); text-decoration: none; }
.package-links a:nth-child(odd) { border-right: 1px solid var(--line); }
.package-links a:hover { background: #eef3f4; }
.package-links strong { font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; }
.package-links span { color: var(--muted); font-size: .94rem; }
.archive-section { padding-top: 0; }
.archive-section h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.archive-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.archive-links a { color: var(--muted); font-weight: 540; }
.archive-links a:hover { color: var(--accent); }

.product-page-intro { padding-block: clamp(48px, 7vw, 98px) clamp(26px, 4vw, 47px); max-width: 850px; }
.product-page-intro h1 { font-size: clamp(2.65rem, 6.3vw, 5.7rem); letter-spacing: -.045em; line-height: 1.04; }
.product-page-intro p { margin-top: 19px; max-width: 50ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.downloads-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); gap: clamp(28px, 5vw, 65px); padding-bottom: clamp(42px, 6vw, 80px); }
.download-list { border-top: 1px solid var(--line); }
.download-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, 190px); align-items: start; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.download-entry:target { background: var(--accent-soft); box-shadow: 12px 0 var(--accent-soft), -12px 0 var(--accent-soft); }
.download-entry h2 { font-size: clamp(1.35rem, 2.45vw, 1.9rem); line-height: 1.13; }
.download-entry p { max-width: 60ch; margin: 7px 0; color: var(--muted); }
.download-entry-actions { display: grid; gap: 8px; justify-items: stretch; text-align: center; font-size: .9rem; }
.artifact-meta { color: var(--muted); font: .81rem/1.5 var(--mono); }
.release-aside { align-self: start; border: 1px solid var(--line); border-radius: 5px; padding: 20px; background: var(--surface); }
.release-aside h2 { font-size: 1.23rem; }
.release-aside dl { margin: 10px 0 13px; }
.release-aside dt { margin-top: 11px; font-size: .94rem; font-weight: 650; }
.release-aside dd { color: var(--muted); margin-top: 2px; font-size: .94rem; }
.documentation-topics { border-top: 1px solid var(--line); padding-bottom: 54px; }
.documentation-topics section { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(0, 1fr); gap: 14px 36px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.documentation-topics h2 { font-size: 1.5rem; }
.documentation-topics p { margin-top: 4px; color: var(--muted); }
.documentation-topics ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.documentation-topics a { color: var(--accent); font-weight: 590; }
.documentation-topics a:hover { color: var(--ink); }

.reference-page .docs-heading, .reference-page .spatial-intro { padding-top: clamp(35px, 5.6vw, 75px); }
.reference-page .docs-heading h1, .reference-page .spatial-intro h1 { font-size: clamp(2.65rem, 5.8vw, 5.25rem); font-weight: 580; letter-spacing: -.048em; line-height: 1.03; }
.reference-page .docs-grid { gap: clamp(20px, 5vw, 65px); }
.reference-page .eyebrow, .reference-page .docs-nav p { color: var(--accent); font-size: .84rem; letter-spacing: .065em; }
.reference-page .docs-nav { max-height: calc(100vh - 54px); overflow-y: auto; padding-right: 8px; font-size: .9rem; }
.reference-page .docs-nav a:focus-visible { outline-offset: 1px; }
.reference-page .docs-content { max-width: 900px; }
.reference-page .docs-content section { padding-block: 27px 32px; }
.reference-page .docs-content h2 { font-size: clamp(1.55rem, 2.75vw, 2.23rem); letter-spacing: -.045em; }
.reference-page .docs-content p, .reference-page .docs-content li { font-size: 1rem; line-height: 1.7; }
.reference-page .docs-content .service-entry h3 { font-size: 1.05rem; }
.reference-page .docs-content .service-headers code { font-size: .74rem; }
.reference-page .architecture-stack span { color: var(--mint); font-size: .77rem; letter-spacing: .04em; }
.reference-page .architecture-stack strong, .reference-page .reference-row > * { font-size: .94rem; }
.reference-page .architecture-stack p { color: #c6d0d8; }
.reference-page .world-toolbar, .reference-page .world-figure figcaption { font-size: .88rem; }
.reference-page .world-controls { flex-wrap: wrap; }
.reference-page .bench-table td, .reference-page .bench-table th { font-size: .91rem; }
.reference-page .bench-table .bench-best { color: #104c45; }
.reference-page .product-link { text-decoration: underline; }

@media(max-width: 900px) {
  .site-frame, .page { width: min(100% - 56px, 1240px); }
  .landing-inner { min-height: 505px; }
  .landing-capture figcaption { right: 28px; }
  .downloads-layout { grid-template-columns: minmax(0, 1fr); }
  .release-aside { width: 100%; }
}

@media(max-width: 690px) {
  .site-frame, .page { width: min(100% - 38px, 1240px); }
  .masthead-inner { flex-wrap: wrap; gap: 9px; padding-block: 11px; }
  .masthead nav { width: 100%; gap: 10px; justify-content: space-between; }
  .masthead nav a { font-size: .875rem; }
  .masthead nav .nav-download { padding: 4px 7px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-inner nav { flex-wrap: wrap; gap: 14px; }
  .landing-hero { display: flex; flex-direction: column; }
  .landing-inner { order: -1; min-height: initial; }
  .landing-copy { width: 100%; padding: 41px 0 22px; }
  .landing-copy h1 { font-size: clamp(3.2rem, 10.6vw, 4.65rem); }
  .landing-capture { z-index: auto; position: relative; inset: auto; aspect-ratio: 1.9; }
  .landing-capture::after { background: linear-gradient(180deg, #0b0f15 0%, transparent 27%), linear-gradient(0deg, #0b0f15e6, transparent 44%); }
  .landing-capture figcaption { right: 19px; bottom: 12px; }
  .engine-feature, .evidence-layout { grid-template-columns: 1fr; }
  .feature-heading > p:not(.section-label) { max-width: 54ch; }
  .reference-page .docs-nav { max-height: none; overflow: visible; }
}

@media(max-width: 490px) {
  .landing-actions { gap: 8px; margin-top: 22px; }
  .landing-actions a { width: 100%; }
  .landing-capture { aspect-ratio: 1.58; }
  .package-links, .download-entry, .documentation-topics section { grid-template-columns: 1fr; }
  .package-links a:nth-child(odd) { border-right: 0; }
  .package-links a { min-height: auto; }
  .download-entry-actions { justify-items: start; text-align: left; }
  .documentation-topics section { gap: 8px; }
  .reference-page .bench-table td, .reference-page .bench-table th { font-size: .84rem; }
}

@media(max-width: 365px) {
  .site-frame, .page { width: calc(100% - 30px); }
  .masthead nav { gap: 5px; }
  .masthead nav a { font-size: .81rem; }
  .masthead nav .nav-download { padding-inline: 5px; }
  .landing-copy h1 { font-size: 2.67rem; }
}

@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.space-showcase { overflow: hidden; margin: 20px 0 12px; border: 1px solid #323a42; border-radius: 5px; background: var(--night); }
.space-showcase img { display: block; width: 100%; height: auto; }
.space-showcase figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px; padding: 10px 13px; color: var(--night-muted); font-size: .875rem; }
.space-showcase figcaption strong { color: #f5f8fa; font-weight: 630; }
.reference-page .docs-content .showcase-credits { margin-top: 12px; color: var(--muted); font-size: .875rem; }
