:root {
	--bg: #0d1117;
	--bg-soft: #111826;
	--panel: rgba(19, 27, 42, 0.76);
	--line: rgba(154, 174, 210, 0.26);
	--text: #e6eefc;
	--muted: #a9b6d3;
	--accent: #6d7dff;
	--accent-ink: #f4f6ff;
	--ink-strong: #f6f8ff;
	--shape-a: rgba(109, 125, 255, 0.38);
	--shape-b: rgba(30, 201, 177, 0.32);
	--shadow: 0 20px 54px rgba(5, 9, 16, 0.45);
}

body[data-theme="light"] {
	--bg: #f5f8ff;
	--bg-soft: #eef4ff;
	--panel: rgba(255, 255, 255, 0.84);
	--line: rgba(106, 128, 170, 0.26);
	--text: #1d2b44;
	--muted: #56698d;
	--accent: #4f63e8;
	--accent-ink: #ffffff;
	--ink-strong: #111f38;
	--shape-a: rgba(99, 118, 255, 0.2);
	--shape-b: rgba(53, 189, 165, 0.18);
	--shadow: 0 16px 38px rgba(58, 88, 133, 0.16);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

.scroll-progress {
	background: rgba(154, 174, 210, 0.18);
	height: 3px;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 30;
}

.scroll-progress-bar {
	background: linear-gradient(90deg, #5d72ff 0%, #30c4ae 100%);
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 120ms linear;
	width: 100%;
}

body {
	background: radial-gradient(
			circle at 10% 10%,
			rgba(109, 125, 255, 0.22) 0,
			transparent 42%
		),
		radial-gradient(
			circle at 90% 85%,
			rgba(30, 201, 177, 0.2) 0,
			transparent 48%
		), linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
	color: var(--text);
	font-family: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	padding-top: 2.1rem;
}

.top-message {
	align-items: center;
	background: linear-gradient(
		90deg,
		rgba(93, 114, 255, 0.22),
		rgba(48, 196, 174, 0.2)
	);
	border-bottom: 1px solid rgba(154, 174, 210, 0.24);
	display: flex;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.74rem;
	gap: 0.6rem;
	justify-content: center;
	left: 0;
	padding: 0.44rem 0.75rem;
	position: fixed;
	top: 3px;
	width: 100%;
	z-index: 25;
}

.top-message a {
	color: #d2fff8;
	text-decoration: none;
}

.bg-shape {
	border-radius: 999px;
	filter: blur(18px);
	position: fixed;
	z-index: -1;
}

.bg-shape-a {
	background: var(--shape-a);
	height: 15rem;
	left: -4rem;
	top: -3rem;
	width: 15rem;
}

.bg-shape-b {
	background: var(--shape-b);
	bottom: -4rem;
	height: 20rem;
	right: -5rem;
	width: 20rem;
}

.page {
	margin: 0 auto;
	max-width: 76rem;
	padding: 2.2rem 1.1rem 4.4rem;
}

.hero {
	margin-top: 1rem;
}

.top-nav {
	backdrop-filter: blur(8px);
	background: rgba(18, 29, 47, 0.66);
	border: 1px solid var(--line);
	border-radius: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1rem;
	padding: 0.55rem;
	position: sticky;
	top: 0.75rem;
	z-index: 10;
}

.theme-toggle {
	background: rgba(48, 196, 174, 0.2);
	border: 1px solid rgba(86, 224, 205, 0.46);
	border-radius: 0.55rem;
	color: var(--text);
	cursor: pointer;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.74rem;
	padding: 0.35rem 0.55rem;
}

.top-nav-toggle {
	display: none;
}

.top-nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	width: 100%;
}

.top-nav a {
	background: rgba(109, 125, 255, 0.16);
	border: 1px solid rgba(166, 178, 255, 0.24);
	border-radius: 0.55rem;
	color: #dfe6ff;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.74rem;
	padding: 0.35rem 0.55rem;
	text-decoration: none;
}

.top-nav a:hover {
	background: rgba(109, 125, 255, 0.28);
}

.top-nav a.is-active {
	background: rgba(48, 196, 174, 0.24);
	border-color: rgba(86, 224, 205, 0.46);
	color: #d2fff8;
}

.badge {
	background: rgba(109, 125, 255, 0.2);
	border: 1px solid rgba(166, 178, 255, 0.4);
	border-radius: 999px;
	color: #dfe5ff;
	display: inline-block;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.76rem;
	letter-spacing: 0.02em;
	margin: 0;
	padding: 0.35rem 0.8rem;
}

h1 {
	color: var(--ink-strong);
	font-size: clamp(2rem, 6vw, 4rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0.85rem 0 0.75rem;
}

h2 {
	font-size: clamp(1.34rem, 2.8vw, 2rem);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.72rem;
}

h3 {
	font-size: 1.03rem;
	margin: 0 0 0.45rem;
}

.lead {
	color: var(--muted);
	font-size: clamp(1rem, 2.4vw, 1.25rem);
	margin: 0;
	max-width: 44rem;
}

.hero-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.95rem;
}

.hero-highlights span {
	background: rgba(30, 201, 177, 0.16);
	border: 1px solid rgba(63, 211, 189, 0.28);
	border-radius: 999px;
	color: #c9fff6;
	font-size: 0.78rem;
	padding: 0.25rem 0.62rem;
}

.hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.25rem;
}

.hero-cta-row .btn {
	font-size: 0.9rem;
	padding: 0.66rem 1rem;
}

.hero-kpi {
	display: grid;
	gap: 0.45rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1rem;
}

.hero-kpi span {
	background: rgba(16, 27, 43, 0.72);
	border: 1px solid rgba(154, 174, 210, 0.24);
	border-radius: 0.65rem;
	color: #c9d8f3;
	font-size: 0.78rem;
	padding: 0.48rem 0.58rem;
}

.hero-kpi strong {
	color: #ecf3ff;
}

.hero-more-links {
	margin-top: 0.72rem;
}

.hero-more-links summary {
	color: #b9c8e9;
	cursor: pointer;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.76rem;
	list-style: none;
	width: fit-content;
}

.hero-more-links summary::-webkit-details-marker {
	display: none;
}

.hero-more-links summary::before {
	content: "▸";
	display: inline-block;
	margin-right: 0.35rem;
	transition: transform 180ms ease;
}

.hero-more-links[open] summary::before {
	transform: rotate(90deg);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.52rem;
	margin-top: 0.58rem;
}

.hero-actions .btn {
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.44rem 0.68rem;
}

.btn {
	border-radius: 0.7rem;
	display: inline-block;
	font-weight: 600;
	overflow: hidden;
	padding: 0.6rem 0.95rem;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn:focus-visible,
.top-nav a:focus-visible,
.top-nav-toggle:focus-visible,
.theme-toggle:focus-visible,
.hero-more-links summary:focus-visible,
.command-block button:focus-visible {
	outline: 2px solid rgba(86, 224, 205, 0.8);
	outline-offset: 2px;
}

.btn-primary {
	background: linear-gradient(135deg, #5d72ff 0%, #30c4ae 100%);
	box-shadow: 0 10px 28px rgba(72, 104, 255, 0.36);
	color: var(--accent-ink);
	position: relative;
}

.btn-primary::after {
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.36),
		transparent
	);
	content: "";
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(-100%);
	transition: transform 420ms ease, opacity 260ms ease;
}

.btn-primary:hover::after {
	opacity: 1;
	transform: translateX(100%);
}

.btn-ghost {
	backdrop-filter: blur(6px);
	background: rgba(18, 29, 47, 0.52);
	border: 1px solid var(--line);
	color: var(--text);
}

.stat-grid {
	display: grid;
	gap: 0.7rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 1.5rem 0;
}

.stat-card {
	background: rgba(17, 28, 46, 0.7);
	border: 1px solid var(--line);
	border-radius: 1rem;
	padding: 0.95rem;
}

.stat-label {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0;
}

.stat-value {
	font-size: 1rem;
	font-weight: 700;
	margin: 0.25rem 0 0;
}

.panel {
	backdrop-filter: blur(10px);
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 1.05rem;
	box-shadow: var(--shadow);
	margin-top: 0.95rem;
	overflow: hidden;
	padding: 1.2rem;
	position: relative;
	scroll-margin-top: 88px;
	transition: transform 180ms ease, border-color 180ms ease;
}

.panel::before {
	background: linear-gradient(
		90deg,
		rgba(93, 114, 255, 0.28),
		rgba(48, 196, 174, 0.2)
	);
	content: "";
	height: 2px;
	left: 0;
	opacity: 0.95;
	position: absolute;
	right: 0;
	top: 0;
}

section.panel:nth-of-type(odd)::before {
	background: linear-gradient(
		90deg,
		rgba(93, 114, 255, 0.34),
		rgba(79, 129, 255, 0.16)
	);
}

section.panel:nth-of-type(even)::before {
	background: linear-gradient(
		90deg,
		rgba(48, 196, 174, 0.34),
		rgba(95, 144, 255, 0.16)
	);
}

.panel:hover {
	border-color: rgba(154, 174, 210, 0.45);
	transform: translateY(-1px);
}

.panel ol {
	margin: 0 0 1rem 1.1rem;
	padding: 0;
}

.command-grid {
	display: grid;
	gap: 0.7rem;
}

.command-block {
	align-items: center;
	background: #101f24;
	border: 1px solid rgba(154, 174, 210, 0.18);
	border-radius: 0.85rem;
	color: #eff3f1;
	display: flex;
	gap: 0.7rem;
	justify-content: space-between;
	padding: 0.82rem;
	width: 100%;
}

.command-block code {
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.88rem;
	overflow-wrap: anywhere;
}

.command-block button {
	background: linear-gradient(135deg, #5d72ff 0%, #30c4ae 100%);
	border: none;
	border-radius: 0.55rem;
	color: #f8fbff;
	cursor: pointer;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.78rem;
	padding: 0.45rem 0.7rem;
	transition: transform 140ms ease, filter 180ms ease;
}

.command-block button.is-copied {
	filter: saturate(1.25) brightness(1.08);
	transform: translateY(-1px);
}

.step-nav {
	margin: 0 0 0.85rem;
}

.step-nav p {
	color: var(--muted);
	margin: 0 0 0.45rem;
}

.step-buttons {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-button {
	background: #f6efe5;
	border: 1px solid #c9ad91;
	border-radius: 0.65rem;
	color: #193039;
	cursor: pointer;
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
	font-size: 0.8rem;
	padding: 0.55rem 0.7rem;
	text-align: left;
	transition: all 180ms ease;
}

.step-button:hover {
	background: #ffeddc;
	transform: translateY(-1px);
}

.step-highlight {
	box-shadow: 0 0 0 3px rgba(208, 91, 47, 0.32);
	transform: translateY(-2px);
}

.note {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0.8rem 0 0;
}

.note code {
	font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
}

.example-grid {
	display: grid;
	gap: 0.7rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.example-card {
	background: #fdf8ef;
	border: 1px dashed #d7bda1;
	border-radius: 0.8rem;
	padding: 0.85rem;
}

.example-card p {
	color: #26353b;
	font-size: 0.95rem;
	margin: 0;
}

.checklist {
	margin: 0.72rem 0 0;
	padding-left: 1.1rem;
}

.checklist li {
	line-height: 1.5;
	margin-bottom: 0.4rem;
}

.footer {
	color: var(--muted);
	margin-top: 1.4rem;
	padding: 0.2rem 0.2rem 0;
}

.footer a,
.panel a {
	color: #86c7ff;
}

.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 840px) {
	.stat-grid {
		grid-template-columns: 1fr;
	}

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

	.step-buttons {
		grid-template-columns: 1fr;
	}

	.hero-kpi {
		grid-template-columns: 1fr;
	}

	.panel {
		padding: 1rem;
	}

	.top-nav {
		padding: 0.5rem;
	}

	.top-nav-toggle {
		background: rgba(109, 125, 255, 0.22);
		border: 1px solid rgba(166, 178, 255, 0.4);
		border-radius: 0.55rem;
		color: #e9eeff;
		display: inline-flex;
		font-family: "IBM Plex Mono", "Menlo", "Monaco", monospace;
		font-size: 0.74rem;
		padding: 0.4rem 0.62rem;
	}

	.top-nav-links {
		display: none;
		flex-direction: column;
	}

	.top-nav-links.is-open {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
