:root {
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-raised: #fafbfc;
	--surface-soft: #f6f7f8;
	--line: rgba(28, 32, 36, 0.13);
	--line-strong: rgba(28, 32, 36, 0.2);
	--text: #202327;
	--muted: #626970;
	--subtle: #70777e;
	--accent: #d85b47;
	--accent-bright: #c74b38;
	--accent-soft: rgba(216, 91, 71, 0.11);
	--green: #25865d;
	--yellow: #a66b00;
	--blue: #246cae;
	--purple: #7458b5;
	--code-bg: #0d1117;
	--code-surface: #131820;
	--code-line: rgba(255, 255, 255, 0.09);
	--code-text: #e2e7ef;
	--code-muted: #8b95a5;
	--code: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
	--sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	overflow-x: hidden;
}

a {
	color: inherit;
}

.site-header {
	position: relative;
	z-index: 20;
	display: flex;
	width: min(100% - 48px, 1180px);
	height: 72px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.docs-page .site-header {
	position: sticky;
	top: 0;
	width: 100%;
	height: 64px;
	padding: 0 28px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(18px);
}

.site-brand {
	display: inline-flex;
	min-width: max-content;
	align-items: center;
	gap: 10px;
	color: var(--text);
	text-decoration: none;
}

.brand-mark {
	display: grid;
	width: 33px;
	height: 33px;
	place-items: center;
	border: 1px solid rgba(216, 91, 71, 0.38);
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent-bright);
	font: 700 12px/1 var(--code);
	letter-spacing: -0.04em;
	box-shadow: 0 6px 20px rgba(92, 45, 36, 0.08);
}

.brand-name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.alpha-pill {
	display: inline-flex;
	padding: 3px 7px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 5px;
}

.site-nav a {
	padding: 8px 11px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
	transition: 140ms ease;
}

.site-nav a:hover,
.site-nav a.active {
	background: var(--surface-soft);
	color: var(--text);
}

.hero {
	display: grid;
	width: min(100% - 48px, 1180px);
	min-height: 650px;
	margin: 0 auto;
	padding: 96px 0 105px;
	grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
	align-items: center;
	gap: 76px;
}

.eyebrow {
	margin: 0 0 13px;
	color: var(--accent-bright);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(62px, 8vw, 98px);
	font-weight: 700;
	letter-spacing: -0.065em;
	line-height: 0.95;
}

.hero-statement {
	max-width: 760px;
	margin: 25px 0 0;
	font-size: clamp(33px, 4.4vw, 54px);
	font-weight: 620;
	letter-spacing: -0.052em;
	line-height: 1.06;
}

.hero-lede {
	max-width: 650px;
	margin: 27px 0 0;
	color: var(--muted);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	margin-top: 35px;
	align-items: center;
	gap: 12px;
}

.button {
	display: inline-flex;
	min-height: 43px;
	padding: 0 17px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: 140ms ease;
}

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

.button.primary {
	border-color: var(--accent-bright);
	background: var(--accent-bright);
	color: #ffffff;
	box-shadow: 0 8px 28px rgba(255, 112, 88, 0.2);
}

.button.primary:hover {
	background: #b84332;
}

.button.secondary {
	background: var(--surface);
	color: var(--text);
}

.button.secondary:hover {
	background: var(--surface-soft);
}

.code-card {
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	border-color: rgba(13, 17, 23, 0.18);
	background: var(--code-bg);
	box-shadow: 0 28px 80px rgba(28, 32, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-card-header {
	display: flex;
	height: 48px;
	padding: 0 16px;
	align-items: center;
	gap: 9px;
	border-bottom: 1px solid var(--code-line);
	color: #c8ccd6;
	font: 11px/1 var(--code);
}

.file-dot {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--accent);
	box-shadow: 0 0 10px rgba(255, 112, 88, 0.45);
}

.version {
	margin-left: auto;
	color: var(--code-muted);
	font: 10px/1 var(--code);
}

.code-card pre {
	margin: 0;
	padding: 27px 24px 30px;
	overflow-x: auto;
	color: var(--code-text);
	font: 14.5px/1.78 var(--code);
	tab-size: 2;
}

.code-keyword { color: #ff8e78; }
.code-type { color: #8fc8ff; }
.code-string { color: #a9d18e; }

.code-output {
	padding: 12px 17px;
	border-top: 1px solid var(--code-line);
	background: rgba(255, 255, 255, 0.012);
	color: #cdd3dc;
	font: 12px/1 var(--code);
}

.code-output span {
	margin-right: 8px;
	color: var(--green);
}

.entry-grid {
	display: grid;
	width: min(100% - 48px, 1180px);
	margin: 0 auto;
	padding: 0 0 110px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.entry-card {
	position: relative;
	display: flex;
	min-height: 220px;
	padding: 25px 54px 24px 25px;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: var(--surface);
	color: var(--text);
	flex-direction: column;
	text-decoration: none;
	transition: 150ms ease;
	box-shadow: 0 12px 32px rgba(28, 32, 36, 0.045);
}

.entry-card:hover {
	transform: translateY(-2px);
	border-color: var(--line-strong);
	background: var(--surface-raised);
	box-shadow: 0 18px 42px rgba(28, 32, 36, 0.1);
}

.entry-card.primary {
	border-color: rgba(216, 91, 71, 0.34);
	background: var(--surface);
}

.entry-kicker {
	margin-bottom: auto;
	color: var(--accent-bright);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.entry-card strong {
	margin: 28px 0 9px;
	font-size: 21px;
	letter-spacing: -0.025em;
}

.entry-card > span:not(.entry-kicker, .entry-arrow) {
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.6;
}

.entry-arrow {
	position: absolute;
	right: 23px;
	bottom: 23px;
	color: var(--subtle);
	font-size: 20px;
	transition: 150ms ease;
}

.entry-card:hover .entry-arrow {
	transform: translateX(3px);
	color: var(--accent-bright);
}

.target-section {
	display: grid;
	width: min(100% - 48px, 1180px);
	margin: 0 auto 100px;
	padding: 56px;
	grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
	align-items: center;
	gap: 64px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface-soft);
}

.target-section h2 {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 650;
	letter-spacing: -0.04em;
	line-height: 1.14;
}

.target-grid {
	display: grid;
	gap: 9px;
}

.target-grid div {
	display: flex;
	padding: 15px 17px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}

.target-grid strong {
	font-size: 14px;
}

.target-grid span {
	color: var(--muted);
	font-size: 13.5px;
	text-align: right;
}

.site-footer {
	display: flex;
	width: min(100% - 48px, 1180px);
	min-height: 84px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid var(--line);
	color: var(--subtle);
	font-size: 13px;
}

.site-footer a {
	color: var(--muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--text);
}

.docs-layout {
	display: grid;
	min-height: calc(100vh - 64px);
	grid-template-columns: 272px minmax(0, 1fr);
}

.docs-sidebar {
	position: sticky;
	top: 64px;
	height: calc(100vh - 64px);
	overflow-y: auto;
	padding: 30px 22px 52px 28px;
	border-right: 1px solid var(--line);
	background: #f7f7f8;
}

.docs-sidebar section + section {
	margin-top: 27px;
}

.docs-navigation {
	display: block;
}

.docs-menu {
	display: none;
}

.docs-sidebar h2 {
	margin: 0 0 8px;
	padding: 0 9px;
	color: var(--subtle);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.docs-sidebar a {
	display: block;
	padding: 7px 9px;
	border-radius: 7px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.docs-sidebar a:hover {
	color: var(--text);
}

.docs-sidebar a.active {
	background: var(--accent-soft);
	color: var(--accent-bright);
	font-weight: 650;
}

.docs-main {
	width: 100%;
	min-width: 0;
	max-width: 1020px;
	padding: 62px 72px 50px;
}

.markdown-body {
	max-width: 790px;
	color: #41464b;
	font-size: 17px;
	line-height: 1.78;
}

.markdown-body > :first-child {
	margin-top: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
	color: var(--text);
	font-weight: 650;
	letter-spacing: -0.035em;
	line-height: 1.25;
	scroll-margin-top: 82px;
}

.markdown-body h1 {
	margin: 0 0 28px;
	font-size: clamp(36px, 5vw, 52px);
	letter-spacing: -0.05em;
}

.markdown-body h2 {
	margin: 58px 0 18px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	font-size: 30px;
}

.markdown-body h3 {
	margin: 37px 0 14px;
	font-size: 23px;
}

.markdown-body h4 {
	margin: 28px 0 12px;
	font-size: 17px;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body table,
.markdown-body pre {
	margin-top: 0;
	margin-bottom: 20px;
}

.markdown-body ul,
.markdown-body ol {
	padding-left: 25px;
}

.markdown-body li + li {
	margin-top: 5px;
}

.markdown-body a {
	color: var(--blue);
	text-decoration-color: rgba(36, 108, 174, 0.34);
	text-underline-offset: 3px;
}

.markdown-body a:hover {
	color: #174f83;
	text-decoration-color: currentColor;
}

.markdown-body code {
	padding: 2px 5px;
	border: 1px solid rgba(216, 91, 71, 0.16);
	border-radius: 5px;
	background: #f8efed;
	color: #9a4033;
	font: 0.88em/1.5 var(--code);
}

.markdown-body h1 code,
.markdown-body h2 code,
.markdown-body h3 code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

.markdown-body pre {
	padding: 19px 21px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 11px;
	border-color: rgba(13, 17, 23, 0.18);
	background: var(--code-bg);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.markdown-body .code-block {
	position: relative;
	margin-bottom: 20px;
}

.markdown-body .code-block pre {
	margin-bottom: 0;
	padding-right: 82px;
}

.code-copy-button {
	position: absolute;
	top: 11px;
	right: 11px;
	z-index: 1;
	min-width: 55px;
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	background: rgba(19, 24, 32, 0.92);
	color: #c9d1d9;
	font: 650 12px/1.2 var(--sans);
	cursor: pointer;
	transition: 120ms ease;
}

.code-copy-button:hover {
	border-color: rgba(255, 255, 255, 0.3);
	background: #202732;
	color: #ffffff;
}

.code-copy-button:focus-visible {
	outline: 2px solid #58a6ff;
	outline-offset: 2px;
}

.code-copy-button[data-state="copied"] {
	border-color: rgba(63, 185, 80, 0.44);
	color: #7ee787;
}

.code-copy-button[data-state="failed"] {
	border-color: rgba(248, 81, 73, 0.48);
	color: #ff7b72;
}

.markdown-body pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--code-text);
	font-size: 15px;
	line-height: 1.75;
	tab-size: 2;
}

.markdown-body blockquote {
	padding: 13px 17px;
	border-left: 3px solid var(--accent);
	background: rgba(216, 91, 71, 0.065);
	color: #56504d;
}

.markdown-body blockquote > :last-child {
	margin-bottom: 0;
}

.markdown-body table {
	display: block;
	width: max-content;
	max-width: 100%;
	overflow-x: auto;
	border-spacing: 0;
	border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
	padding: 10px 13px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.markdown-body th {
	background: var(--surface-soft);
	color: var(--text);
	font-size: 14px;
}

.markdown-body td {
	font-size: 15px;
}

.markdown-body hr {
	height: 1px;
	margin: 44px 0;
	border: 0;
	background: var(--line);
}

.docs-footer {
	display: flex;
	max-width: 790px;
	margin-top: 70px;
	padding-top: 20px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid var(--line);
	color: var(--subtle);
	font-size: 11px;
}

.docs-footer a {
	color: var(--muted);
	text-decoration: none;
}

.docs-footer a:hover {
	color: var(--text);
}

@media (max-width: 980px) {
	.hero {
		padding-top: 70px;
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.code-card {
		max-width: 670px;
	}

	.entry-grid {
		grid-template-columns: 1fr;
	}

	.entry-card {
		min-height: 175px;
	}

	.target-section {
		padding: 42px;
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.docs-layout {
		grid-template-columns: 230px minmax(0, 1fr);
	}

	.docs-sidebar {
		padding-right: 16px;
		padding-left: 18px;
	}

	.docs-main {
		padding-right: 40px;
		padding-left: 40px;
	}
}

@media (max-width: 720px) {
	.site-header,
	.docs-page .site-header {
		width: 100%;
		height: auto;
		min-height: 64px;
		padding: 13px 16px;
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.site-nav {
		width: 100%;
		overflow-x: auto;
	}

	.site-nav a {
		padding: 7px 9px;
		white-space: nowrap;
	}

	.hero,
	.entry-grid,
	.target-section,
	.site-footer {
		width: min(100% - 28px, 1180px);
	}

	.hero {
		min-height: 0;
		padding: 62px 0 78px;
	}

	.hero h1 {
		font-size: 62px;
	}

	.hero-statement {
		font-size: 35px;
	}

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

	.code-card pre {
		padding: 22px 18px;
		font-size: 12.5px;
	}

	.entry-grid {
		padding-bottom: 72px;
	}

	.target-section {
		margin-bottom: 72px;
		padding: 29px 23px;
	}

	.target-grid div,
	.site-footer,
	.docs-footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.target-grid span {
		text-align: left;
	}

	.docs-layout {
		display: block;
	}

	.docs-sidebar {
		position: static;
		width: 100%;
		height: auto;
		padding: 18px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.docs-navigation {
		display: none;
	}

	.docs-menu {
		display: block;
	}

	.docs-menu summary {
		display: block;
		padding: 9px 11px;
		border: 1px solid var(--line);
		border-radius: 8px;
		color: var(--muted);
		font-size: 12px;
		font-weight: 650;
		cursor: pointer;
	}

	.docs-menu[open] summary {
		margin-bottom: 18px;
		color: var(--text);
	}

	.docs-menu:not([open]) > nav {
		display: none;
	}

	.docs-menu > nav {
		display: flex;
		overflow-x: auto;
		gap: 22px;
	}

	.docs-sidebar section,
	.docs-sidebar section + section {
		min-width: 155px;
		margin: 0;
	}

	.docs-main {
		padding: 36px 20px;
	}

	.markdown-body {
		font-size: 16px;
	}

	.markdown-body h1 {
		font-size: 36px;
	}

	.markdown-body h2 {
		font-size: 25px;
	}
}
