:root {
	--bg: #101411;
	--bg-2: #171d19;
	--ink: #edf3ee;
	--muted: #a3b5a8;
	--accent: #3dce7a;
	--accent-ink: #06210f;
	--line: rgba(237, 243, 238, 0.1);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	--glow: rgba(61, 206, 122, 0.22);
	--console: #0c100e;
	--radius: 22px;
	--font: "Outfit", "Segoe UI", sans-serif;
	--display: "Fraunces", Georgia, serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: dark;
}

html[data-theme="light"] {
	--bg: #f3f6f2;
	--bg-2: #ffffff;
	--ink: #17211b;
	--muted: #5d6d63;
	--accent: #1d8a49;
	--accent-ink: #f4fff7;
	--line: rgba(23, 33, 27, 0.1);
	--shadow: 0 20px 50px rgba(40, 60, 45, 0.08);
	--glow: rgba(29, 138, 73, 0.16);
	--console: #fbfcfb;
	color-scheme: light;
}

html[data-theme="green"] {
	--bg: #07150d;
	--bg-2: #10281a;
	--ink: #e9f8ee;
	--muted: #9dccb0;
	--accent: #7dffa8;
	--accent-ink: #04210f;
	--line: rgba(233, 248, 238, 0.12);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
	--glow: rgba(125, 255, 168, 0.2);
	--console: #06140c;
	color-scheme: dark;
}

html[data-theme="gold"] {
	--bg: #14110c;
	--bg-2: #221c14;
	--ink: #f8f1e6;
	--muted: #cbbba3;
	--accent: #e4b65a;
	--accent-ink: #241804;
	--line: rgba(248, 241, 230, 0.12);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
	--glow: rgba(228, 182, 90, 0.2);
	--console: #100e0a;
	color-scheme: dark;
}

html[data-theme="dusk"] {
	--bg: #10131c;
	--bg-2: #1a2030;
	--ink: #eef0f8;
	--muted: #b0b6cb;
	--accent: #9aaeff;
	--accent-ink: #101426;
	--line: rgba(238, 240, 248, 0.12);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
	--glow: rgba(154, 174, 255, 0.22);
	--console: #0d1018;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 108px;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-weight: 420;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.55;
	transition: background 0.8s var(--ease), color 0.8s var(--ease);
	animation: page-in 0.9s var(--ease) both;
}

@keyframes page-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes settle {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
	animation: none !important;
	transition: none !important;
}

.atmosphere {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(900px 480px at 12% -10%, var(--glow), transparent 60%),
		radial-gradient(700px 420px at 100% 0%, var(--glow), transparent 55%);
	z-index: 0;
}

.skip {
	position: absolute;
	left: 16px;
	top: -40px;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 8px 12px;
	border-radius: 10px;
	z-index: 5;
}

.skip:focus { top: 12px; }

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

a { color: inherit; }

.nav {
	position: sticky;
	top: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(1120px, calc(100% - 28px));
	margin: 14px auto 0;
	padding: 10px 12px 10px 14px;
	background: color-mix(in srgb, var(--bg-2) 78%, transparent);
	border: 1px solid var(--line);
	border-radius: 999px;
	backdrop-filter: blur(16px);
	box-shadow: var(--shadow);
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 640;
	letter-spacing: -0.02em;
}

.mark {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background:
		linear-gradient(var(--accent), var(--accent)) 0 0 / 9px 9px no-repeat,
		linear-gradient(var(--accent), var(--accent)) 13px 0 / 9px 9px no-repeat,
		linear-gradient(color-mix(in srgb, var(--accent) 55%, var(--bg)), color-mix(in srgb, var(--accent) 55%, var(--bg))) 0 13px / 9px 9px no-repeat,
		linear-gradient(var(--accent), var(--accent)) 13px 13px / 9px 9px no-repeat;
}

.links {
	display: flex;
	gap: 6px;
	margin-left: auto;
}

.links a {
	text-decoration: none;
	color: var(--muted);
	padding: 8px 12px;
	border-radius: 999px;
	transition: color 0.6s var(--ease), background 0.6s var(--ease), transform 0.6s var(--ease);
}

.links a:hover,
.links a:focus-visible {
	color: var(--ink);
	background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.6s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--ease);
}

.menu:hover {
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	position: relative;
}

.menu-bars { margin: 0 auto; }
.menu-bars::before,
.menu-bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	text-decoration: none;
	font: inherit;
	font-weight: 560;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease), filter 0.6s var(--ease);
}

.btn-solid {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn-solid:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
	box-shadow: 0 14px 28px var(--glow);
}

.btn-soon {
	cursor: default;
	pointer-events: none;
}

.btn-soon:hover { filter: none; }

.soon-link {
	color: var(--muted);
	cursor: default;
}

.btn-ghost {
	border-color: var(--line);
	background: color-mix(in srgb, var(--bg-2) 70%, transparent);
	color: var(--ink);
}

.btn-ghost:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
	background: color-mix(in srgb, var(--accent) 14%, var(--bg-2));
	box-shadow: 0 12px 24px color-mix(in srgb, var(--glow) 70%, transparent);
}

.btn:focus-visible,
.theme-card:focus-visible,
.segmented button:focus-visible,
.menu:focus-visible,
.links a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

main {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding-bottom: 72px;
}

.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 42px;
	align-items: center;
	padding: 72px 0 36px;
}

.hero-copy,
.console {
	animation: settle 1.05s var(--ease) both;
}

.console { animation-delay: 0.14s; }

.kicker {
	margin: 0 0 10px;
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 640;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; }

h1 {
	margin: 0;
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	line-height: 1.02;
}

.headline { position: relative; }

html[data-type="on"] .headline-ghost { visibility: hidden; }

.caret-space {
	display: inline-block;
	width: 0.12em;
}

.typed {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
}

.typed.typing::after {
	content: "";
	display: inline-block;
	width: 0.07em;
	height: 0.72em;
	margin-left: 0.05em;
	background: var(--accent);
	transform: translateY(0.08em);
	animation: caret 0.85s steps(1) infinite;
}

@keyframes caret {
	50% { opacity: 0; }
}

h2 {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
	line-height: 1.12;
}

h3 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.2; }

.lede, .section-note, .card p, .motion-row p, .fine {
	color: var(--muted);
}

.lede { font-size: 1.12rem; max-width: 46rem; }

.pills, .more {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 22px 0 0;
	list-style: none;
}

.pills li, .more li {
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg-2) 80%, transparent);
	font-size: 0.92rem;
}

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.console {
	background: var(--console);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.console-top {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
}

.console-top span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 70%, var(--muted));
}

.console-top p {
	margin: 0 0 0 8px;
	color: var(--muted);
	font-size: 0.85rem;
}

.console pre {
	margin: 0;
	padding: 18px 16px 20px;
	overflow: auto;
	font-family: "Outfit", ui-monospace, monospace;
	font-size: 0.95rem;
	line-height: 1.7;
}

.prompt { color: var(--accent); }

.band { padding: 54px 0 10px; scroll-margin-top: 96px; }

.section-head { max-width: 40rem; margin-bottom: 26px; }

.section-note { margin: 12px 0 0; }

.bento {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.shot {
	background: color-mix(in srgb, var(--bg-2) 88%, transparent);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.shot-open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #101410;
	cursor: zoom-in;
}

.shot-open img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.85s var(--ease);
}

.shot:hover .shot-open img { transform: scale(1.03); }

.shot-body { padding: 16px 16px 18px; }

.shot h3 {
	font-family: var(--font);
	font-size: 1.15rem;
	font-weight: 640;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
}

.shot p { margin: 0 0 12px; }

.shot time {
	display: block;
	color: var(--muted);
	font-size: 0.88rem;
}

.lightbox {
	width: min(920px, calc(100% - 32px));
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--bg-2);
	color: var(--ink);
	box-shadow: var(--shadow);
}

.lightbox::backdrop {
	background: rgba(0, 0, 0, 0.62);
}

.lightbox img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.lightbox-close {
	margin: 0 0 8px auto;
	display: block;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	font: inherit;
	border-radius: 999px;
	padding: 6px 12px;
	cursor: pointer;
}

.card, .command-grid article, .facts, .motion-row {
	background: color-mix(in srgb, var(--bg-2) 88%, transparent);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card { padding: 22px 22px 20px; }

.card,
.shot,
.command-grid article,
.theme-card,
.cmds li,
.pills li,
.more li,
.foot-links a,
.lightbox-close,
.segmented button,
.brand {
	transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.7s var(--ease), background 0.7s var(--ease), color 0.7s var(--ease);
}

.card:hover,
.command-grid article:hover,
.shot:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
	box-shadow: 0 18px 40px color-mix(in srgb, var(--glow) 80%, transparent);
}

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

.card-wide { grid-column: 1 / -1; }

.card-label {
	margin: 0 0 8px;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 640;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.card p { margin: 0; }

code {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.92em;
}

.more { margin-top: 14px; }

.command-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 14px;
}

.command-grid article { padding: 22px; }

.cmds {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.cmds li {
	padding: 10px 12px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--bg) 72%, transparent);
	border: 1px solid var(--line);
	overflow-x: auto;
}

.download {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 28px;
	align-items: start;
}

.facts {
	margin: 0;
	padding: 8px 22px;
}

.facts div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.facts div:last-child { border-bottom: 0; }

.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.theme-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

.theme-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
	padding: 14px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg-2) 88%, transparent);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.theme-card small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.theme-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.theme-card[aria-pressed="true"] {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.swatch {
	display: block;
	height: 64px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.swatch-dark { background: linear-gradient(145deg, #101411, #3dce7a 140%); }
.swatch-light { background: linear-gradient(145deg, #f3f6f2, #1d8a49 150%); }
.swatch-green { background: linear-gradient(145deg, #07150d, #7dffa8 140%); }
.swatch-gold { background: linear-gradient(145deg, #14110c, #e4b65a 140%); }
.swatch-dusk { background: linear-gradient(145deg, #10131c, #9aaeff 140%); }

.motion-row {
	margin-top: 14px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.motion-row h3 { font-family: var(--font); font-size: 1rem; letter-spacing: 0; }
.motion-row p { margin: 4px 0 0; }

.segmented {
	display: flex;
	padding: 4px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.segmented button {
	border: 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	padding: 8px 14px;
	border-radius: 999px;
	cursor: pointer;
}

.segmented button[aria-pressed="true"] {
	background: var(--accent);
	color: var(--accent-ink);
}

.foot {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 10px 0 36px;
	border-top: 1px solid var(--line);
}

.foot p { margin: 8px 0; }

.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

.cmds li:hover,
.pills li:hover,
.more li:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	background: color-mix(in srgb, var(--accent) 10%, var(--bg-2));
}

.lightbox-close:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
	background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.segmented button:hover { color: var(--ink); }

@media (max-width: 900px) {
	.hero, .download, .command-grid, .bento, .gallery { grid-template-columns: 1fr; }
	.card-wide { grid-column: auto; }
	.theme-grid { grid-template-columns: 1fr 1fr; }
	.menu { display: grid; place-items: center; }
	.links {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		flex-direction: column;
		padding: 10px;
		border-radius: 18px;
		background: var(--bg-2);
		border: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.links.open { display: flex; }
	.nav { position: sticky; }
	.nav .btn-solid { display: none; }
}

@media (max-width: 640px) {
	.theme-grid, .facts div { grid-template-columns: 1fr; }
	.facts div { display: block; }
	.facts dd { text-align: left; }
	.motion-row { align-items: stretch; flex-direction: column; }
	.hero { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	html:not([data-motion="on"]) *,
	html:not([data-motion="on"]) *::before,
	html:not([data-motion="on"]) *::after {
		animation: none !important;
		transition: none !important;
	}
}
