:root {
	--bg: #f6f3ec;
	--surface: #fffdf7;
	--ink: #17201c;
	--muted: #68736d;
	--line: rgba(23, 32, 28, 0.14);
	--line-strong: rgba(23, 32, 28, 0.24);
	--accent: #b54a2d;
	--accent-soft: #f0dfd6;
	--green: #2f715f;
	--code: #111816;
	--max: 1120px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family:
		ui-serif,
		Georgia,
		Cambria,
		"Times New Roman",
		serif;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
code,
.nav-links,
.eyebrow,
.button,
.install-line,
.prompt,
.step,
.icon,
.node,
.compare-row.head {
	font-family:
		"SFMono-Regular",
		Consolas,
		"Liberation Mono",
		monospace;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

p {
	line-height: 1.62;
}

.hero {
	background:
		linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(246, 243, 236, 0.96)),
		linear-gradient(90deg, rgba(23, 32, 28, 0.06) 1px, transparent 1px),
		linear-gradient(180deg, rgba(23, 32, 28, 0.05) 1px, transparent 1px);
	background-size: auto, 40px 40px, 40px 40px;
	border-bottom: 1px solid var(--line);
}

.nav {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: var(--max);
	padding: 22px 24px;
}

.brand {
	align-items: center;
	display: inline-flex;
	font-size: 17px;
	font-weight: 700;
	gap: 10px;
}

.brand-mark {
	align-items: center;
	background: var(--ink);
	color: var(--surface);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.nav-links {
	align-items: center;
	color: var(--muted);
	display: flex;
	font-size: 13px;
	gap: 22px;
}

.nav-links a:hover {
	color: var(--ink);
}

.hero-grid {
	align-items: center;
	display: grid;
	gap: 52px;
	grid-template-columns: minmax(0, 0.94fr) minmax(400px, 1.06fr);
	margin: 0 auto;
	max-width: var(--max);
	min-height: calc(100svh - 79px);
	padding: 46px 24px 58px;
}

.hero-copy,
.hero-visual,
.console-window,
.manuscript-card,
.step,
.install-line {
	min-width: 0;
}

.eyebrow {
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

h1 {
	font-size: clamp(40px, 4.8vw, 56px);
	letter-spacing: 0;
	line-height: 1.02;
	margin-bottom: 18px;
}

.hero-headline {
	font-size: clamp(23px, 2.6vw, 30px);
	line-height: 1.15;
	margin-bottom: 18px;
	max-width: 650px;
}

.hero-lede {
	color: var(--muted);
	font-size: 17px;
	line-height: 1.65;
	max-width: 650px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.button {
	align-items: center;
	border: 1px solid var(--ink);
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button.primary {
	background: var(--ink);
	color: var(--surface);
}

.button.secondary {
	background: transparent;
	color: var(--ink);
}

.install-line {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	display: flex;
	gap: 10px;
	margin-top: 18px;
	max-width: 560px;
	padding: 8px;
}

.install-line code {
	color: var(--ink);
	flex: 1;
	font-size: 13px;
	overflow-wrap: anywhere;
	padding-left: 8px;
}

.install-line button {
	background: var(--accent);
	border: 0;
	color: white;
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	min-height: 32px;
	padding: 0 12px;
}

.hero-visual {
	display: grid;
	gap: 16px;
}

.console-window,
.manuscript-card,
.cards article,
.feature-grid article,
.adapter-card,
.compare-grid {
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: 0 20px 60px rgba(23, 32, 28, 0.08);
}

.console-body {
	padding: 20px;
}

.prompt {
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.step {
	border-top: 1px solid var(--line);
	display: grid;
	gap: 8px 12px;
	grid-template-columns: 32px 1fr;
	padding: 12px 0;
}

.step span {
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
}

.step strong {
	font-size: 14px;
}

.step small {
	color: var(--muted);
	grid-column: 2;
	line-height: 1.45;
}

pre {
	background: var(--code);
	color: #d9eee4;
	font-size: 12px;
	line-height: 1.55;
	margin: 10px 0 0;
	overflow: auto;
	padding: 14px;
	white-space: pre-wrap;
}

.manuscript-card {
	box-shadow: none;
	padding: 20px;
}

.label {
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.manuscript-card h2 {
	font-size: 22px;
	line-height: 1.18;
	margin-bottom: 14px;
}

.manuscript-card ul {
	color: var(--muted);
	line-height: 1.75;
	margin: 0;
	padding-left: 20px;
}

.proof-strip {
	background: var(--ink);
	color: var(--surface);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.proof-strip div {
	border-right: 1px solid rgba(255, 253, 247, 0.15);
	padding: 28px;
}

.proof-strip div:last-child {
	border-right: 0;
}

.proof-strip strong {
	display: block;
	font-size: 28px;
	line-height: 1;
}

.proof-strip span {
	color: rgba(255, 253, 247, 0.68);
	display: block;
	font-size: 15px;
	line-height: 1.5;
	margin-top: 8px;
}

.section,
.tool-section,
.workflow-band,
.cta-section {
	margin: 0 auto;
	max-width: var(--max);
	padding: 76px 24px;
}

.split {
	align-items: start;
	display: grid;
	gap: 54px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

h2 {
	font-size: clamp(30px, 3.5vw, 44px);
	letter-spacing: 0;
	line-height: 1.08;
	margin-bottom: 0;
}

h3 {
	font-size: 20px;
	line-height: 1.18;
	margin-bottom: 10px;
}

.cards,
.feature-grid,
.tool-grid {
	display: grid;
	gap: 16px;
}

.cards.two,
.tool-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards article,
.feature-grid article,
.adapter-card {
	padding: 24px;
}

.cards p,
.feature-grid p,
.adapter-card p {
	color: var(--muted);
	margin-bottom: 0;
}

.workflow-band {
	background: #1d2924;
	color: var(--surface);
	max-width: none;
	padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
	padding-right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.workflow-band .eyebrow {
	color: #e0b47a;
}

.section-heading {
	margin-bottom: 34px;
	max-width: 720px;
}

.workflow-map {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(9, minmax(104px, 1fr));
	overflow-x: auto;
	padding-bottom: 6px;
}

.node {
	align-items: center;
	background: rgba(255, 253, 247, 0.06);
	border: 1px solid rgba(255, 253, 247, 0.14);
	display: flex;
	font-size: 11px;
	font-weight: 800;
	justify-content: center;
	min-height: 68px;
	padding: 10px;
	text-align: center;
	text-transform: uppercase;
}

.node.hot {
	background: rgba(181, 74, 45, 0.24);
	border-color: rgba(181, 74, 45, 0.72);
}

.node.gate {
	background: rgba(224, 180, 122, 0.18);
	border-color: rgba(224, 180, 122, 0.58);
}

.workflow-note {
	border-left: 3px solid #e0b47a;
	color: rgba(255, 253, 247, 0.72);
	margin-top: 24px;
	max-width: 720px;
	padding-left: 18px;
}

.workflow-note p {
	margin-bottom: 0;
}

.feature-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon {
	color: var(--accent);
	display: block;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 18px;
}

.tool-section {
	border-top: 1px solid var(--line);
}

.adapter-card code {
	background: rgba(23, 32, 28, 0.07);
	color: var(--green);
	display: block;
	font-size: 12px;
	margin-top: 18px;
	overflow-wrap: anywhere;
	padding: 12px;
}

.comparison {
	padding-top: 32px;
}

.compare-grid {
	box-shadow: none;
	overflow-x: auto;
}

.compare-row {
	border-bottom: 1px solid var(--line);
	display: grid;
	gap: 18px;
	grid-template-columns: 1.35fr repeat(3, 1fr);
	min-width: 760px;
	padding: 16px 20px;
}

.compare-row:last-child {
	border-bottom: 0;
}

.compare-row span {
	color: var(--muted);
}

.compare-row strong {
	color: var(--green);
}

.compare-row em {
	color: #8b6b47;
	font-style: normal;
}

.compare-row.head {
	background: rgba(23, 32, 28, 0.05);
	font-size: 12px;
	text-transform: uppercase;
}

.cta-section {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	gap: 28px;
	justify-content: space-between;
	margin-bottom: 58px;
	margin-top: 18px;
}

.cta-section h2 {
	font-size: clamp(28px, 3.2vw, 40px);
	max-width: 720px;
}

.install-line.large {
	max-width: 640px;
}

.footer {
	align-items: center;
	border-top: 1px solid var(--line);
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: var(--max);
	padding: 28px 24px;
}

.footer strong,
.footer span {
	display: block;
}

.footer a {
	margin-left: 20px;
}

@media (max-width: 980px) {
	.nav-links {
		display: none;
	}

	.hero-grid,
	.split,
	.cards.two,
	.tool-grid {
		grid-template-columns: 1fr;
	}

	.hero-grid {
		gap: 36px;
		min-height: auto;
		padding-top: 46px;
	}

	.proof-strip,
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.proof-strip div {
		border-bottom: 1px solid rgba(255, 253, 247, 0.15);
		border-right: 0;
	}

	.cta-section,
	.footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.nav,
	.hero-grid,
	.section,
	.tool-section,
	.workflow-band,
	.cta-section,
	.footer {
		padding-left: 18px;
		padding-right: 18px;
	}

	.brand {
		font-size: 16px;
	}

	h1 {
		font-size: 38px;
	}

	.hero-headline {
		font-size: 22px;
	}

	.hero-lede {
		font-size: 16px;
	}

	.hero-actions,
	.install-line {
		align-items: stretch;
		flex-direction: column;
	}

	.install-line code {
		font-size: 12px;
		padding: 4px;
	}

	.button {
		width: 100%;
	}

	.console-body,
	.manuscript-card,
	.cards article,
	.feature-grid article,
	.adapter-card {
		padding: 18px;
	}
}
