:root {
  color-scheme: light;
  --bg: #f8faf7; --surface: #fff; --ink: #152d26; --muted: #4a635a; --line: #d6e1d9;
  --accent: #286b48; --wash: #e8f1e9; --dot: #adc5b790; --solid: #194633; --on-solid: #fff;
  font: 16px/1.6 Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111d19; --surface: #16251f; --ink: #e8f2ea; --muted: #acbeb2; --line: #34483e;
  --accent: #a2deaa; --wash: #20382a; --dot: #46675380; --solid: #b6ee9d; --on-solid: #11281b;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink) }
h1, h2, h3, p, pre { margin: 0 }
a { color: inherit; text-decoration: none }
a:hover { text-decoration: underline; text-underline-offset: 4px }
button, select { font: inherit; color: inherit; cursor: pointer }
button { border: 0; background: transparent }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #468e6b; outline-offset: 4px }
.wrap { width: min(1184px, calc(100% - 80px)); margin-inline: auto }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line) }
.top-inner, .brand, .main-nav, .tools, .locale, .actions, .button, .example-head, .result, footer .wrap { display: flex; align-items: center }
.top-inner { min-height: 72px; gap: clamp(16px, 4vw, 60px) }
.brand { gap: 9px; font-size: 21px; font-weight: 760; letter-spacing: -.045em; white-space: nowrap }
.brand img { border-radius: 8px }
.main-nav, .tools { gap: clamp(11px, 1.7vw, 24px); font-size: 14px; font-weight: 560; white-space: nowrap }
.main-nav a { color: var(--muted) }
.main-nav [aria-current] { color: var(--accent); font-weight: 730 }
.tools { margin-left: auto; gap: 13px }
.locale { gap: 3px }
.locale select { max-width: 60px; padding: 4px 0; border: 0; background: var(--surface) }
.theme { width: 34px; height: 36px; font-size: 23px; line-height: 1; border-radius: 6px }
.theme-label { display: none }
@media (min-width: 1100px) {
  .theme { width: auto; display: inline-flex; align-items: center; gap: 5px }
  .theme-label { display: inline; font-size: 13px }
}
.theme:hover { background: var(--wash) }
.divider { width: 1px; height: 18px; background: var(--line) }
.signup, .primary { background: var(--solid); color: var(--on-solid) }
.signup { padding: 6px 15px; border-radius: 7px }
.hero { border-bottom: 1px solid var(--line); background-image: radial-gradient(var(--dot) .8px, transparent .9px); background-size: 18px 18px }
.hero-grid { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; gap: clamp(30px, 5vw, 76px); padding-block: clamp(52px, 6.5vw, 93px) }
.hero-grid > *, .steps > *, .questions { min-width: 0 }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 650 12px/1.5 ui-monospace, monospace; letter-spacing: .14em; color: var(--accent) }
.eyebrow i { width: 20px; height: 2px; background: currentColor }
h1 { margin: 15px 0 16px; font-size: clamp(38px, 4.8vw, 67px); line-height: 1.17; font-weight: 720; letter-spacing: -.055em }
h1 strong { color: var(--accent); font-weight: inherit }
.tagline { font-weight: 650; font-size: clamp(15px, 1.45vw, 21px); letter-spacing: -.025em }
.lead { max-width: 49ch; margin-top: 12px; color: var(--muted); line-height: 1.75 }
.actions { flex-wrap: wrap; gap: 12px; margin-top: 27px }
.button { gap: 13px; padding: 10px 17px; border-radius: 7px; font-size: 14px; font-weight: 650 }
.secondary { border: 1px solid var(--line); background: var(--surface) }
.example { background: #122820; color: #e1f0e6; border: 1px solid #355246; border-radius: 15px; box-shadow: 0 16px 35px #10332319; overflow: hidden }
.example-head, .result { justify-content: space-between; gap: 12px }
.example-head { border-bottom: 1px solid #374e43; padding: 14px 22px }
.example-head b { font-size: 14px }.example-head b > span:first-child { margin-right: 5px; color: #b2ef95; font: 700 18px ui-monospace, monospace }
.example-head small { font: 11px/1.5 ui-monospace, monospace; letter-spacing: .1em; color: #adbdaf }
.example-switch { display: flex; gap: 5px; margin: 16px 20px 12px }
.example-switch button, .result button { color: #c7d9cd; font-size: 12px; padding: 5px 10px; border-radius: 5px }
.example-switch [aria-pressed="true"] { background: #c1eba8; color: #132d20; font-weight: 700 }
.route { padding: 0 22px; color: #bbd1c5; font-size: 12px }
.route b { color: #b2ef95; margin-right: 4px }
pre, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace }
pre { overflow-x: auto; line-height: 1.65; font-size: 13px; tab-size: 4 }
.example pre { padding: 11px 22px 15px; min-height: 222px }
.example pre em { color: #b1ccf9; font-style: normal }.example pre i { color: #d3eca3; font-style: normal }.example pre b { color: #91d9c2; font-weight: 500 }
.result { border-top: 1px solid #374e43; padding: 10px 20px; font-size: 12px; color: #bdd0c4 }.result code { margin-left: 6px; color: #d4f8b5 }
.result button { border: 1px solid #557363 }.result button:hover { background: #274338 }
.section { padding-block: 45px; scroll-margin-top: 14px }
h2 { margin: 7px 0 20px; font-size: clamp(25px, 3vw, 38px); line-height: 1.25; letter-spacing: -.04em }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 24px 0 }
.steps li { border-top: 1px solid var(--line); padding-top: 13px }
.num { color: var(--accent); font: 13px ui-monospace, monospace }
h3 { font-size: 18px; margin: 6px 0 }
.steps p, details p { color: var(--muted); font-size: 15px }
.steps a, details a, .setup button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px }
.setup, details pre { background: var(--wash); border-radius: 8px; padding: 14px 18px }
.setup > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px }
.setup button { font-size: 13px }
.faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(185px, .7fr) 1.65fr; gap: 25px }
details { border-bottom: 1px solid var(--line); padding: 0 0 13px; margin: 0 0 14px; overflow-wrap: anywhere }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; list-style: none }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; color: var(--accent); font: 22px ui-monospace, monospace }details[open] summary::after { content: "−" }
details p, details pre { margin-top: 10px }details > a { display: inline-block; margin-top: 8px; font-size: 14px }
footer { border-top: 1px solid var(--line); background: var(--surface) }footer .wrap { justify-content: space-between; padding-block: 22px; font-size: 13px }footer .brand { font-size: 16px }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px) }.top-inner { flex-wrap: wrap; gap: 0 14px; padding-block: 11px 0 }
  .main-nav { order: 3; width: 100%; gap: 22px; padding: 8px 0 }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 22px }.example pre { font-size: 12px }
}
@media (max-width: 650px) {
  .hero-grid, .steps, .faq { grid-template-columns: 1fr }
  .hero-grid { padding-block: 34px; gap: 25px }.tools { gap: 8px }.brand { font-size: 18px }.brand img { width: 26px; height: 26px }
  .main-nav { gap: 18px }.tools, .main-nav { font-size: 13px }.divider, .locale > span { display: none }.signup { padding-inline: 9px }
  .theme { width: 27px }.section { padding-block: 30px }.steps { gap: 15px }.faq { gap: 0 }
  .example pre { min-height: 206px }.lead { font-size: 15px }.setup { padding-inline: 12px }
}
@media (max-width: 360px) { .wrap { width: calc(100% - 24px) }.tools { gap: 5px } }
