:root {
	color-scheme: dark;
	--bg: #090e14;
	--panel: #111b24;
	--line: #2a3b49;
	--text: #f1f6fa;
	--muted: #b5c3ce;
	--accent: #58efb0;
	--warm: #ffd287;
	--red: #ffa8af;
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	font-synthesis: none;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
}
a {
	color: var(--accent);
	text-underline-offset: 4px;
}
a:hover {
	text-decoration-thickness: 2px;
}
button,
select,
input {
	font: inherit;
}
button,
a.btn {
	touch-action: manipulation;
}
button {
	cursor: pointer;
}
button:disabled {
	cursor: default;
	opacity: 0.55;
}
a,
button,
summary,
input,
select {
	outline-offset: 5px;
}
:focus-visible {
	outline: 3px solid var(--warm);
}
[hidden] {
	display: none !important;
}
.wrap {
	width: min(1120px, calc(100% - 48px));
	margin: auto;
}
.skip {
	position: absolute;
	top: -80px;
	left: 20px;
	background: var(--accent);
	color: var(--bg);
	padding: 12px;
	z-index: 10;
}
.skip:focus {
	top: 12px;
}
.top {
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}
.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 22px;
	min-height: 80px;
}
.brand {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--text);
	font-weight: 800;
	font-size: 22px;
	text-decoration: none;
}
.mark {
	padding: 2px 8px;
	background: #18372e;
	color: var(--accent);
	border-radius: 8px;
	font-family: monospace;
}
.links {
	display: flex;
	align-items: center;
	gap: 24px;
}
.links a {
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
}
.links .btn {
	color: var(--bg);
}
.hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: center;
	padding: 80px 0 68px;
}
.eyebrow {
	font:
		700 12px/1.5 ui-monospace,
		monospace;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 18px;
}
h1 {
	font-size: clamp(38px, 4.6vw, 64px);
	line-height: 1.07;
	letter-spacing: -0.055em;
	margin: 0 0 24px;
	max-width: 13ch;
}
h1 em {
	font-style: normal;
	color: var(--accent);
}
h2 {
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.2;
	letter-spacing: -0.035em;
	margin: 0 0 18px;
}
h3 {
	font-size: 20px;
	line-height: 1.35;
	margin: 0 0 12px;
}
p {
	margin: 0 0 18px;
	color: var(--muted);
}
strong {
	color: var(--text);
}
.lead {
	font-size: 18px;
	max-width: 60ch;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 25px 0 16px;
}
.btn,
button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}
.primary {
	background: var(--accent);
	color: #082117;
	border-color: var(--accent);
}
.small {
	font-size: 13px;
	color: var(--muted);
}
.scenario {
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: linear-gradient(150deg, #14251f, var(--panel) 60%);
}
.scenario ol {
	padding-left: 26px;
	margin: 0;
}
.scenario li {
	padding: 10px 0;
	color: var(--muted);
}
.scenario li::marker {
	color: var(--accent);
	font-family: monospace;
}
.scenario strong {
	display: block;
}
.receipt {
	border-top: 1px solid var(--line);
	padding-top: 16px;
	margin-top: 16px;
	color: var(--accent);
	font-weight: 700;
}
.section {
	padding: 64px 0;
	border-top: 1px solid var(--line);
}
.intro {
	max-width: 740px;
	margin-bottom: 28px;
}
.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.card {
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--panel);
}
.card p:last-child {
	margin-bottom: 0;
}
.tag {
	font:
		700 12px ui-monospace,
		monospace;
	color: var(--accent);
	margin-bottom: 16px;
	display: block;
}
.demo {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
	padding: 28px;
}
.demo-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}
.demo-header p {
	margin: 0;
}
.demo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.demo-side {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 20px;
}
.demo-side h3 {
	font-size: 16px;
}
.demo-side ol {
	padding-left: 20px;
	min-height: 90px;
	color: var(--muted);
	font-size: 14px;
	margin: 14px 0;
}
.metric {
	font-size: 30px;
	line-height: 1.2;
	display: block;
	margin: 12px 0 4px;
}
.bad {
	color: var(--red);
}
.good {
	color: var(--accent);
}
.state {
	color: var(--warm);
	font:
		700 12px ui-monospace,
		monospace;
}
.demo-message {
	padding: 18px 0 0;
	min-height: 80px;
}
.demo-message p {
	margin: 0;
}
.demo-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.demo-result {
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid var(--line);
}
.checklist {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	list-style: none;
	padding: 0;
}
.checklist li {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
}
.checklist li span {
	color: var(--accent);
	margin-right: 10px;
}
.modes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.mode {
	color: var(--text);
	text-decoration: none;
	display: block;
}
.mode:hover {
	border-color: var(--accent);
}
.mode p {
	font-size: 15px;
}
.mode .route {
	color: var(--accent);
	font-weight: 700;
}
.note {
	padding: 20px;
	border-left: 3px solid var(--accent);
	background: var(--panel);
	margin: 22px 0;
	color: var(--muted);
}
.faq details {
	border-bottom: 1px solid var(--line);
	padding: 18px 0;
}
.faq summary {
	cursor: pointer;
	font-weight: 700;
	padding-right: 20px;
}
.faq details p {
	padding: 16px 0 0;
	margin: 0;
	max-width: 80ch;
}
.footer {
	padding: 36px 0;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}
.footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.prose {
	max-width: 860px;
	padding: 60px 0;
}
.prose h1 {
	max-width: 20ch;
	font-size: clamp(36px, 5vw, 56px);
}
.prose h2 {
	font-size: 28px;
	margin: 42px 0 16px;
}
.prose h3 {
	margin-top: 28px;
}
.prose li {
	color: var(--muted);
	margin: 8px 0;
}
.codebox {
	position: relative;
	margin: 18px 0;
}
.codebox button {
	min-height: 38px;
	padding: 6px 12px;
	margin: 0 0 6px;
}
.codebox pre {
	margin: 0;
}
pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	background: #05090e;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 20px;
	font:
		13px/1.7 ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	max-width: 100%;
	color: #d4e7f3;
}
code {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.9em;
}
pre code {
	font-size: inherit;
}
.steps {
	padding-left: 22px;
}
.table-scroll {
	overflow-x: auto;
}
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 14px;
}
th,
td {
	border: 1px solid var(--line);
	padding: 12px;
	text-align: left;
	vertical-align: top;
}
th {
	color: var(--accent);
}
.form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
label {
	display: block;
	color: var(--muted);
	font-size: 14px;
}
input,
select {
	width: 100%;
	margin-top: 7px;
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 10px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.updates {
	padding-top: 30px;
	margin-top: 30px;
	border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
	.hero {
		gap: 30px;
		padding: 50px 0;
	}
	.links {
		gap: 15px;
	}
	.links a {
		font-size: 13px;
	}
	.grid {
		grid-template-columns: 1fr;
	}
	.nav {
		flex-wrap: wrap;
		padding: 15px 0;
		gap: 12px;
	}
	.links {
		flex-wrap: wrap;
	}
	.hero h1 {
		font-size: 46px;
	}
}
@media (max-width: 620px) {
	.wrap {
		width: calc(100% - 32px);
	}
	.nav {
		align-items: flex-start;
	}
	.links {
		gap: 8px 16px;
		width: 100%;
	}
	.links a {
		padding: 6px 0;
	}
	.links .btn {
		min-height: 40px;
		padding: 8px 12px;
	}
	.hero {
		grid-template-columns: 1fr;
		padding: 38px 0;
		gap: 28px;
	}
	.hero h1 {
		font-size: 44px;
	}
	.lead {
		font-size: 17px;
	}
	.section {
		padding: 42px 0;
	}
	.scenario,
	.demo,
	.card {
		padding: 20px;
	}
	.demo-header {
		align-items: flex-start;
		flex-direction: column;
	}
	.demo-grid,
	.checklist,
	.modes,
	.form-grid {
		grid-template-columns: 1fr;
	}
	.demo-side ol {
		min-height: 0;
	}
	.demo-message {
		min-height: 0;
		padding-bottom: 18px;
	}
	.demo-controls button {
		width: 100%;
	}
	.prose {
		padding: 38px 0;
	}
	.actions .btn {
		flex-grow: 1;
	}
	.footer {
		flex-direction: column;
	}
	.metric {
		font-size: 26px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
