:root {
  color-scheme: dark;
  --bg: #101816; --panel: #151f1b; --deep: #0b1310; --ink: #f0f5ee;
  --accent: #b9f58b; --muted: #a5b7ad; --dim: #758c80; --line: #2c4035;
  font-family: Inter, -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: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
a:focus-visible, button:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 10; background: var(--accent); color: var(--deep); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { max-width: 1180px; width: calc(100% - 80px); margin-inline: auto; }
code, pre, .eyebrow, .section-kicker, .editor-top, .code-bar, .specs, .diagram-top, .module-mark, .terminal, .brand small { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', 'PingFang SC', monospace; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 79px; gap: 24px; }
.brand { font-size: 23px; font-weight: 760; letter-spacing: -.9px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.brand span { color: var(--accent); margin-left: -8px; }
.brand small { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; margin-left: 4px; }
.header nav, .header-actions, .language { display: flex; align-items: center; gap: 29px; }
.header nav a { color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.header nav a:hover, .header nav a[aria-current] { color: var(--accent); }
.header-actions { gap: 16px; }
.language { gap: 2px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.language a { padding: 6px 8px; border-radius: 4px; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.language a[aria-current] { background: #26392b; color: var(--accent); }
.github { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; }
.github:hover { border-color: var(--accent); color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 50px; align-items: center; padding-block: 70px 67px; min-height: 650px; }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker { font-size: 12px; font-weight: 650; letter-spacing: 1.2px; color: var(--accent); line-height: 1.6; margin: 0 0 22px; }
.eyebrow { display: flex; gap: 10px; align-items: center; }
.eyebrow i, .editor-top i, .diagram-top i, .terminal-label i, .node-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #b9f58350; flex-shrink: 0; }
.hero h1 { font-size: clamp(49px, 5.4vw, 84px); font-weight: 760; letter-spacing: -.068em; line-height: 1.04; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
:lang(zh-cn) .hero h1 { font-size: clamp(38px, 4.25vw, 66px); letter-spacing: -.055em; line-height: 1.2; }
.tagline { font-size: 20px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.3px; }
.lead { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 460px; margin: 0 0 31px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 17px; font-weight: 650; font-size: 14px; border-radius: 7px; border: 1px solid transparent; transition: background .18s, border-color .18s; }
.button.primary { background: var(--accent); color: #172519; }
.button.primary:hover { background: #d1ffae; }
.button.secondary { border-color: #415348; background: #17201c; color: var(--ink); }
.button.secondary:hover { border-color: var(--accent); }
.button svg { width: 17px; height: 17px; }
.install { margin-top: 35px; max-width: 465px; }
.install > p { color: var(--muted); font-size: 12px; margin: 0 0 9px; }
.command { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); background: var(--deep); border-radius: 7px; }
.command > span { color: var(--accent); font-size: 15px; font-family: monospace; }
.command code { font-size: clamp(11px,1.12vw,14px); flex: 1; overflow-wrap: anywhere; color: #e4ecdf; }
.copy { display: none; align-items: center; gap: 5px; color: var(--muted); cursor: pointer; padding: 5px 7px; background: transparent; border: 1px solid transparent; border-radius: 5px; font: inherit; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.copy.ready { display: inline-flex; }
.copy:hover { color: var(--accent); border-color: var(--line); }
.copy svg { width: 15px; height: 15px; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-visual { min-width: 0; position: relative; isolation: isolate; padding: 18px; border: 1px solid #354b3d; border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, #30432b 0, transparent 55%), #17211c; }
.hero-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(#b9f58b07 1px, transparent 1px), linear-gradient(90deg,#b9f58b07 1px,transparent 1px); background-size: 26px 26px; }
.editor-top, .diagram-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .4px; gap: 10px; margin: 0 0 14px; }
.editor-top > span, .diagram-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.editor-top small { color: var(--dim); font-size: 10px; }
.code-window { min-width: 0; background: #0c1410; border: 1px solid #324338; border-radius: 10px; overflow: hidden; }
.code-bar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid #273b30; background: #17211b; }
.code-bar > span { flex: 1; }
.hero-code .code-bar > span { text-align: center; }
.dots { display: flex; gap: 5px; width: 45px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #52705d; }
.dots i:first-child { background: #d68b82; }.dots i:nth-child(2) { background: #d9bc7b; }.dots i:last-child { background: #98d99c; }
pre { margin: 0; overflow-x: auto; padding: 19px 17px; tab-size: 4; font-size: 13px; line-height: 1.64; color: #dce9de; scrollbar-width: thin; scrollbar-color: #415b48 transparent; }
pre code { font-family: inherit; }
.hero-code pre { font-size: clamp(10.2px, .94vw, 13px); line-height: 1.62; padding: 16px 13px; }
.tok-kw { color: #cfafff; }.tok-type { color: #91d8e2; }.tok-str { color: #b9f58b; }.tok-var { color: #edc899; }.tok-comment { color: #819788; }.tok-num { color: #f2b6a0; }
.terminal { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #273b30; padding: 11px 13px; background: #111b15; font-size: 12px; }
.terminal b { color: var(--accent); font-weight: 500; }.terminal-label { color: var(--muted); display: flex; align-items: center; gap: 7px; font-size: 10px; }
.terminal-label i { width: 5px; height: 5px; }.terminal-note { color: var(--dim); font-size: 10px; }
.visual-note { font-size: 10px; line-height: 1.6; margin: 13px 0 0; text-align: center; color: var(--muted); }
.spec-strip { border-block: 1px solid var(--line); background: #141e18; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-block: 23px; }
.specs span { display: flex; align-items: center; justify-content: center; gap: 10px; color: #c3d4c8; font-size: 12px; font-weight: 600; text-align: center; }
.specs span + span { border-left: 1px solid var(--line); }.specs b { color: var(--accent); font-size: 17px; font-weight: 400; }
.section { padding-top: 95px; }.section-kicker { margin-bottom: 16px; }
.section-heading { display: flex; align-items: flex-end; gap: 28px; justify-content: space-between; margin-bottom: 32px; }
h2 { font-size: clamp(33px, 4.1vw, 53px); font-weight: 730; line-height: 1.14; letter-spacing: -.05em; margin: 0; text-wrap: balance; }
.section-heading h2 { max-width: 680px; }.section-heading p, .arch-copy > p, .cta p:not(.section-kicker) { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; max-width: 360px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.module { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; min-height: 210px; }
.module-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.module-icon { display: grid; width: 43px; height: 43px; place-items: center; color: var(--accent); background: #253b28; border: 1px solid #38523a; border-radius: 8px; }
.module-icon svg { width: 24px; height: 24px; }.module-mark { color: var(--dim); font-size: 17px; }
.module h3, .property-list h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.4px; margin: 0 0 7px; }
.module code { display: block; font-size: 11px; color: var(--accent); overflow-wrap: anywhere; }.module p, .property-list p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 12px 0 0; }
.architecture { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 38px; align-items: center; }
.arch-copy h2 { margin: 0 0 17px; }.arch-copy > p { max-width: 510px; }
.property-list { margin-top: 25px; }.property-list article { display: flex; gap: 16px; align-items: flex-start; padding-block: 17px; border-top: 1px solid var(--line); }
.property-list article > span { color: var(--accent); font-size: 18px; }.property-list h3 { font-size: 17px; margin: 0 0 4px; }.property-list p { margin: 0; }
.arch-visual { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #0c1510; background-image: radial-gradient(#334638 1px,transparent 1px); background-size: 20px 20px; }
.diagram-top { padding-bottom: 16px; border-bottom: 1px solid var(--line); }.diagram { display: flex; flex-direction: column; align-items: center; padding: 13px 0 2px; }
.node { width: min(100%,300px); padding: 14px; text-align: center; color: #dcebdc; background: #1b2920; border: 1px solid #425c47; border-radius: 8px; font-size: 14px; font-weight: 600; }
.node small { display: block; color: var(--muted); margin-top: 6px; font: 10px 'SFMono-Regular', monospace; }.connector { height: 24px; width: 1px; background: #699b64; }
.node.workers { width: min(100%,360px); }.worker-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 11px; }.worker-row span { display: block; border: 1px solid #49664a; background: #233a27; color: var(--accent); font: 11px monospace; padding: 9px 6px; border-radius: 4px; }
.node.scheduler { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%,350px); background: #b9f58b; color: #1a2e1e; border-color: #b9f58b; }.node-dot { background: #527b45; box-shadow: none; }
.branch { width: 70%; height: 28px; display: flex; justify-content: space-between; align-items: flex-start; position: relative; }.branch::before { content: ''; position: absolute; top: 14px; width: 100%; height: 1px; background: #699b64; }.branch i { height: 14px; width: 1px; margin-top: 14px; background: #699b64; }.branch i:nth-child(2) { margin-top: 0; height: 28px; }
.io-row { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.io-row div { text-align: center; padding: 14px 6px; background: #17251a; border: 1px solid #425c47; border-radius: 6px; color: #cde8c5; font: 12px 'SFMono-Regular', monospace; }
.diagram > p { font-size: 10px; color: var(--muted); line-height: 1.5; text-align: center; margin: 18px 0 0; }
.example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.example-grid .code-window { min-height: 230px; }.example-grid pre { font-size: 13px; }
.cta-wrap { padding-bottom: 65px; }.cta { padding: 43px 38px; border: 1px solid #466147; background: radial-gradient(ellipse at 5% 0%,#2b4428,transparent 65%),#1b291e; border-radius: 14px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 34px; align-items: center; }.cta h2 { font-size: clamp(32px,3.5vw,47px); margin-bottom: 15px; }.cta p:not(.section-kicker) { max-width: 560px; margin-bottom: 22px; }.cta-code pre { font-size: 12px; line-height: 1.9; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 25px; border-top: 1px solid var(--line); padding-block: 28px 37px; }.footer .brand { font-size: 19px; }.footer p, .footer > small { font-size: 12px; color: var(--muted); margin: 7px 0 0; }.footer > small { margin: 0; }.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }.footer-links a { font-size: 13px; color: var(--muted); }.footer-links a:hover { color: var(--accent); }
/* Documentation */
.docs-layout { display: grid; grid-template-columns: 210px minmax(0,1fr) 170px; gap: 38px; padding-block: 45px 75px; min-height: 68vh; align-items: start; }
.docs-sidebar, .doc-toc { position: sticky; top: 25px; }.docs-back, .docs-source { color: var(--muted); font-size: 13px; }.docs-back:hover, .docs-source:hover { color: var(--accent); }.docs-sidebar h2 { font-size: 18px; letter-spacing: -.2px; margin: 25px 0 17px; }.docs-sidebar nav, .doc-toc nav { display: flex; flex-direction: column; gap: 4px; }.docs-sidebar nav a { padding: 12px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid transparent; }.docs-sidebar nav a span { opacity: 0; }.docs-sidebar nav a:hover, .docs-sidebar nav a[aria-current] { background: #233626; border-color: #385239; color: var(--accent); }.docs-sidebar nav a:hover span, .docs-sidebar nav a[aria-current] span { opacity: 1; }.docs-source { margin-top: 24px; display: flex; align-items: center; gap: 7px; }.docs-source svg { width: 16px; height: 16px; }
.doc-article { min-width: 0; border-inline: 1px solid var(--line); padding-inline: 30px; }.doc-article h1 { font-size: clamp(34px,4vw,49px); letter-spacing: -.055em; line-height: 1.15; margin: 0 0 13px; }.doc-intro { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0 0 40px; }.doc-section { margin: 0 0 38px; scroll-margin-top: 24px; }.doc-section h2 { font-size: 25px; letter-spacing: -.6px; line-height: 1.35; margin: 0 0 11px; text-wrap: initial; }.doc-section p { font-size: 15px; line-height: 1.85; color: #bdcdc2; margin: 0 0 16px; overflow-wrap: anywhere; }.doc-section pre { font-size: 12px; }.doc-link { display: inline-block; color: var(--accent); border-bottom: 1px solid #4e7047; padding-bottom: 4px; font-size: 14px; }.doc-toc p { font-size: 13px; color: var(--ink); font-weight: 650; margin: 0 0 14px; }.doc-toc nav { border-left: 1px solid var(--line); padding-left: 12px; gap: 10px; }.doc-toc a { color: var(--muted); font-size: 12px; line-height: 1.5; }.doc-toc a:hover { color: var(--accent); }.next-guide { display: flex; justify-content: space-between; gap: 15px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 25px; }.next-guide:hover { border-color: var(--accent); }.next-guide small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 5px; }.next-guide strong { color: var(--accent); font-size: 16px; }
@media(max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }.hero { gap: 25px; padding-block: 55px; min-height: auto; }.hero-visual { padding: 13px; }.header nav { gap: 18px; }.header-actions { gap: 10px; }.section { padding-top: 75px; }.module { padding: 20px; }.architecture { gap: 25px; }.docs-layout { grid-template-columns: 185px minmax(0,1fr); gap: 24px; }.doc-toc { display: none; }.doc-article { border-right: 0; padding-right: 0; }.cta { padding: 30px; gap: 20px; }
}
@media(max-width: 760px) {
  .wrap { width: calc(100% - 36px); }.header-inner { min-height: 72px; height: auto; flex-wrap: wrap; gap: 9px; padding-block: 12px; }.header nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; gap: 10px; }.header nav a { font-size: 13px; }.brand { font-size: 21px; }.brand img { width: 33px; height: 33px; }.brand small { display: none; }.github { padding: 8px; }.github span { display: none; }.hero { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 42px 30px; }.hero h1 { font-size: clamp(46px,9vw,72px); margin-bottom: 15px; }:lang(zh-cn) .hero h1 { font-size: clamp(38px,8.1vw,62px); }.tagline { font-size: 19px; }.lead { font-size: 16px; max-width: 560px; margin-bottom: 23px; }.install { margin-top: 25px; }.command code { font-size: 12px; }.hero-visual { max-width: 580px; width: 100%; justify-self: center; }.hero-code pre { font-size: 12px; }.specs { grid-template-columns: repeat(2,1fr); gap: 12px; padding-block: 17px; }.specs span:nth-child(3) { border-left: 0; }.section { padding-top: 55px; }.section-heading { display: block; margin-bottom: 24px; }.section-heading h2 { margin-bottom: 12px; }.section-heading p { font-size: 15px; max-width: 540px; }.module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.module { min-height: 190px; }.architecture, .cta { grid-template-columns: minmax(0,1fr); }.arch-copy h2 { margin-bottom: 13px; }.arch-visual { padding: 18px; }.example-grid { grid-template-columns: minmax(0,1fr); }.cta-wrap { padding-bottom: 35px; }.cta { padding: 25px 20px; }.footer { gap: 18px; }.footer-links { order: 3; width: 100%; }.docs-layout { grid-template-columns: minmax(0,1fr); padding-block: 24px 45px; gap: 20px; }.docs-sidebar { position: static; }.docs-sidebar h2 { margin: 13px 0 8px; }.docs-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 5px; }.docs-sidebar nav a { padding: 8px; font-size: 12px; }.docs-sidebar nav a span { display: none; }.docs-source { display: none; }.doc-article { border: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }.doc-intro { margin-bottom: 28px; font-size: 16px; }
}
@media(max-width: 470px) {
  .header-actions { gap: 6px; }.language a { padding: 5px 6px; }.hero h1 { font-size: clamp(43px,10vw,53px); }:lang(zh-cn) .hero h1 { font-size: clamp(34px,8.4vw,43px); }.eyebrow { margin-bottom: 17px; }.module-grid { grid-template-columns: minmax(0,1fr); }.module { min-height: auto; padding: 19px; }.module-top { margin-bottom: 13px; }.hero-code pre { font-size: 10.5px; padding: 12px 9px; }.hero-visual { padding: 9px; }.editor-top { margin: 3px 0 10px; font-size: 10px; }.hero-visual .code-bar { min-height: 38px; }.specs span { font-size: 11px; }.command { gap: 6px; padding-inline: 9px; }.command code { font-size: 11px; }.command .copy { padding-inline: 3px; }.command .copy span { max-width: 45px; overflow: hidden; text-overflow: ellipsis; }.terminal { font-size: 11px; }.example-grid pre, .doc-section pre { font-size: 11px; }.footer > small { font-size: 11px; }.footer-links { gap: 12px; }.doc-section h2 { font-size: 22px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.button { transition: none; } }
