:root {
	--bg: #0a0a0a;
	--bg-card: #111317;
	--fg: #f4f4f5;
	--muted: #9ca3af;
	--accent: #14b8a6;
	--accent-soft: #5eead4;
	--pass: #22c55e;
	--fail: #ef4444;
	--line: #27272a;
	--radius: 10px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--fg);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

main { max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; }

/* ───────── header ───────── */
header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 64px; gap: 16px; flex-wrap: wrap;
}
.brand {
	display: inline-flex; gap: 10px; align-items: center;
	font-weight: 600; font-size: 17px;
	font-family: var(--font-mono); color: var(--fg);
	text-decoration: none;
}
.brand img, .brand svg { width: 28px; height: 28px; display: block; color: var(--fg); }
.topnav { display: flex; gap: 22px; font-size: 15px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--accent); }
.topnav .cta-link { color: var(--fg); }

/* ───────── hero ───────── */
.hero { padding-top: 8px; }
h1 {
	font-size: clamp(34px, 4.6vw, 52px);
	line-height: 1.04;
	margin: 0 0 18px;
	letter-spacing: -0.02em;
	font-weight: 700;
	max-width: 22ch;
}
.lede {
	font-size: 19px; color: var(--muted);
	margin: 0 0 28px; max-width: 62ch;
}

/* terminal block — the hero asset, per BRAND.md */
.term {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 22px;
	margin: 0 0 32px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--fg);
}
.term code { font-family: inherit; }
.term .pr { color: var(--muted); user-select: none; }
.term .cmd { color: var(--accent); }
.term .ok { color: var(--pass); }
.term .fa { color: var(--fail); }
.term .mu { color: var(--muted); }
.term .n  { color: var(--accent-soft); }
.term .pa { color: var(--fg); }

.term-sm { padding: 14px 16px; font-size: 13.5px; margin: 0 0 12px; }

/* ───────── CTA (mailto fallback until /api/waitlist is RW) ───────── */
.hero-cta { margin-top: 4px; }
.mailto-card { margin: 0 0 10px 0; }
.mailto-btn {
	display: inline-flex;
	align-items: baseline;
	gap: 14px;
	padding: 14px 22px;
	background: var(--accent);
	color: #03201d;
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
	transition: background 120ms ease;
}
.mailto-btn:hover { background: var(--accent-soft); color: #03201d; }
.mailto-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.mailto-btn-label { font-size: 16px; }
.mailto-btn-addr {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	color: #03201d;
	opacity: 0.78;
}
@media (max-width: 480px) {
	.mailto-btn { flex-direction: column; align-items: flex-start; gap: 2px; }
}

.wl-sub { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ───────── how it works ───────── */
.how { margin-top: 80px; }
.how h2, .why h2 {
	font-size: 22px; margin: 0 0 24px;
	letter-spacing: -0.01em; font-weight: 600;
}
.steps {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 20px;
	grid-template-columns: 1fr;
}
@media (min-width: 720px) {
	.steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.steps li {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 20px 22px;
	position: relative;
}
.step-n {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 6px;
	background: var(--accent); color: #03201d;
	font-family: var(--font-mono); font-weight: 700; font-size: 13px;
	margin-bottom: 10px;
}
.steps h3 {
	margin: 0 0 10px; font-size: 16px; font-weight: 600;
	letter-spacing: -0.01em;
}
.steps p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.steps code {
	font-family: var(--font-mono); font-size: 13px;
	background: rgba(255,255,255,.03); padding: 1px 5px;
	border-radius: 4px;
}

/* ───────── why bullets ───────── */
.why { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why li {
	padding-left: 28px; position: relative;
	font-size: 16px;
}
.why li::before {
	content: "›"; position: absolute; left: 8px; top: 0;
	color: var(--accent); font-weight: 700; font-family: var(--font-mono);
}
.why strong { color: var(--fg); font-weight: 600; display: block; margin-bottom: 2px; }
.why li { color: var(--muted); }
.why code {
	font-family: var(--font-mono); font-size: 14px;
	background: rgba(255,255,255,.03); padding: 1px 5px;
	border-radius: 4px; color: var(--fg);
}

/* ───────── footer ───────── */
footer { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: inherit; }

/* ───────── a11y helpers ───────── */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: no-preference) {
	h1 { animation: fadeUp .6s ease-out both; }
	.lede { animation: fadeUp .7s ease-out both; animation-delay: .05s; }
	.term { animation: fadeUp .8s ease-out both; animation-delay: .1s; }
	.hero-cta { animation: fadeUp .9s ease-out both; animation-delay: .18s; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
