﻿:root {
  --bg: oklch(98% 0.006 210); --surface: oklch(100% 0 0); --surface-soft: oklch(96.5% 0.012 205);
  --fg: oklch(20% 0.025 225); --muted: oklch(49% 0.02 225); --border: oklch(90% 0.015 210);
  --accent: oklch(46% 0.1 178); --accent-strong: oklch(38% 0.11 178); --accent-soft: oklch(93% 0.035 178);
  --secondary: oklch(72% 0.08 205); --success: oklch(58% 0.14 155); --warn: oklch(72% 0.13 82); --danger: oklch(58% 0.18 28);
  --dark: oklch(18% 0.035 205); --dark-muted: oklch(75% 0.025 205);
  --font-display: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1180px; --radius: 18px; --shadow-window: 0 30px 90px oklch(24% 0.04 205 / 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--fg); background: var(--bg); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button { font: inherit; }
::selection { color: var(--fg); background: var(--accent-soft); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: var(--surface); background: var(--fg); border-radius: 8px; transform: translateY(-160%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; border-bottom: 1px solid transparent; transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.site-header.is-scrolled { border-color: color-mix(in oklch, var(--border) 72%, transparent); background: color-mix(in oklch, var(--bg) 88%, transparent); box-shadow: 0 8px 30px oklch(20% 0.02 220 / 0.04); backdrop-filter: blur(18px); }
.nav-shell { width: min(calc(100% - 40px), var(--container)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand img { object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 510; letter-spacing: 0.02em; text-decoration: none; transition: color 160ms ease; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a.is-active { color: var(--fg); }
.primary-nav [data-nav-link]::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform 160ms ease; }
.primary-nav [data-nav-link].is-active::after { transform: scaleX(1); }
.primary-nav .nav-source { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--accent-strong); border-radius: 999px; color: var(--surface); background: var(--accent-strong); box-shadow: 0 8px 24px oklch(38% 0.11 178 / 0.18); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-2px); background: var(--accent); box-shadow: 0 12px 28px oklch(38% 0.11 178 / 0.23); }
.button:active { transform: translateY(0); }
.button-small { min-height: 44px !important; padding: 0 17px; color: var(--surface) !important; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 550; letter-spacing: 0.02em; text-underline-offset: 6px; }
.text-link:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent) 78%, white); outline-offset: 4px; }
.hero { position: relative; min-height: 780px; padding: 150px 0 96px; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 760px; height: 620px; top: -120px; right: -220px; border-radius: 50%; background: radial-gradient(circle, oklch(86% 0.075 198 / 0.48), transparent 68%); pointer-events: none; }
.hero-grid { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker { margin: 0 0 24px; color: var(--accent-strong); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px var(--border); }
h1, h2, h3 { margin-top: 0; color: var(--fg); font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { max-width: 8.4ch; margin-bottom: 26px; font-size: clamp(50px, 5vw, 76px); line-height: 1.08; letter-spacing: -0.03em; }
h1 em { color: var(--fg); font-style: normal; }
.hero-lead { max-width: 58ch; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; }
.hero-meta span { position: relative; }
.hero-meta span:not(:last-child)::after { content: ""; position: absolute; width: 3px; height: 3px; right: -12px; top: 8px; border-radius: 50%; background: var(--border); }
.product-stage { position: relative; min-height: 520px; display: grid; align-items: center; }
.product-window { position: relative; z-index: 2; width: min(760px, 100%); margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-window); transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); transform-origin: center; }
.window-bar { height: 42px; padding: 0 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface); font-size: 10px; letter-spacing: .02em; }
.window-bar b { justify-self: end; color: var(--muted); font-weight: 550; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.product-window > img { width: 100%; aspect-ratio: 1216 / 839; object-fit: cover; object-position: top; }
.product-window figcaption { padding: 11px 16px; border-top: 1px solid var(--border); color: var(--muted); background: var(--surface); font-size: 12px; text-align: right; }
.memory-rail { position: absolute; z-index: 3; top: 60px; left: -48px; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: color-mix(in oklch, var(--surface) 92%, transparent); box-shadow: 0 12px 30px oklch(20% 0.02 220 / .08); backdrop-filter: blur(12px); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
.memory-rail i { width: 16px; height: 1px; background: var(--border); }
.context-card { position: absolute; z-index: 4; right: -26px; bottom: 28px; min-width: 244px; padding: 15px 17px; border: 1px solid color-mix(in oklch, var(--accent) 32%, var(--border)); border-radius: 13px; background: color-mix(in oklch, var(--surface) 94%, transparent); box-shadow: 0 18px 44px oklch(20% 0.03 220 / .14); backdrop-filter: blur(16px); }
.context-card span, .context-card strong { display: block; }
.context-card span { color: var(--accent-strong); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.context-card strong { margin-top: 3px; color: var(--fg); font-size: 12px; font-weight: 550; }
.section-shell { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.loop-section, .features-section, .steps-section, .local-section { padding: 112px 0; }
.loop-section { color: var(--surface); background: var(--dark); }
.loop-section h2, .loop-section h3 { color: var(--surface); }
.loop-section .kicker { color: oklch(78% .08 180); }
.section-heading h2 { margin-bottom: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.12; letter-spacing: -0.025em; }
.split-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; }
.split-heading > p { max-width: 48ch; margin: 0 0 6px; color: var(--dark-muted); font-size: 17px; }
.loop-track { margin: 68px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.loop-track li { position: relative; min-height: 238px; padding: 30px 28px 24px; border-top: 1px solid oklch(100% 0 0 / .18); border-right: 1px solid oklch(100% 0 0 / .12); }
.loop-track li:last-child { border-right: 0; }
.loop-track li::before { content: ""; position: absolute; top: -4px; left: 28px; width: 7px; height: 7px; border-radius: 50%; background: oklch(78% .08 180); }
.loop-track span { color: var(--dark-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.loop-track strong { display: block; margin-top: 34px; color: var(--surface); font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.loop-track p { margin: 10px 0 0; color: var(--dark-muted); font-size: 14px; line-height: 1.7; }
.features-section { background: var(--surface); }
.centered-heading { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.centered-heading .kicker { margin-bottom: 18px; }
.centered-heading > p:last-child { max-width: 58ch; margin: 20px auto 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card { min-height: 360px; padding: 34px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.feature-card-wide { grid-column: 1 / -1; min-height: 430px; display: grid; grid-template-columns: .7fr 1.15fr 1fr; gap: 40px; align-items: center; }
.feature-index { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.feature-card h3 { margin: 58px 0 16px; font-size: 30px; line-height: 1.16; letter-spacing: -.02em; }
.feature-card p { max-width: 52ch; margin: 0; color: var(--muted); }
.feature-card-wide h3 { margin-top: 18px; font-size: 38px; }
.feature-card-wide .feature-index { color: var(--accent-strong); }
.feature-card ul { margin: 22px 0 0; padding: 0; display: grid; gap: 8px; color: var(--fg); font-size: 14px; list-style: none; }
.feature-card li::before { content: "—"; margin-right: 9px; color: var(--muted); }
.memory-stack { display: grid; gap: 9px; perspective: 900px; }
.memory-stack div { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 22px oklch(20% .02 220 / .05); transform: translateX(var(--offset, 0)); }
.memory-stack div:nth-child(2) { --offset: 15px; }
.memory-stack div:nth-child(3) { --offset: 30px; }
.memory-stack span, .memory-stack b { display: block; }
.memory-stack span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; }
.memory-stack b { margin-top: 3px; color: var(--fg); font-size: 14px; font-weight: 550; }
.feature-note { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-note span { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; }
.feature-card-dark { color: var(--surface); background: var(--dark); border-color: var(--dark); }
.feature-card-dark h3 { color: var(--surface); }
.feature-card-dark p { color: var(--dark-muted); }
.feature-card-dark .feature-index { color: var(--dark-muted); }
.review-facets { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 8px; }
.review-facets span { padding: 8px 11px; border: 1px solid oklch(100% 0 0 / .16); border-radius: 999px; color: var(--dark-muted); font-size: 12px; }
.graph-mini { width: 100%; margin-top: 30px; color: var(--accent); }
.graph-mini path { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .46; }
.graph-mini circle { fill: var(--surface); stroke: currentColor; stroke-width: 2; }
.steps-section { background: var(--surface-soft); }
.steps-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 100px; align-items: start; }
.steps-intro { position: sticky; top: 124px; }
.steps-intro h2 { margin-bottom: 22px; font-size: clamp(36px, 3.8vw, 54px); line-height: 1.13; letter-spacing: -.025em; }
.steps-intro > p:not(.kicker) { max-width: 50ch; color: var(--muted); }
.steps-intro .text-link { margin-top: 18px; }
.steps-list { margin: 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.steps-list li { min-height: 126px; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 22px; border-bottom: 1px solid var(--border); }
.steps-list > li > span { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.steps-list strong { display: block; color: var(--fg); font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.steps-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.local-section { background: var(--surface); }
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.local-copy h2 { margin-bottom: 22px; font-size: clamp(40px, 4vw, 58px); line-height: 1.1; letter-spacing: -.025em; }
.local-copy > p:last-child { max-width: 55ch; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.trust-grid div { min-height: 145px; padding: 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.trust-grid span { margin-top: 8px; color: var(--muted); font-size: 13px; }
.download-section { padding: 40px 20px 20px; background: var(--surface); }
.download-panel { width: min(100%, 1380px); min-height: 590px; margin: 0 auto; padding: 90px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 24px; color: var(--surface); background: var(--dark); text-align: center; }
.download-panel > img { margin-bottom: 24px; filter: drop-shadow(0 14px 32px oklch(78% .08 180 / .22)); }
.download-panel .kicker { margin-bottom: 18px; color: oklch(78% .08 180); }
.download-panel h1 { max-width: 14ch; margin-bottom: 22px; color: var(--surface); font-size: clamp(44px, 5vw, 70px); line-height: 1.08; letter-spacing: -.03em; }
.download-panel > p:not(.kicker) { max-width: 55ch; margin: 0; color: var(--dark-muted); }
.download-actions { margin-top: 32px; display: flex; align-items: center; gap: 24px; }
.button-light { border-color: var(--surface); color: var(--dark); background: var(--surface); box-shadow: none; }
.button-light:hover { color: var(--surface); background: transparent; }
.text-link-light { color: var(--surface); }
.download-groups { width: min(100%, 760px); margin-top: 32px; }
.download-group { position: relative; }
.download-group + .download-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid oklch(100% 0 0 / .13); }
.download-group-label { margin: 0 0 10px; color: oklch(78% .08 180); font-family: var(--font-mono); font-size: 10px; font-weight: 650; letter-spacing: .1em; }
.download-button-row { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px; }
.download-button-row > .button, .download-button-row > .mac-download > .button { min-width: 172px; }

.mac-download { position: relative; }
.mac-download-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.mac-download-toggle span { display: inline-block; transition: transform 160ms ease; }
.mac-download-menu { position: absolute; z-index: 20; top: calc(100% + 10px); left: 50%; width: 270px; padding: 8px; display: grid; gap: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: 0 20px 54px oklch(10% .02 210 / .24); text-align: left; transform: translateX(-50%); }
.mac-download-menu[hidden] { display: none; }
.mac-download-menu a { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 9px; color: var(--fg); background: var(--surface-soft); text-decoration: none; }
.mac-download-menu a:hover { color: var(--surface); background: var(--accent-strong); }
.mac-download-menu strong { font-size: 14px; }
.mac-download-menu small { color: var(--muted); font-size: 11px; text-align: right; }
.mac-download-menu a:hover small { color: oklch(94% .02 180); }
.site-footer { padding: 46px 20px; background: var(--surface); }
.footer-shell { width: min(100%, var(--container)); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; }
.footer-shell > p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--fg); }
.footer-shell small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 1060px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 780px; }
  .product-stage { width: min(850px, 100%); margin: 0 auto; }
  .product-window { width: 100%; transform: none; }
  .feature-card-wide { grid-template-columns: .62fr 1.12fr 1fr; gap: 24px; }
  .steps-grid, .local-grid { gap: 60px; }
  .footer-shell { grid-template-columns: auto 1fr auto; }
  .footer-shell > p { display: none; }
}
@media (max-width: 820px) {
  .nav-shell { width: min(calc(100% - 32px), var(--container)); min-height: 68px; }
  .menu-toggle { position: relative; z-index: 2; width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; border: 0; border-radius: 50%; color: var(--fg); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 21px; height: 1.5px; display: block; background: currentColor; transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .primary-nav { position: fixed; top: 68px; right: 0; left: 0; padding: 18px 24px 26px; display: grid; gap: 4px; border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--bg) 96%, transparent); box-shadow: 0 16px 34px oklch(20% .02 220 / .08); backdrop-filter: blur(18px); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform 180ms ease, opacity 180ms ease; }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 0 4px; }
  .primary-nav .button-small { margin-top: 8px; }
  .split-heading { grid-template-columns: 1fr; gap: 26px; }
  .loop-track { grid-template-columns: 1fr 1fr; }
  .loop-track li:nth-child(2) { border-right: 0; }
  .loop-track li:nth-child(-n+2) { border-bottom: 1px solid oklch(100% 0 0 / .12); }
  .feature-card-wide { grid-template-columns: 1fr 1.2fr; }
  .feature-card-wide > .feature-index { grid-column: 1 / -1; }
  .steps-grid, .local-grid { grid-template-columns: 1fr; }
  .steps-intro { position: static; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; }
  .hero { min-height: auto; padding: 116px 0 72px; }
  .hero::before { width: 500px; height: 450px; top: -90px; right: -300px; }
  .hero-grid, .section-shell { width: min(calc(100% - 32px), var(--container)); }
  .hero-grid { gap: 48px; }
  .eyebrow { align-items: flex-start; line-height: 1.5; }
  h1 { max-width: 9ch; font-size: clamp(45px, 13vw, 60px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; justify-content: center; }
  .hero-meta { display: grid; gap: 5px; }
  .hero-meta span::after { display: none; }
  .product-stage { min-height: auto; }
  .memory-rail { top: -20px; left: 10px; }
  .context-card { right: 8px; bottom: -30px; min-width: 220px; }
  .window-bar { grid-template-columns: 1fr auto; }
  .window-bar > span { display: none; }
  .product-window figcaption { font-size: 11px; }
  .loop-section, .features-section, .steps-section, .local-section { padding: 82px 0; }
  .section-heading h2, .steps-intro h2, .local-copy h2 { font-size: clamp(36px, 10vw, 48px); }
  .loop-track { margin-top: 46px; grid-template-columns: 1fr; }
  .loop-track li { min-height: auto; padding: 28px 8px 30px 24px; border-right: 0; border-bottom: 1px solid oklch(100% 0 0 / .12); }
  .loop-track li:last-child { border-bottom: 0; }
  .loop-track li::before { left: 5px; }
  .loop-track strong { margin-top: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card-wide { grid-column: auto; min-height: 0; padding: 26px; }
  .feature-card-wide { display: block; }
  .feature-card h3, .feature-card-wide h3 { margin-top: 34px; font-size: 30px; }
  .memory-stack { margin-top: 36px; padding-right: 18px; }
  .feature-note { margin-top: 30px; }
  .steps-list li { grid-template-columns: 48px 1fr; gap: 12px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { min-height: 118px; }
  .download-section { padding: 18px 10px 10px; }
  .download-panel { min-height: 560px; padding: 74px 22px; border-radius: 18px; }
  .download-panel h1 { font-size: clamp(42px, 12vw, 58px); }
  .download-actions { width: 100%; flex-direction: column; gap: 8px; }
  .download-actions .button, .download-actions .text-link { width: 100%; justify-content: center; }
  .footer-shell { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .nav-shell, .hero-grid, .section-shell { width: min(calc(100% - 24px), var(--container)); }
  .brand span { font-size: 14px; }
  .hero-meta { font-size: 10px; }
  .memory-rail { max-width: calc(100% - 20px); overflow: hidden; white-space: nowrap; }
  .context-card { position: relative; right: auto; bottom: auto; width: calc(100% - 20px); margin: -10px auto 0; }
  .feature-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .product-window { transform: none; }
}


/* Top dark hero revision */
.hero-download { padding: 0; background: var(--dark); }
.hero-download .download-panel { width: 100%; min-height: min(860px, 100dvh); padding: 150px 30px 100px; border-radius: 0; }
.site-header:not(.is-scrolled) { border-color: oklch(100% 0 0 / .08); background: color-mix(in oklch, var(--dark) 82%, transparent); backdrop-filter: blur(14px); }
.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .primary-nav a,
.site-header:not(.is-scrolled) .menu-toggle { color: var(--surface); }
@media (max-width: 820px) {
  .site-header:not(.is-scrolled) .primary-nav.is-open { background: color-mix(in oklch, var(--dark) 96%, transparent); border-color: oklch(100% 0 0 / .08); }
  .site-header:not(.is-scrolled) .primary-nav.is-open a { color: var(--surface); }
}
@media (max-width: 760px) {
  .hero-download { padding: 0; }
  .hero-download .download-panel { min-height: 100dvh; padding: 126px 22px 78px; border-radius: 0; }
  .download-groups { width: 100%; }
  .download-button-row { width: 100%; flex-direction: column; }
  .download-button-row > .button, .mac-download, .mac-download > .button { width: 100%; }
  .mac-download-menu { position: static; width: 100%; margin-top: 8px; transform: none; }
}


/* Keep the second hero sentence on one line */
.hero-line-nowrap { display: inline-block; white-space: nowrap; }
@media (max-width: 760px) {
  .hero-download .download-panel h1 { max-width: none; font-size: clamp(28px, 8.2vw, 40px); }
}


/* Dark graph and light analysis pairing */
.feature-card-dark .graph-mini { color: oklch(78% 0.08 180); }
.feature-card-dark .graph-mini circle { fill: var(--dark); }
.analysis-flow { margin-top: 38px; }

/* Story simulation section */
.simulation-section { padding: 120px 0; background: var(--surface); }
.simulation-intro-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 88px; align-items: start; }
.simulation-intro { position: sticky; top: 122px; }
.simulation-intro h2 { margin-bottom: 24px; font-size: clamp(38px, 4vw, 56px); line-height: 1.12; letter-spacing: -.025em; }
.simulation-intro > p:not(.kicker) { max-width: 56ch; margin: 0 0 16px; color: var(--muted); }
.simulation-intro .simulation-lead { color: var(--fg); font-size: 18px; line-height: 1.75; }
.simulation-importance { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid var(--border); }
.simulation-importance span { color: var(--accent-strong); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.simulation-importance strong { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.35; }
.simulation-importance p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.simulation-world { overflow: hidden; border: 1px solid oklch(100% 0 0 / .09); border-radius: 18px; color: var(--surface); background: var(--dark); box-shadow: 0 28px 70px oklch(18% .035 205 / .16); }
.simulation-world-header { min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid oklch(100% 0 0 / .09); }
.simulation-world-header > div { display: flex; align-items: center; gap: 10px; }
.simulation-world-header strong { font-size: 13px; font-weight: 550; }
.simulation-world-header > span { color: var(--dark-muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
.world-status { width: 7px; height: 7px; border-radius: 50%; background: oklch(78% .08 180); box-shadow: 0 0 0 5px oklch(78% .08 180 / .12); }
.agent-lanes { padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-bottom: 1px solid oklch(100% 0 0 / .09); }
.agent-lane { min-width: 0; padding: 14px; border: 1px solid oklch(100% 0 0 / .1); background: oklch(100% 0 0 / .035); }
.agent-lane > span { color: var(--dark-muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
.agent-lane strong, .agent-lane small { display: block; }
.agent-lane strong { margin-top: 8px; font-size: 13px; font-weight: 550; }
.agent-lane small { margin-top: 3px; overflow: hidden; color: var(--dark-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.world-event-flow { padding: 26px; display: grid; gap: 14px; }
.world-event, .world-consequence { padding: 18px 20px; border: 1px solid oklch(100% 0 0 / .1); background: oklch(100% 0 0 / .035); }
.world-event > span, .world-consequence > span { color: var(--dark-muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.world-event strong, .world-consequence strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.world-event p { margin: 4px 0 0; color: var(--dark-muted); font-size: 12px; }
.world-reactions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.world-reactions span { min-height: 52px; padding: 10px; display: grid; place-items: center; border: 1px solid oklch(100% 0 0 / .1); color: var(--dark-muted); font-size: 11px; text-align: center; }
.simulation-world-footer { min-height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid oklch(100% 0 0 / .09); color: var(--dark-muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
.simulation-modes { margin-top: 84px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.simulation-modes article { min-height: 248px; padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.simulation-modes article > span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.simulation-modes h3 { margin: 44px 0 12px; font-size: 23px; line-height: 1.2; letter-spacing: -.015em; }
.simulation-modes p { margin: 0; color: var(--muted); font-size: 14px; }
.simulation-capability-heading { max-width: 800px; margin: 108px 0 48px; }
.simulation-capability-heading .kicker { margin-bottom: 18px; }
.simulation-capability-heading h3 { margin-bottom: 18px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.12; letter-spacing: -.025em; }
.simulation-capability-heading > p:last-child { max-width: 68ch; margin: 0; color: var(--muted); }
.simulation-capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.simulation-capability-grid article { min-height: 320px; padding: 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.simulation-capability-grid article > span { color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.simulation-capability-grid h4 { margin: 58px 0 15px; color: var(--fg); font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.simulation-capability-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.simulation-return { margin-top: 100px; padding: 60px; display: grid; grid-template-columns: .84fr 1.16fr; gap: 80px; align-items: center; color: var(--surface); background: var(--dark); }
.simulation-return-copy .kicker { margin-bottom: 18px; color: oklch(78% .08 180); }
.simulation-return-copy h3 { margin-bottom: 18px; color: var(--surface); font-size: clamp(32px, 3vw, 46px); line-height: 1.12; letter-spacing: -.02em; }
.simulation-return-copy > p:last-child { margin: 0; color: var(--dark-muted); }
.simulation-pipeline { margin: 0; padding: 0; border-top: 1px solid oklch(100% 0 0 / .14); list-style: none; }
.simulation-pipeline li { min-height: 62px; display: grid; grid-template-columns: 54px 1fr; align-items: center; border-bottom: 1px solid oklch(100% 0 0 / .14); }
.simulation-pipeline span { color: var(--dark-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.simulation-pipeline strong { color: var(--surface); font-size: 14px; font-weight: 510; }
@media (max-width: 1060px) {
  .simulation-intro-grid { grid-template-columns: 1fr; gap: 56px; }
  .simulation-intro { position: static; }
  .simulation-intro > p:not(.kicker) { max-width: 68ch; }
  .simulation-modes { grid-template-columns: 1fr 1fr; }
  .simulation-capability-grid { grid-template-columns: 1fr 1fr; }
  .simulation-return { gap: 52px; }
}
@media (max-width: 760px) {
  .simulation-section { padding: 82px 0; }
  .simulation-intro h2 { font-size: clamp(36px, 10vw, 48px); }
  .simulation-intro .simulation-lead { font-size: 16px; }
  .simulation-world { border-radius: 14px; }
  .simulation-world-header, .simulation-world-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 12px; padding-bottom: 12px; }
  .agent-lanes { grid-template-columns: 1fr 1fr; padding: 14px; }
  .world-event-flow { padding: 16px; }
  .world-reactions { grid-template-columns: 1fr 1fr; }
  .simulation-modes { margin-top: 60px; grid-template-columns: 1fr; }
  .simulation-modes article { min-height: 210px; }
  .simulation-capability-heading { margin-top: 80px; }
  .simulation-capability-grid { grid-template-columns: 1fr; }
  .simulation-capability-grid article { min-height: 280px; padding: 26px; }
  .simulation-return { margin-top: 72px; padding: 42px 24px; grid-template-columns: 1fr; gap: 40px; }
}






