:root {
	--bg: #0d1015;
	--panel: #12151b;
	--raised: #20252e;
	--line: rgba(255, 255, 255, 0.08);
	--text: #e8ebf1;
	--dim: #969daa;
	--accent: #409cff;
	--accent-strong: #2f86ea;
	--danger: #f04646;
	--ok: #4cd08a;
	--radius: 12px;
	--gutter: clamp(16px, 4vw, 48px);
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* Top bar */
.bar {
	position: absolute; inset: 0 0 auto 0; z-index: 3;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px var(--gutter);
}
.brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--text); text-decoration: none;
	font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.tag {
	color: var(--dim); font-size: 13px;
	border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
	background: rgba(13, 16, 21, 0.6); backdrop-filter: blur(6px);
}

/* Hero */
.hero {
	position: relative; isolation: isolate;
	min-height: min(100svh, 920px);
	display: flex; align-items: center;
	padding: 112px var(--gutter) 72px;
	overflow: hidden;
}
.hero-image, .hero-image img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 100% 52%; z-index: -2;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(13, 16, 21, 0.97) 0%, rgba(13, 16, 21, 0.88) 34%, rgba(13, 16, 21, 0.35) 62%, rgba(13, 16, 21, 0.15) 100%),
		linear-gradient(0deg, var(--bg) 0%, rgba(13, 16, 21, 0) 22%);
}
.hero-copy { max-width: 560px; }
.eyebrow {
	margin: 0 0 12px; color: var(--accent);
	font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
h1 {
	margin: 0 0 18px;
	font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 750;
}
.lede { margin: 0 0 32px; color: #c9ced8; font-size: clamp(17px, 1.6vw, 19px); }
.hero-caption {
	position: absolute; right: var(--gutter); bottom: 20px; margin: 0;
	color: var(--dim); font-size: 12px;
	background: rgba(13, 16, 21, 0.65); padding: 4px 10px; border-radius: 6px;
}

/* Waitlist */
.waitlist { max-width: 480px; }
.field {
	display: flex; gap: 8px; padding: 6px;
	background: rgba(18, 21, 27, 0.85); border: 1px solid var(--line); border-radius: var(--radius);
	backdrop-filter: blur(8px);
}
.field:focus-within { border-color: rgba(64, 156, 255, 0.6); }
.field input {
	flex: 1; min-width: 0;
	background: transparent; border: 0; outline: 0; color: var(--text);
	font: inherit; padding: 10px 12px;
}
.field input::placeholder { color: #6c7380; }
.field button {
	flex: none; cursor: pointer;
	background: var(--accent); color: #06121f; border: 0; border-radius: 8px;
	font: inherit; font-weight: 650; padding: 10px 18px;
	transition: background 0.15s;
}
.field button:hover { background: #5aabff; }
.field button:disabled { opacity: 0.6; cursor: default; }
.turnstile { margin-top: 12px; min-height: 0; }
.form-note { margin: 12px 2px 0; color: var(--dim); font-size: 14px; }
.form-note.ok { color: var(--ok); }
.form-note.error { color: var(--danger); }

/* Features */
.features {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
	padding: 24px var(--gutter) 56px; max-width: 1240px; margin: 0 auto;
}
.feature {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px;
}
.feature h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* Showcase */
.showcase {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
	padding: 0 var(--gutter) 72px; max-width: 1240px; margin: 0 auto;
}
.showcase figure { margin: 0; }
.showcase .wide { grid-column: 1 / -1; }
.showcase img {
	width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
	background: var(--panel);
}
.showcase figcaption { margin-top: 8px; color: var(--dim); font-size: 14px; }

/* Rotation spotlight */
.spotlight {
	display: grid; grid-template-columns: 1fr minmax(0, 600px); gap: 48px; align-items: center;
	padding: 24px var(--gutter) 80px; max-width: 1240px; margin: 0 auto;
}
.spotlight h2, .tech h2 { margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.spotlight-copy p { color: #c9ced8; font-size: 17px; margin: 0 0 18px; }
.spotlight-copy ul { margin: 0; padding: 0; list-style: none; }
.spotlight-copy li { position: relative; padding-left: 16px; margin: 0 0 8px; color: var(--dim); }
.spotlight-copy li::before {
	content: ""; position: absolute; left: 0; top: 0.62em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.spotlight figure { margin: 0; }
.spotlight img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.spotlight figcaption { margin-top: 8px; color: var(--dim); font-size: 14px; }

/* Under the hood */
.tech { padding: 0 var(--gutter) 80px; max-width: 1240px; margin: 0 auto; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tech-item { background: var(--panel); padding: 24px; }
.tech-item h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.tech-item p { margin: 0; color: var(--dim); font-size: 15px; }

/* Catalog */
.catalog { padding: 0 var(--gutter) 72px; max-width: 1240px; margin: 0 auto; }
.catalog > h2 { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.group {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px;
}
.group h3 {
	margin: 0 0 14px; color: var(--accent);
	font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
}
.group ul { margin: 0; padding: 0; list-style: none; }
.group li {
	position: relative; padding-left: 16px; margin: 0 0 12px;
	color: var(--dim); font-size: 15px; line-height: 1.5;
}
.group li:last-child { margin-bottom: 0; }
.group li::before {
	content: ""; position: absolute; left: 0; top: 0.62em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.group strong { color: var(--text); font-weight: 600; }

/* Closing call to action */
.closing { text-align: center; padding: 8px var(--gutter) 88px; max-width: 720px; margin: 0 auto; }
.closing h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.closing p { margin: 0 0 24px; color: var(--dim); }
.cta {
	display: inline-block; background: var(--accent); color: #06121f; text-decoration: none;
	font-weight: 650; padding: 12px 22px; border-radius: 8px; transition: background 0.15s;
}
.cta:hover { background: #5aabff; }

/* Footer */
.foot {
	border-top: 1px solid var(--line);
	padding: 28px var(--gutter) 40px; max-width: 1240px; margin: 0 auto;
	color: var(--dim); font-size: 14px;
}
.foot p { margin: 0 0 6px; }
.foot .credits { font-size: 12px; color: #6c7380; }

/* Plain pages */
.page { max-width: 720px; margin: 0 auto; padding: 112px var(--gutter) 64px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); }
.page h2 { font-size: 20px; margin: 32px 0 8px; }
.page p, .page li { color: #c9ced8; }
.page .updated { color: var(--dim); font-size: 14px; }

@media (max-width: 860px) {
	.features { grid-template-columns: 1fr; }
	.showcase { grid-template-columns: 1fr; }
	.catalog-grid { grid-template-columns: 1fr; }
	.spotlight { grid-template-columns: 1fr; gap: 24px; }
	.tech-grid { grid-template-columns: 1fr; }
	.hero { align-items: flex-end; min-height: 100svh; }
	.hero::before {
		background:
			linear-gradient(0deg, rgba(13, 16, 21, 0.98) 0%, rgba(13, 16, 21, 0.9) 45%, rgba(13, 16, 21, 0.35) 75%, rgba(13, 16, 21, 0.2) 100%);
	}
	.hero-image img { object-position: 69% 30%; }
	.hero-caption { display: none; }
}

@media (max-width: 420px) {
	.tag { display: none; }
	.field { flex-direction: column; }
	.field button { width: 100%; }
}

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