:root {
	--bg: #07111f;
	--bg-2: #091524;
	--panel: rgba(11, 25, 44, 0.82);
	--panel-2: rgba(255, 255, 255, 0.04);
	--line: rgba(255, 255, 255, 0.1);
	--line-strong: rgba(103, 232, 249, 0.22);
	--text: #e8eef8;
	--muted: #a6b3c6;
	--brand: #67e8f9;
	--brand-2: #8b5cf6;
	--accent: #22c55e;
	--danger: #fb7185;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	--radius: 24px;
	--radius-sm: 16px;
	--radius-xs: 12px;
	--max: 1180px;
	--header-h: 76px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(103, 232, 249, 0.14), transparent 30%),
		radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 26%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 54%, var(--bg) 100%);
	min-height: 100vh;
	line-height: 1.6;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

.container,
.shell {
	width: min(100% - 32px, var(--max));
	margin-inline: auto;
}

/* Header / nav */
.site-header,
header.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(14px);
	background: rgba(7, 17, 31, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-row,
.header-row {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	color: #04101c;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	box-shadow: 0 10px 28px rgba(103, 232, 249, 0.24);
	font-weight: 900;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.brand-text strong {
	font-size: 1rem;
}

.brand-text span {
	font-size: 0.78rem;
	color: var(--muted);
	font-weight: 600;
}

.nav-links,
nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links a,
nav a {
	padding: 11px 16px;
	border-radius: 999px;
	color: var(--muted);
	font-weight: 700;
	border: 1px solid transparent;
	transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
nav a:hover,
nav a:focus-visible {
	color: var(--text);
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--line-strong);
	outline: none;
}

.nav-links a.active,
nav a.active,
.nav-links a[aria-current="page"],
nav a[aria-current="page"] {
	color: #031019;
	background: linear-gradient(135deg, var(--brand), #c4b5fd);
	box-shadow: 0 10px 28px rgba(103, 232, 249, 0.22);
}

/* Layout */
main {
	padding: 42px 0 84px;
}

section {
	margin-top: 28px;
}

.grid {
	display: grid;
	gap: 20px;
}

.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	align-items: stretch;
}

.stack {
	display: grid;
	gap: 16px;
}

/* Surfaces */
.panel,
.card,
.surface {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card,
.surface {
	border-radius: var(--radius-sm);
}

.panel-body,
.card-body {
	padding: 24px;
}

.hero-copy {
	padding: 38px;
}

.hero-side {
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	justify-content: space-between;
}

/* Typography */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(103, 232, 249, 0.1);
	border: 1px solid rgba(103, 232, 249, 0.18);
	color: var(--brand);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1,
.h1 {
	margin: 18px 0 14px;
	font-size: clamp(2.4rem, 4vw, 4.4rem);
	line-height: 0.98;
	letter-spacing: -0.04em;
}

h2,
.h2 {
	margin: 0 0 14px;
	font-size: clamp(1.55rem, 2.2vw, 2.2rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

h3,
.h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
	line-height: 1.2;
}

p {
	margin: 0 0 14px;
}

.lede {
	margin: 0;
	max-width: 60ch;
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.75;
}

.muted,
.small-muted {
	color: var(--muted);
}

.small-muted {
	font-size: 0.92rem;
}

/* Buttons */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.btn,
.button,
a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 14px;
	font-weight: 800;
	border: 1px solid var(--line);
	transition: 160ms ease;
	background: transparent;
	color: var(--text);
}

.btn:hover,
.btn:focus-visible,
.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.btn-primary,
.button-primary {
	color: #031019;
	background: linear-gradient(135deg, var(--brand), #c4b5fd);
	border-color: transparent;
	box-shadow: 0 10px 28px rgba(103, 232, 249, 0.2);
}

.btn-secondary,
.button-secondary {
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
}

.btn-ghost,
.button-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--muted);
}

/* Stats / feature blocks */
.metric-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.metric {
	padding: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.metric strong {
	display: block;
	font-size: 1.8rem;
	letter-spacing: -0.04em;
	line-height: 1;
	margin-bottom: 8px;
}

.metric span {
	color: var(--muted);
	font-size: 0.92rem;
}

.feature-grid,
.info-grid,
.card-grid {
	display: grid;
	gap: 18px;
}

.feature-grid,
.card-grid.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid,
.card-grid.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.info-card,
.story-card {
	padding: 24px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.feature-card p,
.info-card p,
.story-card p,
.feature-card li,
.info-card li,
.story-card li {
	color: var(--muted);
	line-height: 1.72;
}

.icon-pill {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	background: linear-gradient(135deg, rgba(103, 232, 249, 0.18), rgba(139, 92, 246, 0.22));
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--brand);
	font-weight: 900;
}

/* Lists */
ul,
ol {
	padding-left: 20px;
}

li {
	margin-bottom: 10px;
}

.bullet-list,
.timeline {
	margin: 0;
	padding-left: 18px;
}

.bullet-list li,
.timeline li {
	color: var(--muted);
	line-height: 1.7;
}

/* Bands / CTA */
.cta-band {
	margin-top: 28px;
	padding: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	background: linear-gradient(135deg, rgba(103, 232, 249, 0.1), rgba(139, 92, 246, 0.12));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.cta-band h3 {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.cta-band p {
	margin: 0;
	color: var(--muted);
	max-width: 58ch;
	line-height: 1.65;
}

/* Forms */
form {
	display: grid;
	gap: 16px;
}

label {
	display: grid;
	gap: 8px;
	font-weight: 700;
	color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	color: var(--text);
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: #7e8ca1;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: rgba(103, 232, 249, 0.35);
	box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.08);
	background: rgba(255, 255, 255, 0.05);
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

th,
td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
	color: var(--text);
	font-size: 0.92rem;
	background: rgba(255, 255, 255, 0.03);
}

td {
	color: var(--muted);
}

/* Footer */
.site-footer,
footer.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 28px 0 46px;
	color: var(--muted);
}

.site-footer-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

/* HTMX niceties */
.htmx-request {
	opacity: 0.92;
	transition: opacity 120ms ease;
}

#content.htmx-swapping {
	opacity: 0.45;
	transform: translateY(4px);
	transition: opacity 120ms ease, transform 120ms ease;
}

#content.htmx-settling {
	animation: contentIn 180ms ease;
}

@keyframes contentIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Utility */
.text-center {
	text-align: center;
}

.hidden {
	display: none !important;
}

.spacer-top {
	margin-top: 28px;
}

.hr {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 28px 0;
	border: 0;
}

/* Responsive */
@media (max-width: 960px) {
	.hero,
	.feature-grid,
	.info-grid,
	.grid-2,
	.grid-3,
	.card-grid.grid-2,
	.card-grid.grid-3 {
		grid-template-columns: 1fr;
	}

	.cta-band {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 720px) {
	.container,
	.shell {
		width: min(100% - 20px, var(--max));
	}

	.nav-row,
	.header-row {
		align-items: flex-start;
		flex-direction: column;
		padding: 14px 0;
	}

	.hero-copy,
	.hero-side,
	.feature-card,
	.info-card,
	.story-card,
	.cta-band,
	.panel-body,
	.card-body {
		padding: 20px;
	}

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

	main {
		padding-top: 26px;
	}
}