:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-deep: #070d18;
  --surface: #0f172a;
  --surface-2: #131e33;
  --surface-3: #17243b;
  --text: #edf5ff;
  --muted: #a9b8cc;
  --line: #263650;
  --line-strong: #36516f;
  --accent: #35b9e9;
  --accent-soft: #102f43;
  --green: #45d19a;
  --amber: #f0b95d;
  --red: #f27575;
  --blue: #62a8ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  --radius: 18px;
  --header-height: 72px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.72; text-rendering: optimizeLegibility; }
body::before { position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(rgba(53, 185, 233, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 185, 233, .035) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 78%); }
img { display: block; max-width: 100%; height: auto; object-fit: contain; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #7cd7f7; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code, pre { font-family: var(--font-mono); }
code { color: #c7edff; }
:focus-visible { outline: 3px solid #8de5ff; outline-offset: 3px; border-radius: 5px; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 1000; padding: 10px 16px; transform: translateY(-150%); border-radius: 8px; background: var(--text); color: var(--bg-deep); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 900px; }
.section { padding: 92px 0; scroll-margin-top: calc(var(--header-height) + 18px); }
.section-muted { background: rgba(15, 23, 42, .72); border-block: 1px solid rgba(54, 81, 111, .5); }
.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-height); border-bottom: 1px solid rgba(54, 81, 111, .7); background: rgba(7, 13, 24, .92); backdrop-filter: blur(18px); }
.nav-shell { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--text); font-size: 1.18rem; font-weight: 780; letter-spacing: .01em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { flex: 0 0 auto; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 10px; color: #c4d1e2; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.primary-nav > a:hover { color: var(--text); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.nav-toggle svg, .icon-box svg, .button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-nav .button-small { padding-inline: 15px; margin-left: 8px; }
.hero { position: relative; overflow: hidden; padding: 100px 0 92px; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.eyebrow, .kicker { color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid #24516a; border-radius: 999px; background: rgba(16, 47, 67, .72); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(240, 185, 93, .12); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 24px 0 22px; font-size: clamp(2.55rem, 5.5vw, 4.7rem); line-height: 1.07; letter-spacing: -.045em; }
h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.2; letter-spacing: -.028em; }
h3 { margin-bottom: 9px; font-size: 1.13rem; line-height: 1.42; }
.hero-lead { max-width: 730px; color: #c0cee0; font-size: 1.09rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; text-decoration: none; }
.button-primary { background: var(--accent); color: #03131c; box-shadow: 0 12px 32px rgba(53, 185, 233, .18); }
.button-primary:hover { background: #78d8f8; color: #03131c; }
.button-secondary { border-color: #3a7796; background: var(--accent-soft); color: #d9f6ff; }
.button-ghost { border-color: var(--line-strong); background: rgba(19, 30, 51, .6); color: #d5e3f4; }
.badge-line { color: #d5dfed; font-size: .9rem; font-weight: 650; }
.positioning { margin-bottom: 0; padding-left: 15px; border-left: 3px solid var(--accent); color: var(--muted); }
.gateway-visual { padding: 20px 20px 16px; border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(15, 23, 42, .86); box-shadow: var(--shadow); }
.gateway-visual svg { width: 100%; height: auto; }
.flow-node rect { fill: #101d30; stroke: #3a516f; stroke-width: 1.5; }
.flow-node-accent rect { fill: #103249; stroke: var(--accent); stroke-width: 2; }
.flow-node text { fill: var(--text); font-family: var(--font-sans); font-size: 16px; font-weight: 750; text-anchor: middle; }
.flow-node .flow-sub { fill: var(--muted); font-size: 12px; font-weight: 500; }
.flow-line path { fill: none; stroke: #5f7999; stroke-width: 2; }
.flow-line .arrow-head { fill: var(--accent); stroke: none; }
.stage-box rect { fill: #0b1424; stroke: #263c57; }
.stage-box path { fill: none; stroke: #23364d; }
.stage-label { fill: #c7d6e8; font-family: var(--font-sans); font-size: 14px; font-weight: 650; }
.visual-note { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(69, 209, 154, .11); }
.section-heading { max-width: 790px; margin-bottom: 40px; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.kicker { margin-bottom: 10px; }
.risk-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.risk-card, .feature-card { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.risk-card { min-height: 228px; }
.risk-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 0 0 var(--radius) var(--radius); background: var(--red); content: ""; opacity: .7; }
.risk-card:nth-child(2)::after { background: var(--amber); }
.risk-card:nth-child(3)::after { background: var(--blue); }
.risk-card:nth-child(4)::after { background: var(--accent); }
.risk-index { display: block; margin-bottom: 25px; color: #7892b2; font-family: var(--font-mono); font-size: .85rem; }
.risk-card p, .feature-card p { margin-bottom: 0; color: var(--muted); }
.boundary-note, .callout { margin-top: 22px; padding: 17px 20px; border: 1px solid #36536f; border-radius: 12px; background: #0d1a2d; color: #c6d5e6; }
.boundary-note strong { color: var(--blue); }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.pipeline li { display: flex; min-width: 0; min-height: 190px; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pipeline li > div { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.pipeline code { overflow-wrap: anywhere; }
.step-number { flex: 0 0 auto; color: var(--accent); font-family: var(--font-mono); font-size: .9rem; font-weight: 800; }
.pipeline p { margin-bottom: 0; color: var(--muted); }
.quiet-line { display: inline-block; margin-top: 16px; padding: 8px 12px; border-left: 3px solid var(--amber); background: rgba(240, 185, 93, .08); color: #e8d5ac !important; }
.media-frame { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-deep); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.media-frame img { width: 100%; transition: transform .22s ease, filter .22s ease; }
.media-frame:hover img { transform: scale(1.008); filter: brightness(1.04); }
.demo-overview { max-width: 920px; margin: 0 auto 28px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-grid details, .faq-list details { border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.demo-grid summary, .faq-list summary { min-height: 58px; padding: 16px 20px; cursor: pointer; color: var(--text); font-weight: 750; }
.demo-grid summary span { margin-right: 10px; color: var(--accent); font-family: var(--font-mono); font-size: .84rem; }
.demo-grid details[open] { grid-column: 1 / -1; }
.detail-body { padding: 0 20px 22px; }
.detail-body p { color: var(--muted); }
.evidence-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audit-layout .section-heading { max-width: 860px; }
.audit-gallery { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.audit-stack { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card { min-height: 260px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.doc-actions a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 750; }
.doc-actions .pdf-download { color: #bdefff; }
.icon-box { display: grid; width: 46px; height: 46px; margin-bottom: 28px; place-items: center; border: 1px solid #28627f; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.icon-box svg { width: 25px; height: 25px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
caption { padding: 18px 20px; border-bottom: 1px solid var(--line); color: #d8e7f6; font-weight: 750; text-align: left; }
th, td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #111d31; color: #d7e7f6; font-size: .86rem; letter-spacing: .04em; }
tbody th { width: 22%; color: var(--text); }
tbody td { color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.terminal-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #07101d; }
.terminal-head, .terminal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: #d9e6f5; font-size: .88rem; font-weight: 700; }
.terminal-head span:last-child { color: var(--muted); font-weight: 500; }
.terminal-card pre { min-height: 300px; margin: 0; padding: 22px; overflow-x: auto; color: #e4f0fb; font-size: .88rem; line-height: 1.8; }
.terminal-foot { justify-content: flex-start; border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-weight: 500; }
.comment { color: #7890aa; }
.callout-warning { border-color: #6c5633; background: rgba(77, 55, 23, .26); color: #e5d0a6; }
.callout-warning strong { color: var(--amber); }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.boundary-grid li { display: grid; align-content: start; min-height: 150px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.boundary-grid strong { margin-bottom: 8px; color: #dceafb; }
.boundary-grid span { color: var(--muted); }
.roadmap { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 24px 0 0; list-style: none; }
.roadmap::before { position: absolute; top: 9px; right: 9%; left: 9%; height: 2px; background: var(--line-strong); content: ""; }
.roadmap li { position: relative; min-height: 155px; padding: 20px 18px; border-left: 1px solid var(--line); }
.roadmap li::before { position: absolute; top: -21px; left: -7px; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); content: ""; }
.roadmap li.complete::before { border-color: var(--green); background: var(--green); }
.roadmap li.current::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 7px rgba(240, 185, 93, .11); }
.roadmap span, .roadmap strong, .roadmap small { display: block; }
.roadmap span { margin-bottom: 12px; color: var(--accent); font-family: var(--font-mono); font-size: .8rem; }
.roadmap strong { color: #dce7f5; line-height: 1.5; }
.roadmap small { margin-top: 8px; color: var(--muted); }
.license-panel { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; padding: 42px; border: 1px solid #315a72; border-radius: 22px; background: #0d1a2c; }
.license-panel p { color: var(--muted); }
.docs-callout-copy { min-width: 0; }
.docs-callout-copy h4 { margin: 26px 0 10px; color: #dce8f4; font-size: 1rem; }
.install-command { max-width: 100%; margin: 0; padding: 15px 17px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: #07101d; color: #dff5ff; font-family: var(--font-mono); font-size: .84rem; line-height: 1.65; white-space: pre; }
.install-command code { font: inherit; white-space: inherit; }
.license-panel .install-conditions { margin: 10px 0 0; color: #9fb1c8; font-size: .82rem; }
.license-panel .commercial-note { margin: 24px 0 0; color: #dce8f4; font-weight: 700; }
.license-links { display: grid; gap: 10px; min-width: 245px; }
.faq-list { display: grid; gap: 12px; }
.faq-list summary { display: flex; align-items: center; font-size: 1.02rem; }
.faq-list p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
.site-footer { padding: 58px 0 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 36px; }
.footer-grid p { margin: 10px 0 0; color: var(--muted); }
.footer-grid nav, .footer-contact { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 6px 18px; }
.footer-grid nav a, .footer-contact a { display: inline-flex; min-height: 44px; align-items: center; color: #b9c9dc; text-decoration: none; }
.footer-contact { grid-template-columns: 1fr; }
.privacy { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 18px); }
.privacy p { max-width: 920px; margin: 0; color: var(--muted); font-size: .9rem; }
.footer-bottom { margin-top: 22px; color: #7f91a8; font-size: .86rem; }
.error-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.error-card { width: min(560px, 100%); padding: 48px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.error-card .brand { justify-content: center; }
.error-code { margin: 36px 0 0; color: var(--accent); font-family: var(--font-mono); font-size: 1rem; font-weight: 800; letter-spacing: .18em; }
.error-card h1 { margin: 8px 0 14px; font-size: clamp(2.2rem, 8vw, 4rem); }
.error-card > p:not(.error-code) { margin-bottom: 28px; color: var(--muted); }
@media (max-width: 1050px) {
  .primary-nav > a { padding-inline: 7px; font-size: .82rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .gateway-visual { max-width: 760px; }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .roadmap::before { display: none; }
}
@media (max-width: 860px) {
  :root { --header-height: 64px; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 70px 0; }
  .nav-shell { min-height: var(--header-height); }
  .js .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 14px; left: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 82px); padding: 12px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: #0a1322; box-shadow: var(--shadow); }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav > a { min-height: 48px; padding-inline: 12px; font-size: .95rem; }
  .primary-nav .button-small { margin: 5px 0 0; grid-column: 1 / -1; }
  .pipeline, .feature-grid, .boundary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-grid, .audit-gallery, .quick-grid { grid-template-columns: 1fr; }
  .audit-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-panel { grid-template-columns: 1fr; }
  .license-links { min-width: 0; }
}
@media (max-width: 620px) {
  body { line-height: 1.65; }
  .hero { padding-top: 72px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.3rem); }
  .hero-actions .button { width: 100%; }
  .gateway-visual { padding: 8px; border-radius: 16px; }
  .gateway-visual svg { min-height: 280px; }
  .visual-note { padding: 0 10px 8px; text-align: center; }
  .risk-grid, .pipeline, .demo-grid, .feature-grid, .boundary-grid, .evidence-pair, .audit-stack, .roadmap, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .risk-card, .feature-card, .pipeline li, .boundary-grid li { min-height: 0; }
  .demo-grid details[open] { grid-column: auto; }
  .section-heading { margin-bottom: 30px; }
  .terminal-card pre { min-height: 0; }
  .roadmap { gap: 12px; padding-top: 0; }
  .roadmap li { min-height: 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .roadmap li::before { display: none; }
  .license-panel { padding: 26px 20px; }
  .footer-grid nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 359px) {
  .terminal-foot code { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #111827; --muted: #374151; --line: #cbd5e1; }
  body { background: #fff; color: #111827; }
  body::before, .site-header, .hero-actions, .visual-note { display: none; }
  .section, .hero { padding: 28px 0; background: #fff; border: 0; }
  .container { width: 100%; }
  .risk-card, .feature-card, .pipeline li, .boundary-grid li, .license-panel, details, .terminal-card, .table-wrap { break-inside: avoid; background: #fff; box-shadow: none; }
  a { color: #0b5d7a; text-decoration: underline; }
  .gateway-visual { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
