:root {
  --paper: #f4f0e7;
  --paper-deep: #e8e2d6;
  --ink: #111a2c;
  --muted: #667084;
  --blue: #2457d6;
  --blue-dark: #143991;
  --red: #f05a3f;
  --green: #15995b;
  --line: rgba(17, 26, 44, .18);
  --white: #fffefa;
  --shadow: 8px 8px 0 rgba(17, 26, 44, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17, 26, 44, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 26, 44, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
strong, h1, h2, h3 { font-weight: 850; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(244, 240, 231, .92); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; background: var(--blue); color: var(--white); font: 800 17px/1 ui-monospace, monospace; box-shadow: 5px 5px 0 var(--red); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 750; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav > a:hover::after { transform: scaleX(1); }
.language-link { color: var(--blue-dark); font-family: ui-monospace, monospace; }
.nav-cta { padding: 11px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--blue); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--ink); background: transparent; }
.menu-button span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--ink); }

.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(540px, 1.06fr); align-items: center; gap: 62px; padding-block: 64px 56px; }
.eyebrow, .section-index { margin: 0 0 22px; color: var(--blue-dark); font: 800 12px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(21,153,91,.11); }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(54px, 5.8vw, 88px); line-height: .96; letter-spacing: -.075em; }
.hero h1 span { position: relative; color: var(--blue); white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; right: 0; bottom: -3px; left: 0; height: 8px; background: var(--red); z-index: -1; }
.hero-lede { max-width: 650px; margin: 32px 0 0; color: #3b4658; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 22px; border: 1px solid var(--ink); font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translate(-2px, -2px); }
.button-primary { background: var(--blue); color: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.button-primary:hover { box-shadow: 8px 8px 0 var(--red); }
.button-secondary { background: rgba(255,255,255,.36); }
.button-secondary:hover { box-shadow: 5px 5px 0 var(--blue); }
.button-dark { background: var(--ink); color: var(--white); box-shadow: 6px 6px 0 var(--blue); }
.button-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.command-strip { max-width: 620px; min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin-top: 38px; border: 1px solid var(--line); background: var(--ink); color: #eaf1ff; box-shadow: 8px 8px 0 var(--red); font: 12px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.command-label { align-self: stretch; display: grid; place-items: center; padding: 0 14px; border-right: 1px solid #344055; color: #95a6c2; }
.command-strip code { padding: 12px 15px; overflow-x: auto; white-space: nowrap; }
.command-strip code span { color: #69f2c3; }
.command-strip button { align-self: stretch; padding: 0 15px; border: 0; border-left: 1px solid #344055; background: transparent; color: #b8c7df; cursor: pointer; font: inherit; }

.market-board { position: relative; }
.board-kicker { display: flex; justify-content: space-between; margin: 0 0 10px; color: var(--blue-dark); font: 750 10px ui-monospace, monospace; letter-spacing: .09em; }
.workbook-card { border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 rgba(17,26,44,.12); }
.workbook-card > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.file-chip { display: grid; place-items: center; width: 42px; height: 42px; background: #e4eaff; color: var(--blue); font: 900 13px ui-monospace, monospace; }
.workbook-card header div { display: flex; flex-direction: column; }
.workbook-card header strong { font-size: 14px; }
.workbook-card header small { color: var(--muted); font-size: 10px; }
.ready { padding: 6px 9px; background: #e5f3e9; color: #157541; font-size: 10px; font-weight: 800; }
.ready i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.workbook-grid { display: grid; grid-template-columns: 1.55fr .9fr; }
.product-table { padding: 14px 16px 16px; border-right: 1px solid var(--line); }
.table-title { display: flex; justify-content: space-between; margin-bottom: 10px; font: 10px ui-monospace, monospace; }
.table-title span { color: var(--blue); }
.table-head, .product-row { display: grid; grid-template-columns: 1fr 62px 55px; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.table-head { padding-top: 0; color: var(--muted); font-size: 8px; }
.product-row b { color: var(--red); }
.product-row span { color: var(--muted); text-align: right; }
.price-chart { position: relative; padding: 14px 15px; }
.price-chart small { display: block; font: 8px ui-monospace, monospace; letter-spacing: .08em; }
.price-chart > strong { display: inline-block; margin: 5px 6px 12px 0; font-size: 24px; letter-spacing: -.04em; }
.sample { color: var(--muted); font-size: 9px; }
.bar-row { display: grid; grid-template-columns: 45px 1fr 12px; align-items: center; gap: 7px; margin: 7px 0; color: var(--muted); font: 8px ui-monospace, monospace; }
.bar-row i { width: var(--value); height: 7px; background: var(--blue); }
.bar-row i.red { background: var(--red); }
.bar-row b { color: var(--ink); text-align: right; }
.price-chart p { margin: 14px 0 0; padding: 8px; border: 1px solid #aebff5; background: #edf1ff; color: var(--blue-dark); font-size: 9px; line-height: 1.5; }
.workbook-card > footer { display: flex; align-items: center; min-height: 38px; border-top: 1px solid var(--line); font: 9px ui-monospace, monospace; }
.workbook-card footer span { align-self: stretch; display: grid; place-items: center; padding: 0 16px; border-right: 1px solid var(--line); }
.workbook-card footer .active { background: var(--blue); color: white; }
.workbook-card footer b { margin-left: auto; padding-right: 16px; }
.board-command { min-height: 56px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 28px -26px 0 -26px; padding: 0 18px; background: var(--ink); color: white; box-shadow: 8px 8px 0 var(--red); font: 10px ui-monospace, monospace; }
.board-command > span { color: #8290a8; letter-spacing: 3px; }
.board-command b { color: #9bb6ff; }
.roadmap-mini { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 28px; font: 8px ui-monospace, monospace; }
.roadmap-mini > * { padding: 4px 7px; border: 1px solid var(--line); }
.roadmap-mini small { border: 0; color: var(--muted); }
.roadmap-mini b { background: var(--ink); color: white; }

.evidence { border-block: 1px solid var(--ink); background: var(--ink); color: white; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.evidence-grid > div { min-height: 104px; display: flex; align-items: baseline; justify-content: center; gap: 13px; padding: 24px; border-right: 1px solid #344055; }
.evidence-grid > div:last-child { border-right: 0; }
.evidence strong { color: #7fa1ff; font-size: 38px; letter-spacing: -.06em; }
.evidence span { font-size: 12px; font-weight: 750; }

.section { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: minmax(300px,.7fr) 1fr; column-gap: 80px; align-items: end; margin-bottom: 64px; }
.section-heading .section-index { grid-column: 1 / -1; }
.section-heading h2, .report-copy h2, .safety-copy h2, .quick-copy h2, .final-cta h2 { margin: 0; font-size: clamp(46px, 5vw, 72px); line-height: 1.02; letter-spacing: -.065em; }
.section-heading > p:last-child { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; }
.section-heading.compact { grid-template-columns: 1fr 1fr; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.feature-grid article { min-height: 260px; position: relative; padding: 30px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.25); }
.feature-grid article:hover { background: var(--white); }
.feature-grid article > span, .boundary-grid article > span { color: var(--blue); font: 800 10px ui-monospace, monospace; letter-spacing: .1em; }
.feature-grid h3 { margin: 42px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-grid article > b { position: absolute; right: 28px; bottom: 24px; color: var(--blue-dark); font: 800 9px ui-monospace, monospace; }

.section-dark { background: var(--ink); color: var(--white); }
.section-heading.light .section-index { color: #88a8ff; }
.section-heading.light > p:last-child { color: #aeb8c9; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #39445a; }
.workflow-list li { min-height: 132px; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 30px; border-bottom: 1px solid #39445a; }
.workflow-list li > span { color: #6f86b0; font: 700 15px ui-monospace, monospace; }
.workflow-list li > div { display: grid; grid-template-columns: 150px 230px 1fr; align-items: center; gap: 24px; }
.workflow-list small { color: #7fa1ff; font: 800 9px ui-monospace, monospace; letter-spacing: .12em; }
.workflow-list h3 { margin: 0; font-size: 20px; }
.workflow-list p { margin: 0; color: #aeb8c9; font-size: 13px; }
.workflow-list code { padding: 8px 12px; border: 1px solid #3a4a65; color: #83f0cf; font: 11px ui-monospace, monospace; }

.report-section { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: 80px; }
.report-copy { position: sticky; top: 120px; }
.report-copy > p:not(.section-index) { margin: 26px 0; color: var(--muted); font-size: 17px; }
.check-list { margin: 28px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.text-link { display: inline-block; margin-top: 15px; padding-bottom: 4px; border-bottom: 2px solid var(--blue); color: var(--blue-dark); font-weight: 800; }
.report-gallery { display: grid; gap: 36px; }
.report-shot { margin: 0; border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.report-shot img { width: 100%; background: #e7e7e7; }
.report-shot figcaption { display: flex; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.report-shot figcaption span { color: var(--red); font-family: ui-monospace, monospace; }
.detail-shot { width: 82%; margin-left: auto; }

.safety-section { border-block: 1px solid var(--ink); background: var(--paper-deep); }
.safety-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.safety-copy > p:not(.section-index) { color: var(--muted); font-size: 17px; }
.notice { margin-top: 32px; padding: 22px; border: 1px solid var(--red); background: rgba(240,90,63,.07); box-shadow: 6px 6px 0 rgba(240,90,63,.2); }
.notice strong { color: var(--red); font: 800 11px ui-monospace, monospace; letter-spacing: .12em; }
.notice p { margin: 8px 0 0; font-size: 14px; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.boundary-grid article { padding: 28px; background: rgba(255,255,255,.35); }
.boundary-grid article + article { border-left: 1px solid var(--ink); }
.boundary-grid .dont > span { color: var(--red); }
.boundary-grid ul { margin: 30px 0 0; padding: 0; list-style: none; }
.boundary-grid li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.boundary-grid .do li::before { content: "+"; margin-right: 10px; color: var(--green); font-weight: 900; }
.boundary-grid .dont li::before { content: "—"; margin-right: 10px; color: var(--red); font-weight: 900; }

.roadmap-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.roadmap-list li { min-height: 116px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 30px; padding: 20px; border-bottom: 1px solid var(--ink); transition: background .15s ease; }
.roadmap-list li:hover { background: rgba(255,255,255,.4); }
.roadmap-list li > span { font: 800 12px ui-monospace, monospace; color: var(--blue); }
.roadmap-list strong { font-size: 20px; }
.roadmap-list p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.roadmap-list b { min-width: 104px; padding: 7px 10px; border: 1px solid var(--ink); text-align: center; font: 800 10px ui-monospace, monospace; }
.roadmap-list [data-support="supported"] b { border-color: var(--green); background: #e3f3e9; color: #126d3e; }

.quick-section { background: var(--blue); color: var(--white); }
.quick-layout { display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 80px; }
.quick-copy .section-index { color: #dae3ff; }
.quick-copy > p:not(.section-index) { margin: 26px 0; color: #dae3ff; }
.quick-copy .button-primary { border-color: var(--white); background: var(--white); color: var(--blue-dark); }
.terminal { overflow: hidden; border: 1px solid #09111f; background: #0d1524; box-shadow: 10px 10px 0 var(--red); }
.terminal header { min-height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-bottom: 1px solid #2c3950; color: #9ba8bf; font: 10px ui-monospace, monospace; }
.terminal header span { display: flex; gap: 6px; }
.terminal header i { width: 8px; height: 8px; border-radius: 50%; background: #e06156; }
.terminal header i:nth-child(2) { background: #d8a54c; }
.terminal header i:nth-child(3) { background: #4db780; }
.terminal header b { color: #cad4e7; }
.terminal header button { justify-self: end; border: 0; background: none; color: #9bb6ff; cursor: pointer; font: inherit; }
.terminal pre { max-height: 520px; margin: 0; padding: 28px; overflow: auto; color: #e8effd; font: 12px/2 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.terminal .comment { color: #6d809f; }

.faq-section .section-heading { margin-bottom: 38px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--ink); }
.faq-list summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 4px; cursor: pointer; font-size: 18px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font: 500 28px ui-monospace, monospace; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 840px; margin: 0; padding: 0 4px 24px; color: var(--muted); }

.final-cta { padding-block: 92px; background: var(--red); color: var(--white); }
.final-cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 100px; }
.final-cta .section-index { color: #ffe4de; }
.final-cta-inner > div:last-child > p { margin: 0; color: #ffe9e5; font-size: 17px; }
.site-footer { background: #090f1a; color: white; }
.footer-main { display: grid; grid-template-columns: 1fr 180px 180px; gap: 60px; padding-block: 60px; }
.footer-main > div:first-child p { color: #8694aa; }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-main > div:not(:first-child) strong { margin-bottom: 8px; color: #6f86b0; font: 800 9px ui-monospace, monospace; letter-spacing: .13em; }
.footer-main > div:not(:first-child) a { color: #bdc8da; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid #263248; color: #73839b; font: 9px ui-monospace, monospace; letter-spacing: .08em; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.js [data-reveal][data-visible] { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .site-nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 84px; }
  .hero-copy { max-width: 800px; }
  .market-board { max-width: 820px; }
  .section-heading, .section-heading.compact, .report-section, .safety-layout, .quick-layout, .final-cta-inner { grid-template-columns: 1fr; }
  .report-copy { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-list li > div { grid-template-columns: 120px 210px 1fr; }
}

@media (max-width: 820px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 76px; right: 0; left: 0; display: none; align-items: stretch; padding: 18px 24px 26px; border-bottom: 1px solid var(--ink); background: var(--paper); box-shadow: 0 18px 30px rgba(17,26,44,.15); }
  .site-nav[data-open] { display: flex; flex-direction: column; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .hero { min-height: auto; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid > div:nth-child(2) { border-right: 0; }
  .evidence-grid > div:nth-child(-n+2) { border-bottom: 1px solid #344055; }
  .workflow-list li { grid-template-columns: 50px 1fr; padding: 22px 0; }
  .workflow-list li > div { grid-template-columns: 1fr; gap: 5px; }
  .workflow-list li > code { grid-column: 2; justify-self: start; }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-grid article + article { border-top: 1px solid var(--ink); border-left: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 30px, 1320px); }
  .site-header, .header-inner { min-height: 68px; }
  .site-nav { top: 68px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero, .report-layout, .feature-grid { grid-template-columns: 1fr; }
  .hero { gap: 56px; padding-block: 60px 46px; }
  .hero h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-lede { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .command-strip { grid-template-columns: auto minmax(0,1fr); }
  .command-strip button { grid-column: 1 / -1; min-height: 42px; border-top: 1px solid #344055; border-left: 0; }
  .market-board { margin-inline: -4px; }
  .board-kicker span:last-child, .roadmap-mini { display: none; }
  .workbook-grid { grid-template-columns: 1fr; }
  .product-table { border-right: 0; border-bottom: 1px solid var(--line); }
  .workbook-card > header { grid-template-columns: auto 1fr; }
  .workbook-card > header .ready { grid-column: 1 / -1; justify-self: start; }
  .board-command { grid-template-columns: 1fr; gap: 4px; margin-inline: 0; padding-block: 12px; overflow-x: auto; }
  .board-command span, .board-command b { display: none; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .evidence-grid > div { min-height: 88px; flex-direction: column; align-items: center; gap: 0; padding: 14px 8px; }
  .evidence strong { font-size: 31px; }
  .evidence span { font-size: 10px; }
  .section { padding-block: 82px; }
  .section-heading { gap: 24px; margin-bottom: 42px; }
  .section-heading h2, .report-copy h2, .safety-copy h2, .quick-copy h2, .final-cta h2 { font-size: clamp(42px, 13vw, 58px); }
  .section-heading > p:last-child { font-size: 15px; }
  .feature-grid { border-left: 0; }
  .feature-grid article { min-height: 230px; border-left: 1px solid var(--ink); }
  .workflow-list li { gap: 14px; }
  .report-section, .safety-layout, .quick-layout, .final-cta-inner { gap: 52px; }
  .detail-shot { width: 100%; }
  .roadmap-list li { grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 8px; }
  .roadmap-list li > b { grid-column: 2; justify-self: start; }
  .roadmap-list strong { font-size: 17px; }
  .terminal pre { padding: 20px; font-size: 11px; }
  .faq-list summary { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
