:root { --bg: #fbfbfa; --fg: #1c1e21; --muted: #5a606b; --line: #dcdee2; --code: #f0f1f3; --link: #1558b0; --warn: #fff4d6; }
@media (prefers-color-scheme: dark) {
	:root { --bg: #0f1114; --fg: #e5e7ea; --muted: #9aa1ac; --line: #2b2f36; --code: #1a1d22; --link: #8ab4f8; --warn: #35290c; }
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 52rem; padding: 1rem 16px 3rem; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, sans-serif; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
nav a[aria-current] { font-weight: 700; color: var(--fg); text-decoration: none; }
a { color: var(--link); }
h1 { font-size: 1.6rem; line-height: 1.25; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; margin-top: 1.5rem; }
code { background: var(--code); padding: .05em .3em; border-radius: 4px; font-size: .9em; }
pre { background: var(--code); padding: .75rem 1rem; border-radius: 6px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: .35rem .6rem; text-align: left; vertical-align: top; }
.note { background: var(--warn); padding: .6rem .9rem; border-radius: 6px; }
footer { margin-top: 3rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: .6rem; }

nav { align-items: center; }
nav .brand { display: flex; align-items: center; gap: .5rem; margin-right: auto; font: 700 1.05rem ui-monospace, Menlo, monospace; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2.5rem 0 1.5rem; }
.hero img { width: 176px; height: 176px; }
.hero h1 { font: 700 clamp(2.8rem, 10vw, 4.2rem)/1 ui-monospace, Menlo, monospace; letter-spacing: -.045em; margin: 0 0 .75rem; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.btn { padding: .5rem 1rem; border: 1px solid var(--link); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn.main { background: var(--link); color: var(--bg); }
.term { background: #101826; border: 1px solid var(--line); border-radius: 10px; margin: 1.5rem 0; }
.term p { margin: 0; padding: .5rem 1rem; border-bottom: 1px solid #ffffff1a; color: #8e9bb3; font: 12px ui-monospace, Menlo, monospace; }
.term pre { margin: 0; background: none; color: #dbe4f5; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.term .c { color: #8e9bb3; } .term .o { color: #8ab4f8; }
.grid, .stats { list-style: none; padding: 0; display: grid; gap: .75rem; }
.grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.grid li, .stats li { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; color: var(--muted); font-size: .93rem; }
.grid h3 { margin: 0 0 .3rem; font-size: 1rem; }
.stats { grid-template-columns: repeat(4, 1fr); }
.stats b { display: block; color: var(--fg); font: 700 1.3rem ui-monospace, Menlo, monospace; }
@media (max-width: 640px) {
	.hero { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.5rem; }
	.hero img { order: -1; width: 104px; height: 104px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}
.demo { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 12px; background: #0b1019; }
.shot { margin: 1.5rem 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.shot figcaption { margin-top: .5rem; color: var(--muted); font-size: .88rem; }
