:root {
	--claude: #bd654a;
	--codex: #171816;
	--linear: #6366d9;
	--gold: #b77b19;
	--header-height: 64px;
	--terminal-bg: #fbfbf8;
	--terminal-raised: #f2f1ec;
	--terminal-border: #d8d6cf;
	--terminal-fg: #181915;
	--terminal-muted: #6d6f67;
	--terminal-accent: #267d70;
	--terminal-link: #357f93;
}

[data-theme='dark'] {
	--claude: #df8265;
	--codex: #f3f3ef;
	--linear: #8d91f4;
	--gold: #d5a247;
	--terminal-bg: #171816;
	--terminal-raised: #1d1e1b;
	--terminal-border: #2e2f2c;
	--terminal-fg: #f4f4ef;
	--terminal-muted: #8f908a;
	--terminal-accent: #78c0b3;
	--terminal-link: #83c7d5;
}

body.site-page {
	min-width: 320px;
	overflow-x: hidden;
	background: var(--bg);
}

.site-page code {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
}

[hidden] {
	display: none !important;
}

.shell {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-height);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 0 max(24px, calc((100% - 1180px) / 2));
	border-bottom: 1px solid var(--border-subtle);
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: blur(16px);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: max-content;
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.brand img {
	width: 24px;
	height: 24px;
}

.site-nav {
	display: flex;
	align-items: stretch;
	height: 100%;
}

.site-nav a {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 88px;
	padding: 0 16px;
	color: var(--fg2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a.current {
	color: var(--fg1);
}

.site-nav a.current::after {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: -1px;
	height: 2px;
	background: var(--accent);
}

.icon-button {
	justify-self: end;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	color: var(--fg2);
	cursor: pointer;
}

.icon-button:hover {
	border-color: var(--accent);
	color: var(--fg1);
	background: var(--accent-subtle);
}

.hero-band {
	padding: 86px 0 72px;
	border-bottom: 1px solid var(--border-subtle);
}

.hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.eyebrow,
.section-label {
	margin: 0 0 18px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	text-transform: uppercase;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.eyebrow > span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 6px var(--accent-subtle);
}

.hero-title {
	max-width: 940px;
	margin: 0;
	font-size: 58px;
	line-height: 1.07;
	letter-spacing: 0;
}

.hero-copy {
	max-width: 760px;
	margin: 28px auto 0;
	color: var(--fg2);
	font-size: 19px;
	line-height: 30px;
}

.setup-terminal {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 18px 48px color-mix(in srgb, var(--fg1) 8%, transparent);
	overflow: hidden;
	text-align: left;
}

.window-bar {
	min-height: 50px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 18px;
	border-bottom: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface-raised) 54%, var(--surface));
}

.window-bar > code {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fg3);
	font-size: 12px;
}

.window-dots {
	display: flex;
	gap: 7px;
}

.window-dots i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fg3);
	opacity: 0.75;
}

.window-state {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--fg3);
	font-family: var(--font-mono);
	font-size: 11px;
}

.window-state i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--success);
}

.section-band {
	padding: 92px 0;
	border-bottom: 1px solid var(--border-subtle);
}

.surface-copy h2,
.docs-intro h2,
.install-bottom h2 {
	margin: 0;
	font-size: 34px;
	line-height: 43px;
	letter-spacing: 0;
}

.surface-copy > p,
.docs-intro > p:last-child {
	margin: 20px 0 0;
	color: var(--fg2);
	font-size: 17px;
	line-height: 28px;
}

.surface-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
	gap: 76px;
	align-items: center;
}

.surface-copy .section-label {
	margin-bottom: 14px;
}

.plain-points {
	list-style: none;
	margin: 28px 0;
	padding: 0;
	border-top: 1px solid var(--border-subtle);
}

.plain-points li {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px solid var(--border-subtle);
	font-size: 14px;
	font-weight: 600;
}

.plain-points li span {
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 10px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.text-link:hover {
	color: var(--accent-hover);
}

.codex-terminal {
	width: 100%;
	max-width: 680px;
	justify-self: end;
	border: 1px solid var(--terminal-border);
	border-radius: 8px;
	background: var(--terminal-bg);
	color: var(--terminal-fg);
	box-shadow: 0 18px 48px color-mix(in srgb, var(--fg1) 10%, transparent);
	overflow: hidden;
	font-family: var(--font-mono);
	text-align: left;
}

.has-product-film .codex-terminal {
	display: none;
}

.product-film {
	position: relative;
	width: 100%;
	max-width: 760px;
	justify-self: end;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #0e0e0c;
	box-shadow: 0 22px 58px color-mix(in srgb, var(--fg1) 16%, transparent);
	overflow: hidden;
}

.product-film video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0e0e0c;
	object-fit: cover;
}

.film-sound {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(14, 14, 12, 0.74);
	backdrop-filter: blur(10px);
	color: #f4f4ef;
	font-family: var(--font-mono);
	font-size: 9px;
	cursor: pointer;
}

.film-sound:hover,
.film-sound.is-on {
	border-color: #78c0b3;
	background: rgba(14, 14, 12, 0.9);
}

.film-caption {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(244, 244, 239, 0.84);
	font-family: var(--font-mono);
	font-size: 8px;
	text-shadow: 0 1px 4px #000;
}

.film-caption span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #78c0b3;
	box-shadow: 0 0 0 3px rgba(120, 192, 179, 0.18);
}

.terminal-header {
	min-height: 48px;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0 18px;
	border-bottom: 1px solid var(--terminal-border);
	background: var(--terminal-raised);
}

.terminal-mark {
	color: var(--terminal-fg);
	font-size: 12px;
	font-weight: 600;
}

.terminal-header code {
	color: var(--terminal-muted);
	font-size: 10px;
}

.terminal-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	color: var(--terminal-muted);
	font-size: 9px;
}

.terminal-live i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--terminal-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--terminal-accent) 13%, transparent);
}

.terminal-replay {
	padding: 4px 7px;
	border: 1px solid var(--terminal-border);
	border-radius: 4px;
	background: transparent;
	color: var(--terminal-muted);
	font-family: var(--font-mono);
	font-size: 8px;
	cursor: pointer;
}

.terminal-replay:hover {
	border-color: var(--terminal-accent);
	color: var(--terminal-fg);
}

.terminal-body {
	min-height: 436px;
	padding: 25px 26px 28px;
}

.demo-beat {
	opacity: 0;
	transform: translateY(7px);
	transition:
		opacity 320ms ease,
		transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.demo-beat.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.terminal-prompt,
.terminal-call,
.terminal-response {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 8px;
}

.terminal-prompt > span {
	color: var(--terminal-fg);
	font-size: 15px;
}

.terminal-prompt p {
	margin: 0;
	color: var(--terminal-fg);
	font-size: 12px;
	line-height: 20px;
}

.terminal-call {
	padding-top: 15px;
}

.terminal-call > span {
	color: var(--terminal-accent);
}

.terminal-call strong,
.terminal-call small {
	display: block;
}

.terminal-call strong {
	font-size: 11px;
	font-weight: 500;
	line-height: 17px;
}

.terminal-call strong em {
	margin-right: 5px;
	color: var(--terminal-muted);
	font-size: 9px;
	font-style: normal;
	font-weight: 400;
}

.terminal-call code {
	color: var(--terminal-accent);
}

.terminal-call small {
	margin-top: 2px;
	color: var(--terminal-muted);
	font-size: 10px;
	line-height: 16px;
}

.terminal-response {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--terminal-border);
}

.terminal-response > span {
	color: var(--terminal-fg);
}

.terminal-response p {
	margin: 0 0 10px;
	color: color-mix(in srgb, var(--terminal-fg) 86%, var(--terminal-muted));
	font-size: 11px;
	line-height: 19px;
}

.terminal-response p:last-child {
	margin-bottom: 0;
}

.terminal-response code {
	color: var(--terminal-link);
}

.terminal-response p strong {
	color: var(--terminal-fg);
	font-weight: 600;
}

.terminal-response small {
	display: block;
	margin-top: 12px;
	color: var(--terminal-muted);
	font-size: 9px;
}

@media (prefers-reduced-motion: reduce) {
	.demo-beat {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.terminal-replay {
		display: none;
	}
}

.copy-command,
.inline-command {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 0 0 0 12px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg);
}

.copy-command > span {
	color: var(--accent);
	font-family: var(--font-mono);
}

.copy-command code,
.inline-command code {
	min-width: 0;
	font-size: 12px;
	line-height: 18px;
	text-align: left;
	white-space: normal;
}

.copy-command button,
.inline-command button {
	align-self: stretch;
	width: 58px;
	padding: 0 10px;
	border: 0;
	border-left: 1px solid var(--border);
	border-radius: 0;
	background: transparent;
	color: var(--fg1);
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
}

.copy-command button:hover,
.inline-command button:hover {
	background: var(--accent-subtle);
}

.copy-command button.copied,
.inline-command button.copied {
	color: var(--success);
}

.site-footer {
	padding: 28px 0;
}

.site-footer .shell {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
}

.site-footer p {
	margin: 0;
	color: var(--fg3);
	font-size: 11px;
}

.site-footer > .shell > a:last-child {
	justify-self: end;
	color: var(--fg2);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

/* Install page */
.install-hero {
	padding-top: 42px;
}

.back-link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 42px;
	color: var(--fg2);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.back-link:hover {
	color: var(--accent);
}

.install-page .hero-title {
	max-width: 850px;
}

.install-page .hero-copy {
	max-width: 670px;
}

.hero-command {
	width: min(560px, 100%);
	margin-top: 30px;
	background: var(--surface);
}

.setup-terminal {
	max-width: 760px;
	margin-top: 38px;
}

.setup-output {
	padding: 20px 28px;
}

.setup-output > div {
	display: grid;
	grid-template-columns: 20px 160px 1fr;
	gap: 10px;
	align-items: center;
	min-height: 35px;
	font-family: var(--font-mono);
	font-size: 11px;
}

.setup-output span {
	color: var(--success);
}

.setup-output strong {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 500;
}

.setup-output strong img {
	width: 18px;
	height: 18px;
	border-radius: 4px;
	object-fit: contain;
}

.setup-output em {
	color: var(--fg3);
	font-style: normal;
}

.setup-ready {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 28px;
	border-top: 1px solid var(--border-subtle);
	color: var(--fg2);
	font-size: 12px;
}

.setup-ready span {
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.docs-shell {
	max-width: 900px;
}

.docs-intro {
	max-width: 690px;
	margin-bottom: 44px;
}

.steps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--border);
}

.steps-list > li {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 24px;
	padding: 34px 0;
	border-bottom: 1px solid var(--border);
}

.step-number {
	padding-top: 2px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 11px;
}

.steps-list h3 {
	margin: 0 0 7px;
	font-size: 18px;
}

.steps-list p {
	max-width: 650px;
	margin: 0 0 18px;
	color: var(--fg2);
	font-size: 14px;
	line-height: 23px;
}

.inline-command {
	width: min(570px, 100%);
	grid-template-columns: minmax(0, 1fr) auto;
	background: var(--surface);
}

.verify-commands {
	display: grid;
	gap: 4px;
	max-width: 570px;
}

.verify-commands code {
	display: block;
	padding: 5px 0 5px 11px;
	border-left: 2px solid var(--border);
	color: var(--fg2);
	font-size: 11px;
}

.starter-prompt {
	position: relative;
	max-width: 690px;
	padding: 20px 112px 20px 20px;
	border: 1px solid var(--accent);
	border-radius: 7px;
	background: var(--accent-subtle);
}

.starter-prompt p {
	margin: 0;
	color: var(--fg1);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 21px;
}

.starter-prompt button {
	position: absolute;
	top: 15px;
	right: 15px;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg);
	color: var(--fg1);
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
}

.starter-prompt button:hover {
	border-color: var(--accent);
	background: var(--accent-subtle);
}

.starter-prompt button.copied {
	border-color: var(--success);
	color: var(--success);
}

.agent-flow {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: stretch;
	gap: 10px;
	max-width: 690px;
	margin-top: 18px;
}

.agent-flow > span {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border-top: 1px solid var(--border);
}

.agent-flow code {
	width: max-content;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	font-size: 11px;
}

.agent-flow small {
	font-size: 9px;
	line-height: 14px;
}

.agent-flow > i {
	align-self: center;
	color: var(--fg3);
	font-style: normal;
}

.defaults-section {
	background: var(--surface);
}

.default-lines {
	border-top: 1px solid var(--border);
}

.default-lines > div {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 30px;
	padding: 18px 0;
	border-bottom: 1px solid var(--border);
}

.default-lines strong {
	font-size: 14px;
}

.default-lines span {
	color: var(--fg2);
	font-size: 14px;
}

.details-list {
	border-top: 1px solid var(--border);
}

.details-list details {
	border-bottom: 1px solid var(--border);
}

.details-list summary {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px;
	min-height: 66px;
	padding: 0 40px 0 0;
	cursor: pointer;
	list-style: none;
}

.details-list summary::-webkit-details-marker {
	display: none;
}

.details-list summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 18px;
}

.details-list details[open] summary::after {
	content: '−';
}

.details-list summary > span {
	font-size: 15px;
	font-weight: 600;
}

.details-list summary small {
	font-size: 10px;
}

.details-body {
	padding: 4px 0 28px;
	color: var(--fg2);
}

.details-body > p {
	max-width: 680px;
	font-size: 14px;
	line-height: 23px;
}

.details-body pre {
	margin: 16px 0 0;
	padding: 18px;
	border-color: var(--border);
	background: var(--surface);
}

.details-body pre code {
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 11px;
}

.tool-reference {
	display: grid;
	gap: 0;
}

.tool-reference > div {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 22px;
	padding: 11px 0;
	border-top: 1px solid var(--border-subtle);
}

.tool-reference code {
	width: max-content;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	font-size: 11px;
}

.tool-reference span {
	font-size: 13px;
}

.install-bottom {
	background: var(--surface);
}

.install-bottom-inner {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	align-items: center;
	gap: 54px;
}

.install-bottom .section-label {
	margin-bottom: 8px;
}

.install-bottom .copy-command {
	background: var(--bg);
}

@media (max-width: 960px) {
	.hero-title {
		font-size: 50px;
	}

	.surface-layout {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.surface-copy {
		max-width: 680px;
	}

	.codex-terminal {
		max-width: 760px;
		justify-self: stretch;
	}

	.product-film {
		max-width: 760px;
		justify-self: stretch;
	}

	.install-bottom-inner {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

@media (max-width: 720px) {
	.shell {
		width: min(100% - 32px, 1180px);
	}

	.site-header {
		grid-template-columns: 1fr auto auto;
		padding: 0 16px;
	}

	.site-nav a {
		min-width: 68px;
		padding: 0 10px;
	}

	.site-nav a.current::after {
		left: 10px;
		right: 10px;
	}

	.icon-button {
		margin-left: 8px;
	}

	.hero-band {
		padding: 62px 0 52px;
	}

	.hero-title {
		font-size: 40px;
		line-height: 48px;
	}

	.hero-copy {
		font-size: 17px;
		line-height: 27px;
	}

	.section-band {
		padding: 68px 0;
	}

	.surface-copy h2,
	.docs-intro h2,
	.install-bottom h2 {
		font-size: 29px;
		line-height: 37px;
	}

	.site-footer .shell {
		grid-template-columns: 1fr auto;
	}

	.site-footer p {
		display: none;
	}

	.install-hero {
		padding-top: 28px;
	}

	.back-link {
		margin-bottom: 34px;
	}

	.steps-list > li {
		grid-template-columns: 40px 1fr;
		gap: 12px;
	}

	.agent-flow {
		grid-template-columns: 1fr;
	}

	.agent-flow > i {
		transform: rotate(90deg);
	}

	.default-lines > div,
	.tool-reference > div {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.details-list summary {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 13px 40px 13px 0;
	}
}

@media (max-width: 480px) {
	.brand span {
		display: none;
	}

	.site-nav a {
		min-width: 62px;
		font-size: 12px;
	}

	.hero-title {
		font-size: 36px;
		line-height: 43px;
	}

	.window-bar {
		padding: 0 12px;
	}

	.window-state {
		font-size: 9px;
	}

	.terminal-header {
		padding: 0 14px;
	}

	.terminal-header > code {
		max-width: 140px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.terminal-live {
		display: none;
	}

	.terminal-body {
		min-height: 500px;
		padding: 20px 16px 22px;
	}

	.film-caption {
		display: none;
	}

	.steps-list > li {
		grid-template-columns: 1fr;
	}

	.step-number {
		padding: 0;
	}

	.starter-prompt {
		padding: 18px;
	}

	.starter-prompt button {
		position: static;
		margin-top: 14px;
	}

	.setup-output {
		padding: 18px;
	}

	.setup-output > div {
		grid-template-columns: 18px 1fr;
	}

	.setup-output em {
		grid-column: 2;
	}
}
