:root {
  color-scheme: dark;
  --base: #16181c;
  --panel: #1c2027;
  --line: #3c4658;
  --text: #e8eefb;
  --muted: #abb7cc;
  --blue: #a4c1ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--base);
  color: var(--text);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.header { border-bottom: 1px solid var(--line); justify-content: space-between; }
.header nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 26px); }
.header a, .footer a { text-decoration: none; }
.header nav a, .footer a { color: var(--muted); font-size: .875rem; padding-block: 12px; }
.header nav a:hover, .footer a:hover, .secondary:hover { color: var(--blue); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.025em; }
.brand img { width: 34px; }
.hero { display: grid; grid-template-columns: 0.73fr 1.25fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(48px, 8vw, 108px); }
.edition, .platform, kbd, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.edition { color: var(--blue); font-size: .875rem; letter-spacing: .05em; font-weight: 650; }
.edition span, .platform span { padding-inline: .35em; }
h1 { font-size: clamp(3.1rem, 5.45vw, 5rem); line-height: 1.12; letter-spacing: -.065em; margin-block: 14px 24px; }
h1 span, h1 em { display: block; white-space: nowrap; }
h1 em { color: var(--blue); font-style: normal; }
.lead { color: var(--muted); max-width: 23em; }
kbd { padding: .1em .35em; white-space: nowrap; border: 1px solid var(--line); border-radius: .3em; font-size: .86em; color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 26px; align-items: center; }
.download, .secondary { min-height: 44px; display: inline-flex; align-items: center; gap: .65em; font-weight: 700; text-decoration: none; font-size: .9rem; }
.download { background: var(--blue); color: #121c32; border-radius: 7px; padding: 0 14px; }
.download:hover { background: #c2d6ff; }
.secondary { color: var(--muted); }
.platform { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.app-preview { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px #0b0f1666; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trace path { stroke: #7aa7ff; stroke-width: 2.5; stroke-linecap: round; }
.trace circle { stroke: #a4c1ff; fill: #1c2027; stroke-width: 2.5; }
figcaption { display: flex; gap: .55em; align-items: center; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: .85rem; }
.line-sample { width: 20px; height: 2px; background: var(--blue); }
.sep { color: var(--blue); }
.feature-band { border-block: 1px solid var(--line); background: var(--panel); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); }
.features article { padding-block: 35px; padding-inline: 24px; }
.features article:first-child { padding-inline-start: 0; }
.features article:last-child { padding-inline-end: 0; }
.features article + article { border-inline-start: 1px solid var(--line); }
.features h2 { font-size: 1.125rem; margin-block-end: 8px; }
.features p, .install li { color: var(--muted); }
.rule-samples { display: grid; gap: 5px; padding: 0; margin: 16px 0 0; list-style: none; }
.rule-samples li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; font-size: .875rem; }
.rule-samples kbd { color: var(--blue); font-size: .84rem; }
.install { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 7vw, 96px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.install-art { max-width: 380px; }
.install-art img { border-radius: 10px; border: 1px solid var(--line); }
.install h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.25; margin-block: 10px 14px; }
.install ol { padding-inline-start: 1.5em; margin-block: 0; }
.install li + li { margin-top: 7px; }
pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .87rem; padding: 14px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); }
.footer span { font-weight: 700; margin-inline-end: auto; }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .demo { max-width: 700px; }
  .features article { padding-inline: 16px; }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 32px); }
  .brand img { width: 27px; }
  .header { gap: 9px; min-height: 61px; }
  .features { grid-template-columns: 1fr; }
  .features article { padding: 22px 0; }
  .features article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .install { grid-template-columns: minmax(0, 1fr); }
  .install-art { order: 1; }
  .trace { opacity: .85; }
}
@media (prefers-reduced-motion: no-preference) {
  .trace path { stroke-dasharray: 430; animation: trace-in 750ms ease-out both; }
  @keyframes trace-in { from { stroke-dashoffset: 430; } to { stroke-dashoffset: 0; } }
}
