:root {
    color-scheme: dark;
    --bg: #060911;
    --bg-elevated: #0b111e;
    --surface: rgba(13, 20, 35, 0.78);
    --surface-solid: #0c1424;
    --surface-hover: #111c33;
    --line: rgba(148, 175, 214, 0.16);
    --line-strong: rgba(148, 175, 214, 0.3);
    --text: #eef3fb;
    --muted: #93a6c2;
    --dim: #687b97;
    --indigo: #5b7cff;
    --indigo-strong: #3b63f6;
    --cyan: #38e8d6;
    --amber: #f5b855;
    --shell: 1200px;
    --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, svg { display: block; }
code, pre, kbd { font-family: var(--mono); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #000; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Header */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled, body:not([data-page="home"]) .site-header { background: rgba(6, 9, 17, 0.84); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.025em; font-size: 1.02rem; }
.brand img { border-radius: 9px; }
.brand-badge { padding: 2px 8px; border: 1px solid rgba(56, 232, 214, 0.25); border-radius: 999px; background: rgba(56, 232, 214, 0.08); color: var(--cyan); font-family: var(--mono); font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: 0; }
.main-nav { display: flex; gap: 28px; margin-left: auto; color: var(--muted); }
.main-nav a { position: relative; font-size: .9rem; font-weight: 500; transition: color .18s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--cyan); transition: right .2s; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--cyan); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-link { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .04em; transition: border-color .2s, color .2s, background .2s; }
.language-link:hover { border-color: rgba(56, 232, 214, 0.55); color: var(--cyan); background: rgba(56, 232, 214, 0.06); }
.header-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.03); font-size: .86rem; font-weight: 650; transition: border-color .2s, background .2s; }
.header-link:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.header-link svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 132px 0 84px; background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: radial-gradient(rgba(148, 175, 214, 0.16) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 80% 65% at 50% 22%, #000, transparent 90%); pointer-events: none; }
.hero-glow { position: absolute; top: -220px; left: 50%; width: 880px; height: 560px; transform: translateX(-50%); background: radial-gradient(circle, rgba(59, 99, 246, 0.2) 0%, rgba(56, 232, 214, 0.08) 44%, transparent 72%); filter: blur(48px); pointer-events: none; }
.hero-shell { position: relative; z-index: 1; }
.hero-center { max-width: 760px; margin: 0 auto; text-align: center; }

.eyebrow, .section-number { margin: 0 0 18px; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 5vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 780; }
h1 em, h2 em { font-style: normal; background: linear-gradient(120deg, var(--indigo), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.hero-lead { max-width: 580px; margin: 0 auto 28px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-flex; min-height: 44px; padding: 10px 22px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; font-size: .92rem; font-weight: 650; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--indigo-strong), var(--indigo)); color: #fff; box-shadow: 0 10px 30px rgba(59, 99, 246, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.button.primary:hover { box-shadow: 0 14px 36px rgba(59, 99, 246, 0.45); }
.button.secondary { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.button.secondary:hover { background: rgba(255, 255, 255, 0.08); }

.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; padding: 0; margin: 26px auto 0; list-style: none; font-family: var(--mono); font-size: .74rem; color: var(--dim); }
.hero-facts li { display: inline-flex; align-items: center; gap: 14px; }
.hero-facts li + li::before { content: "·"; color: rgba(148, 175, 214, 0.35); }
.hero-udp-note { margin: 18px auto 0; text-align: center; font-size: .76rem; color: var(--dim); line-height: 1.6; }
.hero-udp-note a { color: var(--cyan); font-weight: 550; }
.hero-udp-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Interactive Topology Card */
.topology-card { position: relative; max-width: 880px; margin: 42px auto 0; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(160deg, rgba(16, 25, 43, 0.9), rgba(9, 14, 25, 0.94)); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.topology-bar { display: flex; justify-content: center; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.topology-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6, 9, 17, 0.7); gap: 4px; }
.topo-tab { padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .18s, color .18s; }
.topo-tab:hover { color: var(--text); }
.topo-tab.active { background: rgba(91, 124, 255, 0.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(91, 124, 255, 0.45); }

.topology-panel { padding: 30px 28px 22px; }
.topology-panel[hidden] { display: none; }
.topo-stage { display: grid; grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1.08fr) 128px minmax(0, 1fr); align-items: center; gap: 10px; }
.topo-node { position: relative; min-width: 0; padding: 18px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #0b1426; text-align: center; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.topo-server { border-color: rgba(91, 124, 255, 0.55); background: linear-gradient(155deg, #111d38, #0b1324); box-shadow: 0 0 36px rgba(91, 124, 255, 0.16); }
.topo-node strong, .topo-node small { display: block; }
.topo-node strong { font-size: .92rem; line-height: 1.3; color: #fff; }
.topo-node small { margin-top: 5px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.status-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 232, 214, 0.12); }

.topo-link { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.topo-link svg { width: 100%; height: 16px; }
.topo-link line { stroke: rgba(91, 124, 255, 0.65); stroke-width: 1.6; stroke-dasharray: 4 3; }
.flow-dot { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); animation: slideDot 2.2s linear infinite; }
.flow-dot.delay { animation-delay: 1.1s; }
.topo-link.reverse .flow-dot { animation-direction: reverse; }
.link-badge { font-family: var(--mono); font-size: .64rem; line-height: 1.25; color: var(--muted); text-align: center; white-space: nowrap; }
@keyframes slideDot {
    0% { transform: translateX(-8px); opacity: .15; }
    50% { opacity: 1; }
    100% { transform: translateX(96px); opacity: .15; }
}
.topology-caption { margin: 20px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* Sections & Open Architecture */
.section { padding: 108px 0; border-top: 1px solid var(--line); }
.product-section { background: linear-gradient(180deg, #070b15 0%, #090f1d 100%); }
.arch-shell { max-width: 1040px; }
.section-head-center { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head-center h2 { margin: 0; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.1; letter-spacing: -.04em; }
.section-sub { margin: 14px auto 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }

.pillar-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 44px; }
.pillar-item { padding-top: 20px; border-top: 1px solid var(--line); }
.pillar-item > span { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--cyan); }
.pillar-item h3 { margin: 0 0 8px; font-size: 1.06rem; line-height: 1.35; letter-spacing: -.015em; color: var(--text); }
.pillar-item p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.pillar-item :not(pre) > code { padding: 1px 6px; border-radius: 5px; background: rgba(91, 124, 255, 0.14); color: #cbd8ff; font-size: .84em; }

.arch-split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 20px; align-items: stretch; }
.arch-panel { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 20, 35, 0.55); }
.arch-kicker { margin: 0 0 10px; font-family: var(--mono); color: var(--cyan); font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.arch-desc { margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.65; }

.arch-terminal { margin-top: auto; border: 1px solid rgba(91, 124, 255, 0.24); border-radius: 11px; background: #04070e; overflow: hidden; }
.arch-terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(148, 175, 214, 0.12); background: rgba(255, 255, 255, 0.02); }
.arch-terminal-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #2c3c55; }
.arch-terminal-bar > span:first-child { background: #d66a5f; }
.arch-terminal-bar em { margin-left: 6px; font-family: var(--mono); font-style: normal; font-size: .68rem; color: var(--dim); }
.arch-terminal pre { margin: 0; padding: 14px 16px; color: #dbe6ff; font-size: .76rem; line-height: 1.65; overflow-x: auto; }
.t-prompt { color: var(--cyan); font-weight: 700; }
.t-accent { color: var(--amber); font-weight: 600; }
.t-comment { color: var(--dim); }

.boundary-list { margin: 4px 0 0; padding: 0; list-style: none; }
.boundary-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(148, 175, 214, 0.1); color: var(--muted); font-size: .86rem; line-height: 1.55; }
.boundary-list li.boundary-warn { color: #e8cfa0; }
.b-mark { font-family: var(--mono); font-weight: 800; text-align: center; }
.b-mark.no { color: var(--dim); }
.b-mark.draft { color: var(--indigo); }
.b-mark.warn { color: var(--amber); }

/* Gateway Section & Content Cards */
.docs-section { background: var(--bg); }
.gateway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gateway-grid .content-card { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; min-height: 176px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 20, 35, 0.55); transition: border-color .2s, background .2s, transform .2s; }
.gateway-grid .content-card:hover { border-color: var(--line-strong); background: var(--surface-solid); transform: translateY(-2px); }
.gateway-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--cyan); }
.gateway-card-top span:last-child { font-size: 1rem; transition: transform .18s; }
.gateway-grid .content-card:hover .gateway-card-top span:last-child { transform: translateX(4px); }
.gateway-grid .content-card h2 { margin: 0 0 8px; font-size: 1.12rem; color: var(--text); }
.gateway-grid .content-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }

.content-list { border-top: 1px solid var(--line); }
.content-list .content-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 18px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background .18s; }
.content-list .content-card h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--text); }
.content-list .content-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.content-list .content-card > span { color: var(--cyan); font-size: 1.2rem; transition: transform .18s; }
.content-list .content-card:hover { background: rgba(91, 124, 255, 0.08); }
.content-list .content-card:hover > span { transform: translateX(4px); }

/* Closing & Footer */
.closing { padding: 12px 0 96px; border-top: 0; background: var(--bg); }
.closing-card { position: relative; overflow: hidden; padding: 68px 32px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(91, 124, 255, 0.16), rgba(11, 17, 30, 0.8) 72%); text-align: center; }
.closing-card h2 { margin: 0 0 28px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); background: #04070e; color: var(--dim); }
.footer-inner { min-height: 96px; display: flex; align-items: center; gap: 28px; }
.footer-inner p { margin: 0 auto; font-size: .8rem; color: var(--muted); }
.footer-inner > div { display: flex; gap: 20px; font-size: .82rem; }
.footer-inner > div a:hover { color: var(--cyan); }

/* Quickstart & Subpages */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.content-page { padding: 132px 0 88px; min-height: 75vh; background: var(--bg); color: var(--text); }
.page-heading { margin-bottom: 40px; max-width: 900px; }
.page-heading h1, .page-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; margin-bottom: 12px; }
.page-heading p { color: var(--muted); }
.breadcrumbs { margin-bottom: 24px; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumbs a, .prose a, .article-pager a, .quickstart-pager a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.article-toc { position: sticky; top: 96px; max-height: calc(100vh - 128px); overflow-y: auto; border-left: 2px solid var(--line); padding-left: 16px; font-size: .82rem; }
.article-toc strong { display: block; margin-bottom: 12px; color: var(--text); }
.article-toc a { display: block; padding: 5px 0; color: var(--muted); overflow-wrap: anywhere; }
.article-toc a:hover { color: var(--cyan); }
.article-toc .toc-h3 { padding-left: 10px; }
.article-toc .toc-h4 { padding-left: 20px; }

.prose { min-width: 0; line-height: 1.85; overflow-wrap: anywhere; color: #d6e0f0; }
.prose h2 { margin: 42px 0 18px; font-size: 1.65rem; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3, .prose h4 { margin: 28px 0 12px; color: var(--text); }
.prose pre { overflow: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #03060c; color: #dbe5ff; font-size: .84rem; line-height: 1.65; }
.prose :not(pre) > code { background: rgba(91, 124, 255, 0.15); color: #cde0ff; padding: 2px 6px; border-radius: 5px; font-size: .86em; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .86rem; margin: 20px 0; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.prose blockquote, .source-note { margin: 18px 0 24px; border-left: 3px solid var(--indigo); padding: 12px 18px; border-radius: 0 8px 8px 0; background: rgba(91, 124, 255, 0.09); color: #c7d5ec; }
.article-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Quickstart Template Styles */
.quickstart-heading { min-height: 0; padding-bottom: 24px; background: var(--bg); color: var(--text); }
.quickstart-heading .page-heading { margin-bottom: 20px; }
.quickstart-toc { display: flex; flex-wrap: wrap; gap: 22px; color: var(--cyan); font-size: .88rem; }
.quickstart-pager { padding: 24px 0 48px; color: var(--cyan); }

.agent-install-section { padding: 36px 0 64px; border-top: 0; background: var(--bg); }
.install-primary-card { position: relative; padding: 32px; border: 1px solid rgba(91, 124, 255, 0.42); border-radius: 18px; background: linear-gradient(155deg, rgba(19, 30, 54, 0.92), rgba(10, 16, 30, 0.96)); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.install-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.method-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.method-badge.primary { border: 1px solid rgba(56, 232, 214, 0.35); background: rgba(56, 232, 214, 0.1); color: var(--cyan); }
.method-badge.secondary { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted); margin-bottom: 12px; }
.install-platforms { font-family: var(--mono); font-size: .74rem; color: var(--dim); }
.install-primary-card h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 2.5vw, 2.05rem); line-height: 1.2; letter-spacing: -.03em; color: var(--text); }
.install-lead { max-width: 780px; margin: 0 0 22px; color: var(--muted); font-size: .95rem; line-height: 1.72; }
.install-lead code { padding: 1px 6px; border-radius: 5px; background: rgba(91, 124, 255, 0.15); color: #cbd8ff; font-size: .85em; }

.prompt-box { border: 1px solid rgba(91, 124, 255, 0.32); border-radius: 12px; background: #04070e; overflow: hidden; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid rgba(148, 175, 214, 0.14); background: rgba(255, 255, 255, 0.025); }
.prompt-bar-dots { display: flex; align-items: center; gap: 7px; }
.prompt-bar-dots > span { width: 8px; height: 8px; border-radius: 50%; background: #2d3e57; }
.prompt-bar-dots > span:first-child { background: #e07267; }
.prompt-bar-dots strong { margin-left: 6px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); }
.primary-copy { background: linear-gradient(135deg, var(--indigo-strong), var(--indigo)); border-color: rgba(91, 124, 255, 0.6); color: #fff; font-weight: 650; padding: 6px 14px; }
.primary-copy:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 4px 16px rgba(59, 99, 246, 0.35); }
.prompt-code { margin: 0; padding: 18px 20px; white-space: pre-wrap; word-break: break-word; color: #e2ebff; font-size: .88rem; line-height: 1.7; }

.agent-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.agent-flow > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); font-size: .84rem; color: var(--muted); }
.agent-flow span { font-family: var(--mono); font-size: .74rem; font-weight: 800; color: var(--cyan); }
.agent-flow strong { font-weight: 600; color: var(--text); }

.install-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.install-md-link { color: var(--cyan); font-size: .88rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.install-safety-hint { font-size: .8rem; color: var(--dim); }

.guide-section { background: var(--bg); }
.manual-section { padding-top: 64px; }
.manual-head { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; margin-bottom: 36px; }
.manual-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; color: var(--text); }
.manual-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.quickstart-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.steps { border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step > button { width: 100%; padding: 22px 0; border: 0; background: transparent; display: grid; grid-template-columns: 42px 1fr 24px; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.step > button > span:first-child { font-family: var(--mono); font-size: .74rem; font-weight: 800; color: var(--dim); }
.step > button strong, .step > button small { display: block; }
.step > button strong { font-size: 1.05rem; color: var(--text); }
.step > button small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.step > button svg { width: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; transition: transform .2s; }
.step.active > button svg { transform: rotate(180deg); }
.step.active > button > span:first-child { color: var(--cyan); }
.step-panel { padding: 0 0 24px 54px; color: var(--muted); }
.step-panel p { font-size: .92rem; }
.code-block { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(91, 124, 255, 0.3); border-radius: 9px; background: #04070e; }
.code-block code { flex: 1; min-width: 0; color: #dbe5ff; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #121d33; color: #d5e2f7; font-size: .72rem; cursor: pointer; }
.copy-button:hover { border-color: var(--cyan); color: var(--cyan); }
.hint { margin: 10px 0 0 !important; color: var(--dim); font-size: .8rem !important; }
.endpoint-card { border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(160deg, #0e172a, #080d18); overflow: hidden; }
.terminal-title { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terminal-title > span { width: 8px; height: 8px; border-radius: 50%; background: #30425c; }
.terminal-title > span:first-child { background: #e07267; }
.terminal-title strong { margin-left: 6px; font-size: .76rem; color: var(--muted); }
.endpoint-card dl { margin: 0; padding: 10px 22px; }
.endpoint-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.endpoint-card dt { color: var(--muted); font-size: .84rem; }
.endpoint-card dd { margin: 0; color: var(--cyan); font-family: var(--mono); font-size: .82rem; }
.endpoint-warning { margin: 10px 14px 14px; padding: 18px; border-radius: 10px; background: rgba(245, 184, 85, 0.08); border: 1px solid rgba(245, 184, 85, 0.25); }
.endpoint-warning strong { font-size: .82rem; color: var(--amber); }
.endpoint-warning p { margin: 6px 0 0; color: #d8c8a8; font-size: .8rem; }
.doc-links { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-links a { min-height: 104px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background .2s; }
.doc-links a:hover { background: var(--surface-hover); }
.doc-links span { font-size: .88rem; font-weight: 700; }
.doc-links b { color: var(--cyan); font-family: var(--mono); font-size: .74rem; }

/* Responsive & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 960px) {
    .split-heading, .quickstart-grid, .arch-split, .manual-head, .pillar-row, .gateway-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero { padding-top: 112px; }
    .topo-stage { grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.06fr) 92px minmax(0, 1fr); }
    .agent-flow { grid-template-columns: 1fr; }
    .doc-links { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 28px; }
    .article-toc { position: static; max-height: 240px; }
}

@media (max-width: 680px) {
    body { padding-bottom: 68px; }
    .shell { width: min(calc(100% - 32px), var(--shell)); }
    .brand-badge { display: none; }
    .header-inner { height: 64px; gap: 14px; }
    .main-nav { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-around; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(6, 9, 17, 0.95); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); backdrop-filter: blur(16px); }
    .main-nav a { padding: 2px 8px; font-size: .76rem; }
    .main-nav a::after { bottom: -5px; }
    .hero { padding: 98px 0 64px; }
    .hero-facts { gap: 6px 10px; }
    .hero-facts li { gap: 10px; }
    .topology-panel { padding: 22px 16px 18px; }
    .topo-stage { grid-template-columns: 1fr; gap: 10px; }
    .topo-link svg { width: 24px; height: 24px; transform: rotate(90deg); }
    .section { padding: 76px 0; }
    .arch-panel, .install-primary-card { padding: 22px; }
    .closing-card { padding: 46px 22px; }
    .prompt-bar { flex-wrap: wrap; }
    .step > button { grid-template-columns: 34px 1fr 20px; }
    .step-panel { padding-left: 44px; }
    .code-block { align-items: flex-start; flex-direction: column; }
    .doc-links { grid-template-columns: 1fr; }
    .content-page { padding-top: 98px; }
    .article-pager, .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-inner { padding: 28px 0; gap: 14px; }
    .footer-inner p { margin: 0; }
}
