:root {
  --paper: #f3f1e9;
  --paper-2: #e9e6da;
  --ink: #111514;
  --muted: #646963;
  --line: #d2d0c6;
  --blue: #2859f6;
  --blue-dark: #173bc3;
  --lime: #d9ff63;
  --mint: #bfffd7;
  --night: #0d1519;
  --white: #fffef9;
  --danger: #ee6a4b;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(22, 27, 25, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, canvas { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 112px 0; }
.section-pad-small { padding: 72px 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -50px; background: var(--ink); color: white; padding: 12px 16px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(17, 21, 20, 0.12); background: rgba(243, 241, 233, 0.9); backdrop-filter: blur(18px); }
.nav-shell { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 20px; font-weight: 760; letter-spacing: -0.04em; }
.brand-mark { position: relative; width: 27px; height: 27px; display: inline-block; border: 1.5px solid currentColor; border-radius: 50%; }
.brand-mark i { position: absolute; left: 7px; width: 2px; background: currentColor; border-radius: 2px; bottom: 6px; }
.brand-mark i:nth-child(1) { height: 6px; }
.brand-mark i:nth-child(2) { left: 12px; height: 13px; }
.brand-mark i:nth-child(3) { left: 17px; height: 9px; }
.site-nav { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.nav-link { padding: 9px 16px; color: var(--muted); font-size: 14px; border-radius: 999px; transition: 160ms ease; }
.nav-link:hover, .nav-link.is-active { background: var(--ink); color: var(--white); }
.nav-actions { justify-self: end; display: flex; gap: 16px; align-items: center; }
.text-button { font-size: 13px; font-weight: 650; }
.language-switch { min-width: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; transition: 160ms ease; }
.language-switch:hover { border-color: var(--blue); color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; }
.nav-toggle span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 720; font-size: 14px; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 38px; padding: 0 15px; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 8px 24px rgba(40, 89, 246, 0.24); }
.button-primary:hover { background: var(--blue-dark); }
.button-dark { color: white; background: var(--ink); }
.button-light { color: var(--ink); background: var(--lime); }
.button-ghost { border-color: rgba(255,255,255,.3); color: white; background: rgba(255,255,255,.05); }
.button-ghost-dark { border-color: var(--ink); background: transparent; }
.button-full { width: 100%; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.arrow-link { font-weight: 720; color: var(--blue); }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 780; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(217,255,99,.12); }
.eyebrow { color: var(--blue); }
.eyebrow.light { color: var(--lime); }

.hero { min-height: 750px; display: flex; align-items: center; overflow: hidden; background: var(--night); color: white; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40% auto auto 42%; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(40,89,246,.38), transparent 67%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, transparent, #000 50%, #000); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.hero-copy h1 { margin: 26px 0 25px; font-size: clamp(50px, 6.2vw, 86px); line-height: .98; letter-spacing: -.075em; font-weight: 630; }
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 650px; margin: 0; color: #afb9ba; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.trust-line { display: flex; gap: 24px; margin-top: 38px; color: #899596; font-size: 12px; }
.trust-line span { display: flex; align-items: center; gap: 8px; }
.trust-line i { font-style: normal; color: var(--lime); font-size: 9px; }
.hero-console { border: 1px solid rgba(255,255,255,.15); background: rgba(13, 24, 29, .85); box-shadow: 0 35px 100px rgba(0,0,0,.4); border-radius: 16px; overflow: hidden; transform: rotate(1.2deg); }
.console-head { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 11px; color: #8d9b9d; }
.console-head > span { display: flex; gap: 5px; }
.console-head i { width: 7px; height: 7px; border-radius: 50%; background: #344347; }
.console-head strong { color: #dbe2e2; font-weight: 500; }
.console-head small { justify-self: end; color: #7cffb2; font-size: 8px; letter-spacing: .12em; }
.console-prompt { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.console-prompt > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--ink); background: var(--lime); font-weight: 800; font-size: 11px; }
.console-prompt p { margin: 2px 0 0; font-size: 14px; line-height: 1.65; color: #d2dbdc; }
.console-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 24px; background: rgba(255,255,255,.025); }
.console-route div { display: grid; gap: 5px; }
.console-route small, .console-result small { font-size: 8px; letter-spacing: .16em; color: #6e7d80; }
.console-route strong { font-size: 11px; }
.console-route b { color: #46575b; font-size: 11px; }
.console-result { display: grid; grid-template-columns: 86px 1fr; gap: 24px; align-items: center; padding: 30px 24px; }
.console-result h3 { margin: 5px 0 8px; font-size: 20px; }
.console-result p { margin: 0; color: #819093; font-size: 12px; line-height: 1.6; }
.signal-orbit { position: relative; width: 78px; height: 78px; border: 1px solid #39515a; border-radius: 50%; display: grid; place-items: center; }
.signal-orbit::before { content: ""; position: absolute; inset: 13px; border: 1px dashed #3557b4; border-radius: 50%; }
.signal-orbit span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); top: 6px; left: 35px; }
.signal-orbit span:nth-child(2) { background: #5f85ff; top: auto; bottom: 9px; left: 11px; }
.signal-orbit b { position: relative; color: var(--lime); font-size: 20px; }
.console-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; background: #101e23; color: #77888b; font-size: 10px; }
.console-footer b { color: white; }
.safe-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; color: #10251b; background: var(--mint); border-radius: 3px; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.signal-strip { color: white; background: var(--blue); overflow: hidden; }
.signal-strip-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; font-size: 10px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.signal-strip-inner i { height: 1px; flex: 1; background: rgba(255,255,255,.35); }

.section-heading { margin-bottom: 46px; }
.split-heading, .market-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.section-heading h2 { margin: 14px 0 0; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.06; letter-spacing: -.055em; font-weight: 610; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.market-heading > div:last-child { display: grid; gap: 20px; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.path-card { min-height: 485px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.path-card:last-child { border-right: 0; }
.path-card::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; right: -100px; top: -100px; border: 40px solid rgba(17,21,20,.04); }
.path-index { font: 500 58px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(17,21,20,.16); letter-spacing: -.08em; }
.path-label { display: block; margin: 36px 0 14px; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.path-card h3 { margin: 0 0 16px; max-width: 310px; font-size: 25px; line-height: 1.22; letter-spacing: -.035em; }
.path-card p { color: var(--muted); line-height: 1.72; font-size: 14px; }
.path-card ul { list-style: none; margin: 18px 0 30px; padding: 0; display: grid; gap: 11px; font-size: 13px; }
.path-card li::before { content: "+"; color: var(--blue); margin-right: 9px; font-weight: 800; }
.path-card > a { margin-top: auto; font-size: 13px; font-weight: 750; color: var(--blue); }
.path-hosted { background: var(--white); }
.path-local { background: #e6f0ff; }
.path-api { color: white; background: var(--ink); }
.path-api .path-index { color: rgba(255,255,255,.15); }
.path-api p { color: #a2aba8; }
.path-api li::before, .path-api > a { color: var(--lime); }

.strategy-preview-section { background: var(--white); }
.strategy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strategy-card { min-width: 0; border: 1px solid var(--line); background: var(--white); transition: transform 180ms ease, box-shadow 180ms ease; }
.strategy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.strategy-card-main { min-height: 395px; display: flex; flex-direction: column; padding: 23px; }
.strategy-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.strategy-card-top .eyebrow { color: var(--muted); letter-spacing: .1em; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.status-dot i { width: 6px; height: 6px; border-radius: 50%; background: #25b86f; box-shadow: 0 0 0 4px rgba(37,184,111,.12); }
.strategy-card h3 { margin: 30px 0 12px; font-size: 24px; letter-spacing: -.035em; line-height: 1.15; }
.strategy-card p { min-height: 64px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-row span { padding: 5px 8px; border: 1px solid var(--line); color: #525852; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.strategy-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 22px; color: var(--muted); font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.strategy-meta span { padding-top: 8px; border-top: 1px solid var(--line); }
.empty-performance { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.empty-performance strong { color: var(--ink); font-weight: 600; }
.strategy-card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.strategy-card-actions a { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 720; }
.strategy-card-actions a + a { border-left: 1px solid var(--line); }
.strategy-card-actions a:hover { color: white; background: var(--blue); }
.strategy-planned-action { grid-column: 1 / -1; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 16px; color: #80692b; background: #fff6d9; font-size: 10px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.runtime-icon { display: inline-block; position: relative; width: 17px; height: 13px; }
.cloud-icon::before { content: ""; position: absolute; left: 2px; bottom: 0; width: 13px; height: 8px; border: 1.5px solid currentColor; border-radius: 7px; }
.cloud-icon::after { content: ""; position: absolute; left: 6px; top: 0; width: 7px; height: 7px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; background: inherit; }
.local-icon::before { content: ""; position: absolute; inset: 0 1px 3px; border: 1.5px solid currentColor; border-radius: 2px; }
.local-icon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; box-shadow: 5px -2px 0 -0.5px currentColor; }

.workflow-section { color: white; background: var(--blue); }
.workflow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.workflow-copy { position: sticky; top: 120px; align-self: start; }
.workflow-copy h2 { margin: 15px 0 22px; font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -.055em; font-weight: 610; }
.workflow-copy p { color: #bac9ff; line-height: 1.8; }
.workflow-copy .button { margin-top: 22px; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.28); }
.workflow-list li { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.workflow-list > li > span { color: var(--lime); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-list h3 { margin: 0 0 9px; font-size: 24px; }
.workflow-list p { margin: 0; color: #c7d2ff; line-height: 1.7; }
.advisor-section { background: var(--paper-2); }
.advisor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.advisor-grid h2 { margin: 15px 0 20px; font-size: clamp(38px, 4vw, 57px); line-height: 1.05; letter-spacing: -.05em; }
.advisor-grid > div > p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.advisor-grid > div > .ai-entry-url { display: grid; gap: 6px; margin-top: 24px; padding: 18px; border: 1px solid #cbd5f7; border-radius: 6px; background: rgba(255,255,255,.62); }
.ai-entry-url span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.ai-entry-url a { width: fit-content; max-width: 100%; color: var(--ink); font: 700 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.ai-entry-url a:hover { color: var(--blue); }
.ai-entry-url small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.advisor-form { padding: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.advisor-form label, .backtest-form label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.advisor-form textarea, .advisor-form input, .advisor-form select, .backtest-form input, .backtest-form select { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #faf9f4; color: var(--ink); padding: 13px; outline: none; text-transform: none; letter-spacing: normal; }
.advisor-form textarea:focus, .advisor-form input:focus, .advisor-form select:focus, .backtest-form input:focus, .backtest-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,89,246,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.advisor-result:not(:empty) { margin-top: 16px; padding: 15px; background: #edf1ff; font-size: 13px; line-height: 1.6; }
.advisor-result a { color: var(--blue); font-weight: 750; }

.site-footer { padding: 72px 0 26px; color: white; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; }
.footer-brand { color: white; }
.footer-grid p { max-width: 330px; color: #7f8c8e; line-height: 1.65; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 12px; font-size: 12px; color: #849093; }
.footer-grid strong { margin-bottom: 8px; color: white; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 70px; padding-top: 20px; border-top: 1px solid #273237; color: #657173; font-size: 10px; }

/* Strategy marketplace */
.market-hero { color: white; background: var(--night); }
.market-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; align-items: end; }
.market-hero h1, .docs-hero h1 { margin: 24px 0 0; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.01; letter-spacing: -.065em; font-weight: 600; }
.market-hero h1 em, .docs-hero h1 em { color: var(--lime); font-style: normal; }
.market-hero p { margin: 0; color: #a7b0b1; line-height: 1.8; font-size: 16px; }
.market-toolbar-wrap { position: sticky; top: 72px; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(243,241,233,.96); backdrop-filter: blur(15px); }
.market-toolbar { min-height: 82px; display: grid; grid-template-columns: 1.1fr 1.8fr auto; gap: 18px; align-items: center; }
.search-box { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); }
.search-box span { width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; }
.search-box span::after { content: ""; width: 6px; height: 1.5px; position: absolute; right: -5px; bottom: -2px; background: var(--ink); transform: rotate(45deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-group button { padding: 8px 11px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.filter-group button:hover, .filter-group button.is-active { border-color: var(--ink); color: var(--ink); }
.runtime-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.runtime-filter select { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 7px 20px 7px 4px; outline: 0; }
.market-listing { min-height: 620px; }
.listing-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; color: var(--muted); font-size: 12px; }
.listing-head p { margin: 0; }
.listing-head strong { color: var(--ink); font-size: 26px; margin-right: 6px; }
.no-results { padding: 100px 20px; text-align: center; color: var(--muted); }
.no-results strong { color: var(--ink); font-size: 24px; }
.market-note { color: white; background: var(--blue); }
.market-note .shell { min-height: 120px; display: grid; grid-template-columns: 190px 1fr auto; gap: 30px; align-items: center; }
.market-note span { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.market-note p { max-width: 800px; line-height: 1.7; }
.market-note a { color: var(--lime); font-size: 11px; font-weight: 760; white-space: nowrap; }

/* Strategy detail */
.detail-hero { color: white; background: var(--night); }
.breadcrumbs { display: flex; gap: 9px; color: #7d898b; font-size: 11px; }
.breadcrumbs a:hover { color: var(--lime); }
.detail-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-top: 52px; }
.detail-badges { display: flex; gap: 8px; align-items: center; }
.detail-badges > span:not(.safe-badge) { padding: 5px 8px; border: 1px solid #344145; color: #96a1a3; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.detail-hero h1 { margin: 20px 0; font-size: clamp(48px, 6vw, 80px); line-height: .98; letter-spacing: -.065em; font-weight: 610; }
.detail-hero p { max-width: 720px; color: #aeb8b9; font-size: 17px; line-height: 1.75; }
.tag-row-large span { border-color: #3a4649; color: #9ba6a8; }
.detail-actions { display: grid; gap: 10px; padding-bottom: 5px; }
.detail-actions small { margin-top: 6px; text-align: center; color: #748184; font-size: 9px; }
.planned-runtime { padding: 22px; border: 1px solid #526066; background: #172328; }
.planned-runtime strong { color: var(--lime); font-size: 14px; }
.planned-runtime p { margin: 9px 0 15px; color: #98a5a7; font-size: 12px; line-height: 1.65; }
.planned-runtime a { color: white; font-size: 11px; font-weight: 750; }
.detail-summary { border-bottom: 1px solid var(--line); background: var(--white); }
.summary-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); }
.summary-grid > div { display: grid; align-content: center; gap: 8px; padding: 0 25px; border-right: 1px solid var(--line); }
.summary-grid > div:first-child { border-left: 1px solid var(--line); }
.summary-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.summary-grid strong { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 65px; align-items: start; }
.detail-main { display: grid; gap: 70px; min-width: 0; }
.content-block h2, .related-section h2 { margin: 12px 0 25px; font-size: 39px; letter-spacing: -.045em; }
.thesis { margin: 0; max-width: 800px; font-size: 24px; line-height: 1.55; letter-spacing: -.02em; }
.warning-box { margin-top: 35px; padding: 22px 25px; border-left: 3px solid var(--danger); background: #eeeae1; }
.warning-box strong { font-size: 12px; }
.warning-box ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.stop-box { margin-top: 14px; padding: 22px 25px; border-left: 3px solid var(--blue); background: #e9edfa; }
.stop-box strong { font-size: 12px; }
.stop-box ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-sidebar { position: sticky; top: 120px; display: grid; gap: 14px; }
.sidebar-card { padding: 23px; border: 1px solid var(--line); background: var(--white); }
.sidebar-card > div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.sidebar-card > div span { color: var(--muted); }
.sidebar-card > div span small { display: block; max-width: 165px; margin-top: 5px; color: #8b918c; font: 9px/1.45 Inter, ui-sans-serif, sans-serif; }
.sidebar-card > small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.6; }
.runtime-card { display: grid; gap: 12px; }
.runtime-card > a { display: grid; grid-template-columns: 1fr auto; padding: 14px; background: var(--paper); }
.runtime-card b, .runtime-card small { display: block; }
.runtime-card b { margin-bottom: 4px; font-size: 13px; }
.runtime-card small { color: var(--muted); font-size: 10px; }
.runtime-card i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--blue); font-style: normal; }
.block-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; }
.data-status { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 14px; border: 1px solid var(--line); background: var(--white); }
.metric-grid > div { min-height: 94px; display: grid; align-content: center; gap: 10px; padding: 18px; border-right: 1px solid var(--line); }
.metric-grid > div:last-child { border-right: 0; }
.metric-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { font: 500 25px ui-monospace, SFMono-Regular, Menlo, monospace; }
.chart-shell { position: relative; height: 330px; border: 1px solid var(--line); background-color: #10181c; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 45px 45px; }
.chart-shell canvas { width: 100%; height: 100%; display: none; }
.chart-shell.has-data canvas { display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.chart-shell.has-data .chart-empty { display: none; }
.chart-empty > span { width: 52px; height: 32px; margin-bottom: 18px; border-left: 1px solid #546164; border-bottom: 1px solid #546164; position: relative; }
.chart-empty > span::after { content: ""; position: absolute; width: 55px; height: 20px; left: 2px; top: 2px; border-top: 2px solid var(--lime); transform: skewY(-18deg); }
.chart-empty strong { color: white; font-size: 14px; }
.chart-empty p { max-width: 390px; margin: 8px 0 0; color: #758184; font-size: 11px; line-height: 1.6; }
.backtest-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 9px; align-items: end; margin-top: 14px; }
.backtest-form .button { min-height: 43px; }
.form-notice { color: var(--muted); font-size: 10px; line-height: 1.6; }
.related-section { border-top: 1px solid var(--line); background: var(--paper-2); }
.section-heading.compact { display: flex; justify-content: space-between; align-items: end; }

/* Runtime chooser */
.run-hero { color: white; background: var(--night); }
.run-title { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-top: 45px; }
.run-title h1 { margin: 12px 0; font-size: clamp(42px, 5vw, 66px); letter-spacing: -.055em; }
.run-title p { margin: 0; color: #9eaaac; }
.mode-tabs { display: flex; padding: 4px; border: 1px solid #394548; border-radius: 6px; }
.mode-tabs a { min-width: 130px; padding: 12px 16px; color: #829092; text-align: center; font-size: 12px; }
.mode-tabs a.is-active { color: var(--ink); background: var(--lime); }
.run-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 60px; align-items: start; }
.run-layout > aside { position: sticky; top: 120px; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.run-layout > aside > span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.run-layout > aside h3 { margin: 13px 0 24px; font-size: 20px; }
.run-layout dl { margin: 0; }
.run-layout dl div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 11px; }
.run-layout dt { color: var(--muted); }
.run-layout dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.run-layout > aside a { display: block; margin-top: 22px; color: var(--blue); font-size: 11px; font-weight: 750; }
.run-panel { padding: 36px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.run-panel-head { display: grid; grid-template-columns: 72px 1fr; gap: 23px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.runtime-large { width: 68px; height: 56px; display: inline-block; color: white; background: var(--blue); border-radius: 8px; }
.runtime-large.cloud-icon::before { width: 37px; height: 23px; left: 15px; bottom: 11px; border-width: 2px; border-radius: 15px; }
.runtime-large.cloud-icon::after { width: 19px; height: 18px; left: 27px; top: 10px; border-width: 2px; }
.runtime-large.local-icon::before { inset: 11px 12px 17px; border-width: 2px; }
.runtime-large.local-icon::after { left: 9px; right: 9px; bottom: 12px; height: 2px; box-shadow: 24px -5px 0 -0.2px currentColor; }
.run-panel h2 { margin: 8px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.run-panel-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.run-steps { margin: 30px 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.run-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 15px; }
.run-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.run-steps strong { font-size: 13px; }
.run-steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.download-row { position: relative; z-index: 2; display: flex; gap: 9px; }
.runtime-download-more { display: inline-block; margin-top: 13px; color: var(--blue); font-size: 11px; font-weight: 720; }
.code-window { position: relative; margin: 22px 0; color: #d8e0e0; background: var(--night); border: 1px solid #2a373b; overflow: hidden; }
.code-window > div { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid #2a373b; }
.code-window > div span { width: 6px; height: 6px; border-radius: 50%; background: #425054; }
.code-window > div b { margin-left: auto; color: #647276; font-size: 9px; font-weight: 500; }
.code-window pre { margin: 0; padding: 20px; overflow: auto; font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-window > button { position: absolute; right: 10px; top: 48px; border: 1px solid #445155; color: #9aa6a8; background: #152126; padding: 6px 8px; font-size: 9px; cursor: pointer; }
.run-panel details { border: 1px solid var(--line); }
.run-panel summary { padding: 15px; cursor: pointer; font-size: 12px; font-weight: 700; }
.run-panel details pre { max-height: 390px; margin: 0; padding: 18px; overflow: auto; background: #eeeae1; font: 10px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.mode-choice article { padding: 20px; border: 1px solid var(--line); }
.mode-choice article.is-selected { border: 2px solid var(--blue); background: #f1f4ff; }
.mode-choice span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.mode-choice h3 { margin: 9px 0; font-size: 19px; }
.mode-choice p { min-height: 60px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.mode-choice strong { font-size: 10px; }
.hosted-status { margin: 26px 0; padding: 18px; border: 1px solid #e6c76d; background: #fff6d9; }
.hosted-status span { display: flex; align-items: center; gap: 8px; color: #7b6421; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.hosted-status i { width: 7px; height: 7px; border-radius: 50%; background: #d6a51b; }
.hosted-status strong { display: block; margin-top: 10px; }
.hosted-status p { margin: 6px 0 0; color: #766c4c; font-size: 11px; line-height: 1.6; }

/* Documentation */
.docs-hero { color: white; background: var(--blue); }
.docs-hero .kicker i { background: white; }
.docs-hero p { max-width: 720px; color: #c9d3ff; font-size: 16px; line-height: 1.8; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 740px); gap: 90px; align-items: start; justify-content: center; }
.docs-nav { position: sticky; top: 110px; display: grid; gap: 8px; padding-right: 30px; border-right: 1px solid var(--line); }
.docs-nav strong { margin: 14px 0 4px; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.docs-nav a { padding: 5px 0; color: var(--muted); font-size: 12px; }
.docs-nav a:hover { color: var(--blue); }
.docs-content { min-width: 0; }
.docs-content section { scroll-margin-top: 110px; padding: 0 0 65px; margin-bottom: 65px; border-bottom: 1px solid var(--line); }
.docs-content section:last-child { border-bottom: 0; }
.doc-index { color: var(--blue); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-content h2 { margin: 10px 0 24px; font-size: 38px; letter-spacing: -.045em; }
.docs-content h3 { margin-top: 28px; font-size: 18px; }
.docs-content p, .docs-content li { color: #4f5651; font-size: 14px; line-height: 1.85; }
.docs-content code { color: var(--blue); font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-content ol, .docs-content ul { padding-left: 22px; }
.docs-callout { margin-top: 25px; padding: 20px; border-left: 3px solid var(--blue); background: #e9edfa; }
.docs-callout.warning { border-color: var(--danger); background: #f3e7df; }
.docs-callout strong { font-size: 12px; }
.docs-callout p { margin: 8px 0 0; font-size: 12px; }
.compare-table { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border: 1px solid var(--line); }
.compare-table > div { display: grid; gap: 10px; padding: 20px; }
.compare-table > div + div { border-left: 1px solid var(--line); }
.compare-table strong { font-size: 16px; }
.compare-table span { color: var(--muted); font-size: 11px; }
.endpoint-list { display: grid; border: 1px solid var(--line); }
.endpoint-list div { display: grid; grid-template-columns: 55px 1fr 1fr; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.endpoint-list div:last-child { border: 0; }
.endpoint-list b { color: var(--blue); font-size: 10px; }
.endpoint-list code { color: var(--ink); }
.endpoint-list span { color: var(--muted); font-size: 11px; }

/* Downloads */
.downloads-hero { color: white; background: linear-gradient(135deg, #132a8a, var(--blue) 58%, #4969df); }
.downloads-hero .kicker i { background: var(--lime); }
.downloads-hero p { max-width: 760px; color: #dce3ff; font-size: 16px; line-height: 1.8; }
.framework-directory { background: #e9ece5; }
.framework-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.framework-card { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.framework-card-head { display: flex; justify-content: space-between; gap: 16px; color: var(--blue); font-size: 9px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.framework-card-head code { color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; text-transform: none; }
.framework-card h2 { margin: 22px 0 12px; font-size: 30px; letter-spacing: -.04em; }
.framework-card > p { min-height: 72px; color: var(--muted); line-height: 1.7; }
.framework-meta { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.framework-meta strong { color: var(--ink); }
.framework-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.framework-card li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #e5e3da; font-size: 11px; }
.framework-card li a { font-weight: 700; }
.framework-card li a:hover { color: var(--blue); }
.framework-card li span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.release-section { background: var(--paper); }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.release-card { padding: 28px; border: 1px solid var(--line); background: white; box-shadow: 0 18px 50px rgba(28, 36, 67, .08); }
.release-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.release-card h2 { margin: 8px 0 0; font-size: 30px; letter-spacing: -.04em; }
.release-card > p { min-height: 52px; color: var(--muted); line-height: 1.65; }
.release-status { padding: 7px 10px; border: 1px solid #e6c76d; color: #7b6421; background: #fff6d9; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.release-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border: 1px solid var(--line); }
.release-card dl div { padding: 12px; border-right: 1px solid var(--line); }
.release-card dl div:last-child { border: 0; }
.release-card dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.release-card dd { margin: 6px 0 0; font-size: 12px; font-weight: 700; }
.release-card details { margin-top: 20px; color: var(--muted); font-size: 11px; }
.release-card details code { display: block; margin-top: 10px; padding: 10px; overflow-wrap: anywhere; background: #f1f1ec; color: var(--ink); }
.release-empty { padding: 50px; border: 1px dashed var(--line); text-align: center; background: rgba(255,255,255,.5); }
.release-empty p { color: var(--muted); }
.release-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 42px 0; border: 1px solid var(--line); background: var(--line); }
.release-guide > div { padding: 24px; background: var(--paper); }
.release-guide h3 { margin: 10px 0; }
.release-guide p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.release-guide code { color: var(--blue); }

/* Public AI advisor context */
.context-hero { color: white; background: var(--night); }
.context-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.context-hero h1 { margin: 24px 0; font-size: clamp(48px, 6vw, 79px); line-height: 1; letter-spacing: -.065em; font-weight: 610; }
.context-hero h1 em { color: var(--lime); font-style: normal; }
.context-hero p { max-width: 680px; color: #aeb8b9; font-size: 17px; line-height: 1.75; }
.context-handoff { padding: 26px; border: 1px solid #324148; background: #101c21; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.context-handoff > span { color: var(--lime); font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.context-handoff pre { min-height: 240px; margin: 20px 0; white-space: pre-wrap; color: #dce4e5; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.context-handoff small { color: #738287; }
.context-native { background: #edf0e9; }
.context-native-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.context-native h2 { margin: 14px 0 22px; font-size: clamp(38px, 4.5vw, 61px); line-height: 1.02; letter-spacing: -.055em; }
.context-native p { color: var(--muted); line-height: 1.75; }
.native-steps { display: grid; gap: 1px; margin: 28px 0 20px; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.native-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 14px 16px; background: var(--white); color: #4f5651; font-size: 12px; line-height: 1.55; }
.native-steps span { color: var(--blue); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.native-boundary { padding: 16px 18px; border-left: 3px solid #967315; background: #fff3c7; color: #584916 !important; font-size: 12px; }
.native-prompt-card { padding: 24px; border: 1px solid #243238; background: var(--ink); box-shadow: 0 24px 70px rgba(18,31,36,.18); }
.native-prompt-card > div { display: flex; gap: 12px; align-items: center; color: #7d8b90; font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.native-prompt-card > div i { color: #67757a; font-style: normal; }
.native-prompt-card > div strong { padding: 6px 9px; color: var(--ink); background: var(--lime); }
.native-prompt-card pre { min-height: 330px; margin: 22px 0; white-space: pre-wrap; color: #e0e7e8; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.native-question-map { margin-top: 72px; }
.native-question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.native-question-card { min-height: 215px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.native-question-card:nth-child(3n) { border-right: 0; }
.native-question-card > div { display: flex; justify-content: space-between; gap: 12px; color: var(--blue); font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.native-question-card > div small { color: #8a7663; text-transform: none; }
.native-question-card h3 { min-height: 48px; margin: 22px 0 14px; font-size: 16px; line-height: 1.45; }
.native-question-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.native-question-card li { padding: 7px 9px; border: 1px solid #cbd1c9; background: var(--paper-2); font-size: 10px; }
.context-protocol { background: var(--white); }
.context-protocol-grid { display: grid; grid-template-columns: 1fr .86fr; gap: 90px; }
.context-protocol h2 { margin: 12px 0 25px; font-size: 42px; letter-spacing: -.045em; }
.context-protocol ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.9; }
.context-rule-card { padding: 28px; border-left: 3px solid var(--blue); background: #e9edfa; }
.context-rule-card > strong { font-size: 14px; }
.context-rule-card ul { padding-left: 18px; color: #4f5651; font-size: 13px; line-height: 1.8; }
.context-rule-card a { color: var(--blue); font-size: 12px; font-weight: 750; }
.context-builder { background: var(--paper-2); }
.context-builder form { display: grid; gap: 36px; }
.context-question { margin: 0; padding: 0; border: 0; }
.context-question legend { width: 100%; display: flex; gap: 14px; align-items: center; margin-bottom: 15px; font-size: 18px; font-weight: 720; }
.context-question legend span { color: var(--blue); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.context-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.context-question:nth-child(n+3) .context-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.context-option { min-height: 136px; display: grid; align-content: start; gap: 9px; padding: 17px; text-align: left; border: 1px solid var(--line); color: var(--ink); background: var(--white); cursor: pointer; transition: border-color 150ms ease, transform 150ms ease, background 150ms ease; }
.context-option:hover { transform: translateY(-2px); border-color: #8e9aa0; }
.context-option.is-selected { border: 2px solid var(--blue); background: #eef2ff; box-shadow: inset 0 0 0 2px rgba(40,89,246,.07); }
.context-option strong { font-size: 14px; }
.context-option span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.context-option-status { width: fit-content; padding: 3px 5px; color: #765c18; background: #fff0bb; font-size: 8px; letter-spacing: .08em; }
.context-submit { justify-self: start; }
.context-results { display: grid; gap: 12px; min-height: 74px; }
.context-results > p { margin: 0; padding: 20px; color: var(--muted); border: 1px dashed var(--line); }
.context-result-message { color: var(--ink) !important; border-style: solid !important; border-left: 3px solid var(--blue) !important; background: white; }
.context-result-message.is-error { border-left-color: var(--danger) !important; }
.context-recommendation { border: 1px solid var(--line); background: white; }
.context-recommendation > div:first-child { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.context-recommendation > div:first-child span { color: var(--blue); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.context-recommendation h3 { margin: 0; font-size: 20px; }
.context-recommendation code { color: var(--muted); font-size: 10px; }
.context-recommendation-notes { display: grid; grid-template-columns: 1fr 1fr; }
.context-recommendation-notes section { padding: 20px; }
.context-recommendation-notes section + section { border-left: 1px solid var(--line); }
.context-recommendation-notes strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.context-recommendation-notes ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.context-recommendation footer { display: flex; gap: 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.context-recommendation footer a { color: var(--blue); font-size: 11px; font-weight: 750; }
.context-catalog { background: var(--white); }
.context-strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.context-strategy { min-height: 230px; display: flex; flex-direction: column; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-strategy:nth-child(2n) { border-right: 0; }
.context-strategy > div { display: flex; justify-content: space-between; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.context-strategy h3 { margin: 24px 0 9px; font-size: 21px; }
.context-strategy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.context-strategy footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; }
.context-strategy footer code { color: var(--muted); font-size: 9px; }
.context-strategy footer a { color: var(--blue); font-size: 11px; font-weight: 750; }
.context-upgrade { color: white; background: var(--blue); }
.context-upgrade .eyebrow { color: var(--lime); }
.context-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.25); }
.context-next-step { min-height: 225px; padding: 24px; display: flex; flex-direction: column; background: var(--blue); }
.context-next-step > span { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.context-next-step h3 { margin: 20px 0 10px; font-size: 20px; }
.context-next-step p { color: #cbd5ff; font-size: 12px; line-height: 1.65; }
.context-next-step a, .context-next-step small { margin-top: auto; color: white; font-size: 11px; font-weight: 750; }
.context-next-step[data-availability="planned"] { background: #1b43c2; }

.reveal { animation: rise .6s ease both; }
.reveal-delay { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .site-nav, .nav-actions { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .site-header.nav-open .site-nav { display: grid; position: absolute; left: 24px; right: 24px; top: 78px; padding: 10px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); }
  .site-header.nav-open .nav-actions { display: flex; position: absolute; left: 34px; right: 34px; top: 280px; padding: 12px 0 20px; background: var(--paper); }
  .hero-grid, .split-heading, .market-heading, .market-hero-grid, .detail-hero-grid, .advisor-grid, .context-hero-grid, .context-native-grid, .context-protocol-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-console { max-width: 620px; transform: none; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
  .strategy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: 1fr; gap: 60px; }
  .workflow-copy { position: static; }
  .market-toolbar { grid-template-columns: 1fr auto; padding: 16px 0; }
  .filter-group { grid-column: 1 / -1; grid-row: 2; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .run-layout { grid-template-columns: 1fr; }
  .run-layout > aside { position: static; }
  .docs-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 45px; }
  .release-grid { grid-template-columns: 1fr; }
  .framework-grid { grid-template-columns: 1fr; }
  .context-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .native-question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-question-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .native-question-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 76px 0; }
  .section-pad-small { padding: 50px 0; }
  .hero-grid { gap: 46px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-lead { font-size: 15px; }
  .hero-actions, .trust-line, .download-row { flex-direction: column; align-items: stretch; }
  .trust-line { gap: 10px; }
  .console-route { overflow-x: auto; }
  .console-result { grid-template-columns: 60px 1fr; gap: 15px; }
  .signal-orbit { width: 58px; height: 58px; }
  .signal-strip-inner { justify-content: flex-start; overflow: hidden; }
  .signal-strip-inner span:nth-last-child(-n+3) { display: none; }
  .section-heading h2 { font-size: 40px; }
  .split-heading, .market-heading { gap: 30px; }
  .path-card { padding: 24px; }
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-card-main { min-height: 370px; }
  .workflow-list li { grid-template-columns: 40px 1fr; }
  .advisor-form { padding: 20px; }
  .form-row, .footer-grid, .summary-grid, .metric-grid, .mode-choice, .detail-sidebar { grid-template-columns: 1fr; }
  .footer-grid { gap: 35px; }
  .footer-bottom { flex-direction: column; }
  .market-hero h1, .docs-hero h1 { font-size: 44px; }
  .market-toolbar { grid-template-columns: 1fr; }
  .filter-group, .runtime-filter { grid-column: 1; grid-row: auto; overflow-x: auto; flex-wrap: nowrap; }
  .filter-group button { white-space: nowrap; }
  .listing-head { align-items: flex-end; }
  .listing-head > span { max-width: 170px; text-align: right; }
  .market-note .shell { grid-template-columns: 1fr; gap: 5px; padding: 25px 0; }
  .detail-hero-grid { margin-top: 35px; gap: 35px; }
  .detail-hero h1 { font-size: 49px; }
  .summary-grid > div, .summary-grid > div:first-child { min-height: 72px; padding: 15px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .backtest-form { grid-template-columns: 1fr; }
  .block-heading, .section-heading.compact, .run-title { display: grid; gap: 18px; }
  .detail-sidebar { display: grid; }
  .run-title { align-items: start; }
  .mode-tabs { width: 100%; }
  .mode-tabs a { min-width: 0; flex: 1; }
  .run-panel { padding: 22px; }
  .run-panel-head { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; gap: 13px; overflow-x: auto; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-nav strong { display: none; }
  .docs-nav a { white-space: nowrap; }
  .compare-table { grid-template-columns: 1fr; }
  .compare-table > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .endpoint-list div { grid-template-columns: 52px 1fr; }
  .endpoint-list span { grid-column: 2; }
  .release-card { padding: 20px; }
  .release-card-head { display: grid; }
  .release-card dl, .release-guide { grid-template-columns: 1fr; }
  .framework-card { padding: 20px; }
  .framework-meta, .framework-card li { display: grid; gap: 6px; }
  .release-card dl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .context-options, .context-question:nth-child(n+3) .context-options, .context-strategy-grid, .context-next-grid, .context-recommendation-notes, .native-question-grid { grid-template-columns: 1fr; }
  .native-question-card, .native-question-card:nth-child(2n), .native-question-card:nth-child(3n) { border-right: 0; }
  .native-prompt-card pre { min-height: 0; }
  .context-option { min-height: 112px; }
  .context-strategy { border-right: 0; }
  .context-recommendation > div:first-child { grid-template-columns: 34px 1fr; }
  .context-recommendation code { grid-column: 2; }
  .context-recommendation-notes section + section { border-left: 0; border-top: 1px solid var(--line); }
  .context-recommendation footer { flex-direction: column; gap: 10px; }
}
