:root {
	--bg: #f4f4f5;
	--panel: #ffffff;
	--panel-2: #ededee;
	--line: #dedee2;
	--line-2: #c9c9ce;
	--text: #18181b;
	--muted: #71717a;
	--accent: #27272a;
	--accent-2: #52525b;
	--accent-soft: rgba(39, 39, 42, 0.08);
	--accent-contrast: #ffffff;
	--ok: #15803d;
	--ok-soft: rgba(23, 166, 115, 0.14);
	--warn: #b45309;
	--warn-soft: rgba(217, 119, 6, 0.1);
	--shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #09090b;
	--panel: #111113;
	--panel-2: #19191c;
	--line: #2a2a2e;
	--line-2: #3a3a40;
	--text: #f4f4f5;
	--muted: #a1a1aa;
	--accent: #e4e4e7;
	--accent-2: #a1a1aa;
	--accent-soft: rgba(228, 228, 231, 0.09);
	--accent-contrast: #09090b;
	--ok: #4ade80;
	--warn: #fbbf24;
	--warn-soft: rgba(251, 191, 36, 0.12);
	--shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
	color-scheme: dark;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: radial-gradient(900px 320px at 50% -120px, var(--accent-soft), transparent), var(--bg);
	background-repeat: no-repeat;
	color: var(--text);
	font:
		15px/1.55 system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		sans-serif;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
a {
	color: inherit;
	text-decoration: none;
}
.mono {
	font-family: var(--mono);
}
.mu {
	color: var(--muted);
}
.sp {
	flex: 1;
}
.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}
header {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(12px);
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	border-bottom: 1px solid var(--line);
}
.hd {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	max-width: 1120px;
	margin: 0 auto;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.brand .logo,
.brand img {
	width: 34px;
	height: 34px;
	flex: none;
	color: var(--accent);
}
.brand b {
	display: block;
	font-size: 16px;
	letter-spacing: 0.2px;
	line-height: 1.2;
}
.brand span {
	font-size: 12px;
}
nav {
	display: flex;
	gap: 4px;
}
nav a {
	padding: 6px 11px;
	border-radius: 9px;
	color: var(--muted);
	font-weight: 550;
	font-size: 14px;
}
nav a:hover {
	color: var(--text);
	background: var(--panel-2);
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border-radius: 9px;
	border: 1px solid var(--line-2);
	background: var(--panel-2);
	color: var(--text);
	font: inherit;
	font-weight: 550;
	cursor: pointer;
	transition:
		border-color 0.15s,
		filter 0.15s,
		background 0.15s;
	white-space: nowrap;
}
.btn:hover {
	border-color: var(--accent);
}
.btn.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}
.btn.primary:hover {
	filter: brightness(1.1);
}
.btn.ghost {
	background: transparent;
}
.btn.icon {
	width: 34px;
	height: 34px;
	padding: 0;
	justify-content: center;
}
.btn.sm {
	height: 34px;
	padding: 0 13px;
}
.ic {
	display: inline-flex;
	width: 16px;
	height: 16px;
	flex: none;
}
.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}
.dot.ok {
	background: var(--ok);
	box-shadow: 0 0 0 3px var(--ok-soft);
}
.dot.er {
	background: #f87171;
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

/* hero */
.hero {
	text-align: center;
	padding: 72px 0 40px;
}
.hero h1 {
	font-size: clamp(34px, 6vw, 60px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 18px auto 16px;
	max-width: 15em;
	font-weight: 700;
}
.hero p.lead {
	font-size: 18px;
	color: var(--muted);
	max-width: 38em;
	margin: 0 auto 28px;
}
.cta {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.install {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 22px auto 0;
	padding: 8px 8px 8px 16px;
	border: 1px solid var(--line);
	background: var(--panel);
	border-radius: 12px;
	font-family: var(--mono);
	font-size: 13.5px;
}
.install .prompt {
	color: var(--muted);
}

/* url demo */
.demo {
	margin: 40px auto 0;
	max-width: 620px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
	text-align: left;
}
.demo .bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
}
.demo .url {
	flex: 1;
	height: 34px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid var(--line-2);
	background: var(--panel-2);
	border-radius: 9px;
	font-family: var(--mono);
	font-size: 14px;
	min-width: 0;
	overflow: hidden;
}
.demo .url .caret {
	width: 1px;
	height: 16px;
	background: var(--text);
	margin-left: 1px;
	animation: blink 1s steps(1) infinite;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}
.demo .body {
	padding: 18px 16px;
	display: grid;
	gap: 10px;
}
.map {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-family: var(--mono);
	font-size: 13.5px;
	background: var(--panel);
}
.map .arrow {
	color: var(--muted);
}
.map .to {
	color: var(--muted);
	margin-left: auto;
}

/* sections */
section {
	padding: 40px 0;
}
.sec-h {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
h2 {
	font-size: 22px;
	margin: 0;
	font-weight: 650;
	letter-spacing: -0.01em;
}
.count {
	font-size: 12px;
	padding: 1px 8px;
	border-radius: 99px;
	background: var(--panel-2);
	border: 1px solid var(--line);
	color: var(--muted);
}
.sub {
	color: var(--muted);
	margin: 0 0 22px;
	max-width: 44em;
}
.grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px;
	transition: border-color 0.15s;
}
.card:hover {
	border-color: var(--line-2);
}
.card .ico {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	border: 1px solid var(--line-2);
	background: var(--panel-2);
	margin-bottom: 12px;
}
.card h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 650;
}
.card p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.steps {
	counter-reset: s;
}
.steps .card::before {
	counter-increment: s;
	content: counter(s);
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 650;
	background: var(--accent);
	color: var(--accent-contrast);
	margin-bottom: 12px;
}
.shot {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--panel);
	box-shadow: var(--shadow);
}
.shot img {
	display: block;
	width: 100%;
	height: auto;
}
pre {
	margin: 0;
	padding: 16px 18px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 1.7;
}
pre .c {
	color: var(--muted);
}
.tabs {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.tabs h3 {
	font-size: 13px;
	margin: 0 0 8px;
	color: var(--muted);
	font-weight: 600;
}
table {
	width: 100%;
	border-collapse: collapse;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	border-spacing: 0;
	font-size: 14px;
}
th,
td {
	text-align: left;
	padding: 11px 16px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
tr:last-child td {
	border-bottom: 0;
}
th {
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
	background: var(--panel-2);
}
td:first-child {
	font-family: var(--mono);
	font-size: 13px;
	white-space: nowrap;
}
td:last-child {
	color: var(--muted);
}
.note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--warn-soft);
	color: var(--warn);
	font-size: 14px;
	margin-top: 16px;
}
footer {
	border-top: 1px solid var(--line);
	margin-top: 40px;
	padding: 26px 0 40px;
	color: var(--muted);
	font-size: 13px;
}
footer .wrap {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}
@media (max-width: 720px) {
	nav {
		display: none;
	}
	.hero {
		padding-top: 48px;
	}
	.map .to {
		display: none;
	}
	.brand span {
		display: none;
	}
}

/* install */
.inst,
.inst-steps,
.inst-steps li,
.cmd {
	min-width: 0;
	max-width: 100%;
}
.inst-steps {
	grid-template-columns: minmax(0, 1fr);
}
.cmd code {
	scrollbar-width: none;
}
.cmd code::-webkit-scrollbar {
	display: none;
}
.cmd .cp {
	flex: none;
}
.inst {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px;
	box-shadow: var(--shadow);
}
.inst-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.seg {
	display: inline-flex;
	padding: 3px;
	gap: 2px;
	background: var(--panel-2);
	border: 1px solid var(--line);
	border-radius: 11px;
}
.seg button {
	font: inherit;
	font-size: 13.5px;
	font-weight: 550;
	padding: 6px 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.seg button.on {
	background: var(--accent);
	color: var(--accent-contrast);
}
.inst-hint {
	font-size: 13px;
}
.inst-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
	counter-reset: i;
}
.inst-steps li {
	position: relative;
	padding-left: 38px;
	counter-increment: i;
}
.inst-steps li::before {
	content: counter(i);
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 650;
	border: 1px solid var(--line-2);
	background: var(--panel-2);
}
.inst-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 12.5px;
	top: 30px;
	bottom: -12px;
	width: 1px;
	background: var(--line);
}
.inst-steps .lbl {
	display: flex;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 7px;
	line-height: 26px;
	font-size: 14px;
	height: 26px;
	margin-top: -2px;
}
.inst-steps .lbl .mu {
	font-size: 13px;
}
.cmd {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 4px 4px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--mono);
	font-size: 13.5px;
}
.cmd .p {
	color: var(--muted);
	user-select: none;
}
.cmd code {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	white-space: nowrap;
	font-family: inherit;
	padding: 6px 0;
}
.inst .note {
	margin-top: 20px;
}
