:root {
color-scheme: dark;
--bg: #0a0b10;
--bg-2: #0e1016;
--surface: #13151d;
--surface-2: #1a1d28;
--border: #252938;
--border-2: #313649;
--text: #e8eaf1;
--muted: #a0a8b8;
--dim: #6e7689;
--accent: #8b7dff;
--accent-2: #b4aaff;
--accent-ink: #0d0a24;
--accent-soft: rgba(139, 125, 255, 0.12);
--green: #3fb950;
--blue: #58a6ff;
--yellow: #d29922;
--red: #f85149;
--radius: 14px;
--radius-sm: 9px;
--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
--mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
--wrap: 1160px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 16px/1.65 var(--font);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
min-height: 44px; padding: 0 20px; border-radius: 10px;
font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); color: #fff; border-color: #454b63; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.site-header {
position: sticky; top: 0; z-index: 50;
background: rgba(10, 11, 16, 0.94);
border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px #3a3f52; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.header-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: flex; gap: 10px; }
.nav-menu { display: none; position: relative; }
.nav-menu > summary {
list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--surface);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary svg { width: 22px; height: 22px; }
.nav-panel {
position: absolute; right: 0; top: 52px; width: min(88vw, 320px);
background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.nav-panel a { display: block; padding: 12px 14px; border-radius: 9px; color: var(--text); text-decoration: none; }
.nav-panel a:hover { background: var(--surface-2); }
.nav-panel .btn { width: 100%; margin-top: 8px; }
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
content: ""; position: absolute; inset: -40% -10% auto; height: 760px; pointer-events: none;
background:
radial-gradient(closest-side at 30% 45%, rgba(139, 125, 255, 0.22), transparent 70%),
radial-gradient(closest-side at 75% 35%, rgba(88, 166, 255, 0.10), transparent 70%);
}
.hero .container { position: relative; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow { text-decoration: none;
display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-2);
background: var(--accent-soft); border: 1px solid rgba(139, 125, 255, 0.28);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(38px, 6.4vw, 70px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.grad { background: linear-gradient(92deg, #c8c0ff, #8b7dff 45%, #58a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 14px; }
.hero-meta li::before { content: "✓"; color: var(--green); margin-right: 7px; font-weight: 700; }
.hero-demo { margin-top: 52px; }
.demo-hint { text-align: center; color: var(--dim); font-size: 14px; margin-top: 14px; }
.demo {
--d-bg: #0d1117; --d-bar: #11141b; --d-border: #262b37; --d-text: #e6edf3; --d-muted: #8b949e;
--d-active: #1b2030; --d-code: #161b22; --d-mark: #7d8590; --d-h: #e6edf3; --d-link: #79c0ff;
position: relative; border: 1px solid var(--border-2); border-radius: 16px; overflow: hidden;
background: var(--d-bg); color: var(--d-text);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
text-align: left;
}
.demo.is-light {
--d-bg: #ffffff; --d-bar: #f6f8fa; --d-border: #d8dee4; --d-text: #1f2328; --d-muted: #59636e;
--d-active: #eaeef2; --d-code: #f6f8fa; --d-mark: #8c959f; --d-h: #1f2328; --d-link: #0969da;
}
.demo-top { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 12px; background: var(--d-bar); border-bottom: 1px solid var(--d-border); }
.demo-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.demo-brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px #3a3f52; }
.demo-files { display: flex; gap: 2px; color: var(--d-muted); font-size: 13px; }
.demo-files span { padding: 5px 9px; border-radius: 7px; }
.demo-seg { display: flex; margin-left: auto; padding: 3px; gap: 2px; border-radius: 9px; background: var(--d-bg); border: 1px solid var(--d-border); }
.demo button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.demo-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; font-size: 13px; color: var(--d-muted); }
.demo-seg button[aria-pressed="true"] { background: var(--d-active); color: var(--d-text); }
.demo-seg svg, .demo-icon svg, .demo-tool svg { width: 16px; height: 16px; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--green); background: rgba(63, 185, 80, 0.12); border: 1px solid rgba(63, 185, 80, 0.3); }
.demo-pill svg { width: 15px; height: 15px; }
.demo-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--d-muted); }
.demo-icon:hover, .demo-tool:hover { background: var(--d-active); color: var(--d-text); }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; height: 470px; }
.demo[data-mode="editor"] .demo-body { grid-template-columns: 1fr 0; }
.demo[data-mode="preview"] .demo-body { grid-template-columns: 0 1fr; }
.demo[data-mode="editor"] .demo-right, .demo[data-mode="preview"] .demo-left { display: none; }
.demo[data-mode="editor"] .demo-body, .demo[data-mode="preview"] .demo-body { grid-template-columns: 1fr; }
.demo-left { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--d-border); }
.demo-tabs { display: flex; align-items: flex-end; gap: 2px; height: 42px; padding: 0 8px; border-bottom: 1px solid var(--d-border); overflow-x: auto; scrollbar-width: none; }
.demo-tab { padding: 8px 12px !important; border-radius: 8px 8px 0 0; font-size: 13px !important; color: var(--d-muted) !important; white-space: nowrap; border: 1px solid transparent !important; border-bottom: 0 !important; }
.demo-tab[aria-selected="true"] { color: var(--d-text) !important; background: var(--d-active) !important; border-color: var(--d-border) !important; }
.demo-toolbar { display: flex; align-items: center; gap: 2px; height: 42px; padding: 0 8px; border-bottom: 1px solid var(--d-border); overflow-x: auto; scrollbar-width: none; }
.demo-tool { display: grid; place-items: center; min-width: 32px; height: 30px; border-radius: 7px; color: var(--d-muted) !important; font-weight: 700 !important; font-size: 14px !important; }
.demo-sep { width: 1px; height: 18px; margin: 0 5px; background: var(--d-border); flex: none; }
.demo-editor { position: relative; flex: 1; min-height: 0; }
.demo-code, .demo-input {
position: absolute; inset: 0; margin: 0; padding: 16px 18px; border: 0;
font: 13.5px/1.7 var(--mono); letter-spacing: 0; tab-size: 2;
white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal;
overflow-y: scroll; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--d-border) transparent;
}
.demo-code { color: var(--d-text); pointer-events: none; background: transparent; }
.demo-input { background: transparent; color: transparent; caret-color: var(--accent); resize: none; outline: none; }
.demo-input::selection { background: rgba(139, 125, 255, 0.35); color: transparent; }
.demo.is-typing .demo-input { caret-color: transparent; }
.demo.is-typing .demo-code::after { content: ""; display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-h { color: var(--d-h); font-weight: 700; }
.t-mark, .t-fence { color: var(--d-mark); }
.t-quote { color: var(--d-muted); font-style: italic; }
.t-code { color: #ffa657; }
.demo.is-light .t-code { color: #953800; }
.t-link { color: var(--d-link); }
.t-url, .t-table { color: var(--d-muted); }
.demo-code b { font-weight: 700; }
.demo-right { min-width: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--d-border) transparent; }
.demo-preview { padding: 18px 26px 28px; }
.demo-statusbar { display: flex; justify-content: space-between; gap: 10px; height: 30px; padding: 0 14px; align-items: center; font-size: 12px; color: var(--d-muted); background: var(--d-bar); border-top: 1px solid var(--d-border); white-space: nowrap; overflow: hidden; }
.demo-statusbar .ok { color: var(--green); }
.md { font-size: 15.5px; line-height: 1.6; color: var(--d-text, var(--text)); overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2 { padding-bottom: 0.3em; border-bottom: 1px solid var(--d-border, var(--border)); }
.md h1 { font-size: 1.9em; margin: 0 0 16px; }
.md h2 { font-size: 1.45em; margin: 24px 0 14px; }
.md h3 { font-size: 1.2em; margin: 22px 0 12px; }
.md p, .md ul, .md ol, .md table, .md pre, .md blockquote, .md .md-alert { margin: 0 0 14px; }
.md ul, .md ol { padding-left: 1.7em; }
.md li + li { margin-top: 3px; }
.md li.task { list-style: none; margin-left: -1.4em; }
.md li.task input { margin: 0 6px 0 0; vertical-align: -1px; accent-color: var(--accent); }
.md a { color: var(--d-link, var(--blue)); text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md code { padding: 0.15em 0.4em; font-size: 0.86em; border-radius: 6px; background: var(--d-code, var(--surface-2)); }
.md pre { padding: 14px 16px; border-radius: 9px; overflow-x: auto; background: var(--d-code, var(--surface-2)); font-size: 13px; line-height: 1.55; }
.md pre code { padding: 0; background: none; font-size: inherit; }
.md blockquote { margin-left: 0; padding: 0 1em; color: var(--d-muted, var(--muted)); border-left: 4px solid var(--d-border, var(--border-2)); }
.md table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.md th, .md td { padding: 7px 13px; border: 1px solid var(--d-border, var(--border-2)); }
.md th { font-weight: 600; }
.md tr:nth-child(2n) td { background: rgba(127, 127, 127, 0.06); }
.md .a-center { text-align: center; }
.md .a-right { text-align: right; }
.md hr { height: 3px; border: 0; background: var(--d-border, var(--border)); margin: 20px 0; }
.md mark { background: rgba(210, 153, 34, 0.35); color: inherit; padding: 0 2px; border-radius: 3px; }
.md .md-img { color: var(--d-muted, var(--muted)); font-style: italic; }
.md-alert { padding: 6px 16px; border-left: 4px solid; }
.md-alert > :last-child { margin-bottom: 8px; }
.md-alert-title { font-weight: 600; margin: 4px 0 6px !important; }
.md-alert-note { border-color: #4493f8; } .md-alert-note .md-alert-title { color: #4493f8; }
.md-alert-tip { border-color: #3fb950; } .md-alert-tip .md-alert-title { color: #3fb950; }
.md-alert-important { border-color: #ab7df8; } .md-alert-important .md-alert-title { color: #ab7df8; }
.md-alert-warning { border-color: #d29922; } .md-alert-warning .md-alert-title { color: #d29922; }
.md-alert-caution { border-color: #f85149; } .md-alert-caution .md-alert-title { color: #f85149; }
.md math[display="block"] { margin: 12px 0; font-size: 1.2em; }
.md math { font-size: 1.1em; }
.md sup a { font-size: 0.8em; }
.md .footnotes { font-size: 0.88em; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; margin-bottom: 12px; font: 700 13px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.strip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.strip li { display: inline-flex; align-items: center; gap: 9px; }
.strip svg { width: 18px; height: 18px; color: var(--accent); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card:hover { border-color: var(--border-2); }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(139, 125, 255, 0.22); }
.icon svg { width: 22px; height: 22px; }
.tabs-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tab-list label { cursor: pointer; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); user-select: none; }
.tab-list label:hover { color: var(--text); border-color: var(--border-2); }
.panel { display: none; }
#sc-math:checked ~ .panels .p-math,
#sc-diagram:checked ~ .panels .p-diagram,
#sc-code:checked ~ .panels .p-code,
#sc-alerts:checked ~ .panels .p-alerts,
#sc-tables:checked ~ .panels .p-tables,
#sc-foot:checked ~ .panels .p-foot { display: grid; }
#sc-math:checked ~ .tab-list [for="sc-math"],
#sc-diagram:checked ~ .tab-list [for="sc-diagram"],
#sc-code:checked ~ .tab-list [for="sc-code"],
#sc-alerts:checked ~ .tab-list [for="sc-alerts"],
#sc-tables:checked ~ .tab-list [for="sc-tables"],
#sc-foot:checked ~ .tab-list [for="sc-foot"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tabs-radio:focus-visible ~ .tab-list label { outline: none; }
#sc-math:focus-visible ~ .tab-list [for="sc-math"],
#sc-diagram:focus-visible ~ .tab-list [for="sc-diagram"],
#sc-code:focus-visible ~ .tab-list [for="sc-code"],
#sc-alerts:focus-visible ~ .tab-list [for="sc-alerts"],
#sc-tables:focus-visible ~ .tab-list [for="sc-tables"],
#sc-foot:focus-visible ~ .tab-list [for="sc-foot"] { outline: 2px solid #fff; outline-offset: 2px; }
.split { grid-template-columns: 1fr 1fr; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; background: #0d1117; }
.split > div { min-width: 0; }
.split-label { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--border); background: #11141b; }
.split-src { border-right: 1px solid var(--border); }
.split-src pre { margin: 0; padding: 18px; font-size: 13.5px; line-height: 1.65; color: #d1d7e0; white-space: pre-wrap; overflow-wrap: anywhere; }
.split-out { padding: 20px 24px; }
.split-note { grid-column: 1 / -1; margin: 0; padding: 12px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); background: #11141b; }
.diagram { display: block; width: 100%; max-width: 520px; margin: 8px auto; }
.diagram .n { fill: #1b2030; stroke: #8b7dff; stroke-width: 1.5; }
.diagram .n2 { fill: #1b2030; stroke: #58a6ff; stroke-width: 1.5; }
.diagram .l { fill: #e6edf3; font: 600 13px var(--font); text-anchor: middle; dominant-baseline: middle; }
.diagram .e { stroke: #7d8590; stroke-width: 1.5; fill: none; }
.diagram .el { fill: #a0a8b8; font: 12px var(--font); text-anchor: middle; }
.diagram .ah { fill: #7d8590; }
.screens { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); background: #0d1117; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.shot img { display: block; width: 100%; }
.theme-switch { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.theme-switch label { cursor: pointer; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.shot.is-light, .phone.is-light { display: none; }
#th-light:checked ~ .screens .is-dark { display: none; }
#th-light:checked ~ .screens .is-light { display: block; }
#th-dark:checked ~ .theme-switch [for="th-dark"],
#th-light:checked ~ .theme-switch [for="th-light"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
#th-dark:focus-visible ~ .theme-switch [for="th-dark"],
#th-light:focus-visible ~ .theme-switch [for="th-light"] { outline: 2px solid #fff; outline-offset: 2px; }
.phone { border-radius: 34px; padding: 10px; background: #1a1d28; border: 1px solid var(--border-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.phone img { display: block; width: 100%; border-radius: 26px; }
.caption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--dim); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }
.flow { display: grid; gap: 12px; }
.flow-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.flow-row .icon { width: 40px; height: 40px; }
.flow-row p { margin: 0; color: var(--muted); font-size: 15px; }
.flow-row strong { display: block; color: var(--text); }
.flow-arrow { text-align: center; color: var(--dim); line-height: 1; }
.steps { counter-reset: step; }
.step { position: relative; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: var(--accent-ink); background: var(--accent); }
.step code { font-size: 13.5px; color: var(--accent-2); }
.alt-deploy { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
a.chip:hover { color: var(--text); border-color: var(--border-2); }
.center { text-align: center; }
.mt-lg { margin-top: 36px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.post-card:hover { border-color: var(--accent); color: var(--text); }
.post-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); }
.post-card h3 { font-size: 19px; margin: 14px 0 8px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.post-meta { margin-top: auto; font-size: 13.5px; color: var(--dim); }
.post-card .more { color: var(--accent-2); font-weight: 600; }
.cta-band { position: relative; overflow: hidden; padding: 64px 32px; border-radius: 22px; text-align: center; border: 1px solid rgba(139, 125, 255, 0.35); background: radial-gradient(120% 140% at 50% 0%, rgba(139, 125, 255, 0.25), transparent 60%), var(--surface); }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 28px; font-size: 18px; }
.site-footer { margin-top: 96px; padding: 56px 0 36px; border-top: 1px solid var(--border); background: var(--bg-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 14px; }
.page-head { padding: 64px 0 36px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.page-head .lead { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
.article-head { max-width: 780px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: 14.5px; margin-top: 14px; }
.toc { position: sticky; top: 88px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; }
.toc h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--dim); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc .btn { width: 100%; margin-top: 18px; color: var(--accent-ink); }
.toc .btn:hover { color: var(--accent-ink); }
.prose { font-size: 17.5px; line-height: 1.75; color: #d5d9e3; max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 30px; margin: 56px 0 16px; color: var(--text); scroll-margin-top: 84px; }
.prose h3 { font-size: 22px; margin: 36px 0 12px; color: var(--text); scroll-margin-top: 84px; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose blockquote { margin: 0 0 22px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-2); }
.prose a:hover { color: #fff; }
.prose :not(pre) > code { padding: 0.15em 0.4em; border-radius: 6px; font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border); color: #e8d9ff; }
.prose pre { position: relative; padding: 18px 20px; border-radius: 12px; overflow-x: auto; background: #0d1117; border: 1px solid var(--border); font-size: 14px; line-height: 1.6; }
.prose pre code { color: #d1d7e0; }
.prose blockquote { padding: 4px 20px; color: var(--muted); border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border-2); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 40px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--border-2); }
.prose .md-alert { margin: 0 0 22px; padding: 10px 18px; background: var(--surface); border-radius: 0 10px 10px 0; }
.copy-btn { position: absolute; top: 8px; right: 8px; padding: 5px 10px; border-radius: 7px; font: 600 12px var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-2); cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.pre-lang { position: absolute; top: 10px; right: 76px; font: 600 11px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.try-box { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: space-between; margin: 44px 0; padding: 26px 28px; border-radius: var(--radius); border: 1px solid rgba(139, 125, 255, 0.35); background: radial-gradient(140% 160% at 0% 0%, rgba(139, 125, 255, 0.18), transparent 60%), var(--surface); }
.try-box h2, .try-box .h { font-size: 21px; margin: 0 0 4px; color: var(--text); }
.try-box p { margin: 0; color: var(--muted); font-size: 16px; }
.try-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.article-faq { margin-top: 56px; }
.article-faq h2 { margin-top: 0; }
.related { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--border); }
.related h2 { font-size: 26px; margin-bottom: 22px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.pager a { display: block; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 4px; }
.pager .next { text-align: right; grid-column: 2; }
.hljs-comment, .hljs-quote { color: #8b949e; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-type, .hljs-doctag, .hljs-meta .hljs-keyword { color: #ff7b72; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-meta .hljs-string { color: #a5d6ff; }
.hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable, .hljs-attr, .hljs-attribute, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id { color: #79c0ff; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #d2a8ff; }
.hljs-name, .hljs-tag, .hljs-built_in, .hljs-symbol, .hljs-bullet { color: #7ee787; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
.hljs-link { color: #a5d6ff; text-decoration: underline; }
.hljs-deletion { color: #ffa198; }
.hljs-meta { color: #79c0ff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.contact-card:hover { border-color: var(--accent); color: var(--text); }
.contact-card h2 { font-size: 20px; margin: 16px 0 8px; }
.contact-card p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.contact-card .more { margin-top: auto; color: var(--accent-2); font-weight: 600; }
.note-box { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--border-2); color: var(--muted); }
.notfound { padding: 120px 0 40px; text-align: center; }
.notfound .big { font-size: clamp(80px, 16vw, 160px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; margin-bottom: 12px; }
@media (max-width: 1020px) {
.grid-3, .posts, .contact-grid { grid-template-columns: 1fr 1fr; }
.article-wrap { grid-template-columns: minmax(0, 1fr); }
.toc { position: static; order: -1; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.nav-links { display: none; }
.header-cta { display: none; }
.nav-menu { display: block; }
}
@media (max-width: 860px) {
.two-col { grid-template-columns: 1fr; gap: 36px; }
.screens { grid-template-columns: 1fr; }
.phone { max-width: 300px; margin: 0 auto; }
.split { grid-template-columns: 1fr; }
.split-src { border-right: 0; border-bottom: 1px solid var(--border); }
.demo-body { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; height: 560px; }
.demo[data-mode="editor"] .demo-body, .demo[data-mode="preview"] .demo-body { grid-template-rows: 1fr; height: 440px; }
.demo-left { border-right: 0; border-bottom: 1px solid var(--d-border); }
.demo-files, .demo-pill .txt, .demo-seg .txt { display: none; }
}
@media (max-width: 640px) {
body { font-size: 15.5px; }
.container { padding: 0 16px; }
.hero { padding: 44px 0 24px; }
.hero-actions .btn { width: 100%; }
.hero-demo { margin: 36px -6px 0; }
.section { padding: 68px 0; }
.section-head { margin-bottom: 34px; }
.grid-3, .posts, .contact-grid, .pager { grid-template-columns: 1fr; }
.pager .next { grid-column: auto; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
.prose { font-size: 16.5px; }
.prose h2 { font-size: 25px; margin-top: 44px; }
.cta-band { padding: 44px 20px; }
.cta-band .btn { width: 100%; }
.try-box { padding: 22px; }
.demo-top { padding: 0 8px; gap: 6px; }
.demo-brand span { display: none; }
.demo-statusbar .hide-sm { display: none; }
.brand-name-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; }
}
@media print {
.site-header, .site-footer, .toc, .try-box, .related, .pager, .copy-btn { display: none !important; }
body { background: #fff; color: #000; }
.prose { color: #000; }
}
.mt-0 { margin: 12px 0 0; }
.prose .math-demo { margin: -8px 0 26px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; text-align: center; }
.prose .math-demo math { font-size: 1.25em; }
.prose .diagram-fig { margin: -8px 0 26px; padding: 18px; border-radius: 12px; background: #0d1117; border: 1px solid var(--border); }
.post-card h3, .post-card p { overflow-wrap: anywhere; }
.prose .a-center { text-align: center; }
.prose .a-right { text-align: right; }
.lang-menu { position: relative; }
.lang-menu > summary {
list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; border: 1px solid var(--border-2); background: var(--surface);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { color: var(--text); }
.lang-menu > summary svg { width: 16px; height: 16px; }
.lang-panel {
position: absolute; right: 0; top: 46px; z-index: 60; width: 220px; max-height: min(70vh, 520px); overflow-y: auto;
display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.lang-panel a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang-panel a:hover { background: var(--surface-2); }
.lang-panel a[aria-current] { color: var(--accent-2); background: var(--accent-soft); }
.lang-list a { color: var(--muted); text-decoration: none; }
.lang-list a:hover { color: var(--text); }
@media (max-width: 1020px) { .lang-menu > summary { height: 44px; border-radius: 10px; } }
.chip svg { width: 16px; height: 16px; flex: none; color: var(--accent-2); }