:root {
	--bg: #0b0b12;
	--panel: #0f0f18;
	--text: #e6e6f0;
	--muted: #b6b6c6;
	--line: #222233;
	--primary: rgba(13, 148, 136, 1); /* teal */
	--primary-600: rgb(10, 121, 111);
	--primary-400: rgb(64, 192, 181);
	--green: #22c55e;
	--cyan: #22d3ee;
	--indigo: #6366f1;
	--orange: #f59e0b;
	--blue: #3b82f6;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.dark-icon {
	display: none;
}
.light-icon {
	display: block;
}

[data-theme="light"] {
	--bg: #ffffff;
	--panel: #ffffff;
	--text: #0b0b12;
	--muted: #52525b;
	--line: #ececf2;
}

[data-theme="light"] .dark-icon {
	display: block;
}
[data-theme="light"] .light-icon {
	display: none;
}

::view-transition-old(root) {
	animation-delay: 500ms;
}

::view-transition-new(root) {
	animation: circle-in 500ms ease-in forwards;
}

@keyframes circle-in {
	from {
		clip-path: circle(0% at 50% 0%);
	}
	to {
		clip-path: circle(130% at 50% 0%);
	}
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #ffffff;
		--panel: #ffffff;
		--text: #0b0b12;
		--muted: #52525b;
		--line: #ececf2;
	}
}

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
		Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	margin: 0;
}

.container {
	width: min(1120px, 92vw);
	margin: 0 auto;
}
.row {
	display: flex;
	gap: 16px;
}
.col {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}
.center {
	align-items: center;
	text-align: center;
	justify-content: center;
}
.between {
	justify-content: space-between;
}
.gap-sm {
	gap: 8px;
}

.skip {
	position: absolute;
	left: -9999px;
}
.skip:focus {
	left: 16px;
	top: 16px;
	background: var(--panel);
	padding: 10px 14px;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

/* Topbar */
.topbar {
	position: sticky;
	top: 0;
	backdrop-filter: saturate(180%) blur(8px);
	background: color-mix(in oklab, var(--bg) 92%, transparent);
	border-bottom: 1px solid var(--line);
	z-index: 10;
}
.topbar .container {
	padding: 14px 0;
}
.logo {
	height: 40px;
	display: grid;
	place-items: center;
	font-weight: 800;
	letter-spacing: -0.5px;
}
.logo.small {
	width: 26px;
	height: 26px;
	font-size: 12px;
	border-radius: 8px;
}
.brand {
	gap: 10px;
}
.brand-name {
	font-weight: 700;
}
.pill {
	margin-left: 8px;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--muted);
}
.theme-toggle {
	background: transparent;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 8px 10px;
	cursor: pointer;
}
.theme-toggle:hover {
	color: var(--text);
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding: 80px 0 60px;
}
.hero-inner {
	position: relative;
	z-index: 1;
	margin-block: 2rem;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	background: color-mix(in oklab, var(--panel) 85%, transparent);
}
.badge .dot {
	width: 6px;
	height: 6px;
	background: var(--green);
	border-radius: 999px;
	display: inline-block;
	box-shadow: 0 0 0 4px
		color-mix(in oklab, var(--green) 20%, transparent);
}
.headline {
	font-size: clamp(28px, 5vw, 48px);
	line-height: 1.05;
	margin: 18px 0 10px;
	letter-spacing: -0.02em;
}
.gradient {
	background: linear-gradient(
		90deg,
		var(--primary) 0%,
		var(--primary-600) 50%,
		var(--indigo) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.subhead {
	color: var(--muted);
	max-width: 820px;
	margin: 0 auto 18px;
}

.waitlist-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	width: min(560px, 100%);
	margin: 16px auto 0;
	align-items: center;
}
.waitlist-form input {
	width: 100%;
	padding: 14px 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--text);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}
.waitlist-form input::placeholder {
	color: color-mix(in oklab, var(--muted) 70%, transparent);
}
.btn-primary {
	padding: 14px 18px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(
		135deg,
		var(--primary),
		var(--primary-600)
	);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
	background: linear-gradient(
		135deg,
		var(--primary-400),
		var(--primary-600)
	);
}
.btn-primary:active {
	background: linear-gradient(
		135deg,
		var(--primary-600),
		var(--primary-400)
	);
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.btn-primary:focus {
	outline: 2px solid var(--primary-400);
	outline-offset: 2px;
}
.btn-primary:focus:not(:focus-visible) {
	outline: none;
}
.btn-primary:target {
	outline: 2px solid var(--primary-400);
	outline-offset: 2px;
}

.btn-primary:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
.waitlist-form .form-hint {
	grid-column: 1 / -1;
	color: var(--muted);
}
.form-status {
	grid-column: 1 / -1;
	min-height: 22px;
	font-size: 14px;
}

.bg-blur {
	position: absolute;
	filter: blur(80px);
	opacity: 0.55;
	pointer-events: none;
}
.bg-1 {
	width: 460px;
	height: 460px;
	background: radial-gradient(
		ellipse at center,
		var(--primary) 0%,
		transparent 60%
	);
	top: -80px;
	left: -60px;
}
.bg-2 {
	width: 540px;
	height: 540px;
	background: radial-gradient(
		ellipse at center,
		var(--indigo) 0%,
		transparent 40%
	);
	right: -80px;
	top: 0px;
}

/* Features */
.features {
	padding: 30px 0 10px;
}
.features h2 {
	text-align: center;
	font-size: clamp(22px, 3.5vw, 30px);
}
.features-sub {
	color: var(--muted);
	text-align: center;
	max-width: 760px;
	margin: 8px auto 26px;
}
.features-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	text-align: left;
	box-shadow: var(--shadow);
}
.card h3 {
	margin: 8px 0 6px;
	font-size: 18px;
}
.card p {
	color: var(--muted);
	margin: 0;
}
.icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 22px;
}
.i-blue {
	background: color-mix(in oklab, var(--blue) 18%, transparent);
}
.i-purple {
	background: color-mix(in oklab, var(--primary) 22%, transparent);
}
.i-green {
	background: color-mix(in oklab, var(--green) 22%, transparent);
}
.i-orange {
	background: color-mix(in oklab, var(--orange) 24%, transparent);
}
.i-indigo {
	background: color-mix(in oklab, var(--indigo) 22%, transparent);
}
.i-cyan {
	background: color-mix(in oklab, var(--cyan) 24%, transparent);
}

/* Stats */
.stats {
	padding: 26px 0;
}
.stats h3 {
	text-align: center;
	margin-bottom: 12px;
}
.stats-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.stat {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px;
	text-align: center;
}
.stat .num {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.stat .label {
	color: var(--muted);
}

/* CTA */
.cta {
	padding: 24px 0 60px;
}
.cta p {
	color: var(--muted);
	max-width: 720px;
	margin: 6px auto 0;
}

/* Footer */
.footer {
	border-top: 1px solid var(--line);
	padding: 18px 0;
}
.muted {
	color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
	position: fixed;
	inset-inline: 16px;
	bottom: 16px;
	z-index: 1000;
}
.cookie-banner[hidden] {
	display: none;
}
.cookie-content {
	background: var(--panel);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
}
.cookie-content h3 {
	margin: 0;
	font-size: 16px;
}
.cookie-text {
	margin: 0;
	color: var(--muted);
	grid-column: 1 / -1;
}
.cookie-actions {
	display: flex;
	gap: 8px;
	justify-self: end;
}
.btn-outline {
	padding: 10px 14px;
	border-radius: 12px;
	background: transparent;
	color: var(--text);
	border: 1px solid var(--line);
	cursor: pointer;
}
.btn-outline:hover {
	background: color-mix(in oklab, var(--panel) 92%, transparent);
}
.cookie-actions .btn-primary {
	padding: 10px 14px;
}

/* Utilities */
.grid {
	display: grid;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.features-grid {
		grid-template-columns: 1fr 1fr;
	}
	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.waitlist-form {
		grid-template-columns: 1fr;
	}
	.features-grid {
		grid-template-columns: 1fr;
	}
}
