/* ==========================================================================
   vorpal.net — landing page
   Self-contained. No CDN, no external fonts, no framework.
   Brand purple #602671 (the Vorpal Boy logo color), lifted into a ramp so it
   stays legible on a near-black surface.

   Design note: nothing on this page encodes meaning in hue alone. Every
   comparison, state and category is carried by a text label, position, border
   or shape; color is decoration only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Brand ramp */
	--brand-900: #200b27;
	--brand-800: #33123d;
	--brand-700: #4a1c58;
	--brand-600: #602671;   /* canonical Vorpal purple */
	--brand-500: #7b3690;
	--brand-400: #9b52b3;
	--brand-300: #b97cd0;   /* accent text on dark — 6.4:1 on --bg */
	--brand-200: #d3a7e3;
	--brand-100: #ece1f0;

	/* Surfaces */
	--bg:          #0c0810;
	--bg-2:        #120c18;
	--surface:     #17101f;
	--surface-2:   #1e1528;
	--line:        #2c2137;
	--line-strong: #3d2e4c;

	/* Ink */
	--ink:     #f0ecf4;
	--ink-2:   #b3aabd;
	--ink-3:   #8c8299;

	/* Type */
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
	        Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
	        "Liberation Mono", monospace;

	/* Rhythm */
	--r-sm: 8px;
	--r:    14px;
	--r-lg: 22px;
	--pad:  clamp(1.25rem, 4vw, 2.5rem);
	--shell: 1200px;
	--section-y: clamp(4.5rem, 10vw, 8.5rem);

	--ring: 0 0 0 3px color-mix(in srgb, var(--brand-400) 55%, transparent);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--sans);
	font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	line-height: 1.65;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	color: var(--ink);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 0.6em;
	font-weight: 620;
	text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-300); text-decoration: none; }
a:hover { color: var(--brand-200); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
	outline: none;
	box-shadow: var(--ring);
	border-radius: var(--r-sm);
}

::selection { background: var(--brand-600); color: #fff; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--brand-600); color: #fff;
	padding: 0.7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
	transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
	width: min(100% - 2.5rem, var(--shell));
	margin-inline: auto;
}
.shell--wide { width: min(100% - 2.5rem, 1340px); }

section[id] { padding-block: var(--section-y); position: relative; }

.band { background: var(--bg-2); border-block: 1px solid var(--line); }

.stack > * + * { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.lede {
	font-size: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
	color: var(--ink-2);
	max-width: 62ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* Eyebrow — mono, letterspaced, with a leading rule */
.eyebrow {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand-300);
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 1.1rem;
	font-weight: 500;
}
.eyebrow::before {
	content: "";
	width: 28px; height: 1px; flex: none;
	background: linear-gradient(90deg, transparent, var(--brand-400));
}
.section-head--center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.8rem 1.4rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .18s cubic-bezier(.2,.8,.3,1), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
	background: var(--brand-600);
	color: #fff;
	box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--brand-400) 70%, transparent);
}
.btn--primary:hover { background: var(--brand-500); color: #fff; }

.btn--ghost {
	background: color-mix(in srgb, var(--ink) 4%, transparent);
	border-color: var(--line-strong);
	color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand-400); color: var(--ink); background: color-mix(in srgb, var(--brand-600) 18%, transparent); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
	position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
	transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom-color: var(--line);
}

.site-header__inner {
	display: flex; align-items: center; gap: 1.5rem;
	min-height: 72px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand__logo {
	display: block; height: 57px; width: auto;
	color: var(--brand-300);   /* light purple; swap to var(--brand-600) for the dark, button-matched logo */
	transition: color .18s;
}
.brand:hover .brand__logo { color: var(--brand-200); }

.nav { display: flex; gap: 0.35rem; margin-inline: auto; align-items: center; }
/* The nav carries a login link only so the mobile drawer has one; on desktop
   the header CTA already provides it. */
.nav .btn { display: none; }
.nav a {
	color: var(--ink-2);
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	transition: color .15s, background-color .15s;
}
.nav a:hover, .nav a.is-active {
	color: var(--ink);
	background: color-mix(in srgb, var(--ink) 6%, transparent);
	text-decoration: none;
}

.header-cta { display: flex; gap: 0.6rem; align-items: center; flex: none; }

.nav-toggle {
	display: none;
	background: none; border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	width: 40px; height: 40px;
	color: var(--ink);
	cursor: pointer;
	padding: 0;
	align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	content: ""; display: block;
	width: 17px; height: 1.5px; background: currentColor; border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after  { position: absolute; transform: translateY(6px); }
.nav-toggle span { position: relative; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

/* Scroll progress */
.progress {
	position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 101;
	height: 2px; width: 100%;
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
	background: linear-gradient(90deg, var(--brand-600), var(--brand-300));
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	padding-block: clamp(7rem, 14vw, 10.5rem) clamp(3.5rem, 8vw, 6rem);
	overflow: hidden;
	isolation: isolate;
}

/* Ambient glow + grid — decoration only */
.hero::before {
	content: "";
	position: absolute; z-index: -2;
	inset-block-start: -35%; inset-inline-start: 50%;
	width: min(1500px, 150vw); aspect-ratio: 1;
	translate: -50% 0;
	background:
		radial-gradient(closest-side, color-mix(in srgb, var(--brand-500) 34%, transparent), transparent 72%);
	filter: blur(20px);
	animation: drift 22s ease-in-out infinite alternate;
}
.hero::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px);
	background-size: 68px 68px;
	mask-image: radial-gradient(ellipse 90% 65% at 50% 25%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 25%, #000 20%, transparent 78%);
}

@keyframes drift {
	from { transform: translate3d(-4%, -2%, 0) scale(1); }
	to   { transform: translate3d(5%, 4%, 0) scale(1.12); }
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: center;
}
@media (min-width: 1080px) {
	.hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

.hero h1 { margin-bottom: 0.35em; }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.375rem); }

.hero__cta { margin-top: 2rem; }

.tag {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--mono); font-size: 0.775rem;
	letter-spacing: 0.06em;
	padding: 0.4rem 0.85rem 0.4rem 0.5rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: color-mix(in srgb, var(--brand-600) 14%, transparent);
	color: var(--ink-2);
	margin-bottom: 1.6rem;
}
.tag b {
	background: var(--brand-600); color: #fff;
	padding: 0.18rem 0.5rem; border-radius: 999px;
	font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700;
}

.hero__meta {
	margin-top: 2.2rem;
	display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
	font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta span::before {
	content: ""; width: 5px; height: 5px; border-radius: 50%;
	background: var(--brand-400); flex: none;
}

/* --------------------------------------------------------------------------
   7. Code panels
   -------------------------------------------------------------------------- */

.code {
	background: linear-gradient(180deg, var(--surface), var(--bg-2));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: 0 40px 80px -50px #000, 0 0 0 1px color-mix(in srgb, var(--ink) 3%, transparent) inset;
	display: flex; flex-direction: column;
	min-width: 0;
}

.code__bar {
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--ink) 3%, transparent);
	flex: none;
}
.code__name {
	font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.code__badge {
	margin-inline-start: auto;
	font-family: var(--mono); font-size: 0.68rem;
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ink-3);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	padding: 0.2rem 0.6rem;
	flex: none;
}

.code pre {
	margin: 0;
	padding: 1.25rem 1.35rem 1.5rem;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: clamp(0.775rem, 0.72rem + 0.2vw, 0.86rem);
	line-height: 1.75;
	color: #cfc6d8;
	tab-size: 2;
	flex: 1;
}
.code code { font: inherit; }

/* Token styling. Deliberately low-chroma: the shapes and indentation carry
   the reading, not the hue. */
.k  { color: var(--brand-300); }              /* keyword */
.t  { color: #9fc7e8; }                       /* type */
.f  { color: #e8d9a0; }                       /* method / call */
.s  { color: #a9d3b4; }                       /* string */
.c  { color: #6f6579; font-style: italic; }   /* comment */
.n  { color: var(--ink-3); }                  /* punctuation-ish */

.code--callout { border-color: var(--brand-700); }
.code--callout .code__badge { border-color: var(--brand-500); color: var(--brand-200); }

/* Compare: two labelled panels, stacked on narrow screens */
.compare { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 940px) { .compare { grid-template-columns: 1fr 1fr; } }

.compare__label {
	font-family: var(--mono); font-size: 0.73rem;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ink-3);
	margin-bottom: 0.75rem;
	display: flex; align-items: baseline; gap: 0.5rem;
}
.compare__label b { color: var(--ink); font-weight: 600; letter-spacing: 0.06em; }

.compare > div { display: flex; flex-direction: column; min-width: 0; }
.compare > div > .code { flex: 1; }

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface);
}
.stat { padding: clamp(1.4rem, 3vw, 2rem); border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
@media (max-width: 860px) {
	.stat { border-inline-start: 0; border-block-start: 1px solid var(--line); }
	.stat:first-child { border-block-start: 0; }
}
.stat__n {
	font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
	font-weight: 660; color: var(--ink);
	letter-spacing: -0.04em; line-height: 1;
	margin-bottom: 0.55rem;
	font-variant-numeric: tabular-nums;
}
.stat__n em { font-style: normal; color: var(--brand-300); }
.stat__l { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: clamp(1.35rem, 2.5vw, 1.8rem);
	transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
	min-width: 0;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; margin: 0; }

.card__icon {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 11px;
	background: color-mix(in srgb, var(--brand-600) 30%, transparent);
	border: 1px solid var(--brand-700);
	color: var(--brand-200);
	margin-bottom: 1.1rem;
}
.card__icon svg { width: 19px; height: 19px; }

/* A card whose title is a route/path */
.card__path {
	font-family: var(--mono); font-size: 0.75rem;
	color: var(--ink-3); margin-bottom: 0.65rem;
	overflow-wrap: break-word;
}

.card--link::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
}

/* Feature list with tick marks (shape, not color, carries the meaning) */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
	position: relative;
	padding-inline-start: 1.85rem;
	margin-block: 0.6rem;
	font-size: 0.96rem;
}
.ticks li::before {
	content: "";
	position: absolute; inset-inline-start: 0; inset-block-start: 0.44em;
	width: 10px; height: 6px;
	border-inline-start: 1.8px solid var(--brand-300);
	border-block-end: 1.8px solid var(--brand-300);
	transform: rotate(-45deg);
}
.ticks strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Tabs (services / admin)
   -------------------------------------------------------------------------- */

.tabs {
	display: flex; flex-wrap: wrap; gap: 0.4rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--line);
	padding-bottom: 1rem;
}
.tab {
	font: inherit; font-size: 0.875rem; font-weight: 550;
	background: none; border: 1px solid var(--line);
	color: var(--ink-2);
	padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
	transition: all .16s ease;
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] {
	background: var(--brand-600); border-color: var(--brand-500); color: #fff;
}
.tabpanel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. Marquee
   -------------------------------------------------------------------------- */

.marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: var(--bg-2);
	padding-block: 1.15rem;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex; width: max-content;
	animation: slide 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
	font-family: var(--mono); font-size: 0.85rem;
	letter-spacing: 0.05em;
	color: var(--ink-3);
	padding-inline: 1.5rem;
	white-space: nowrap;
	display: inline-flex; align-items: center; gap: 1.5rem;
}
.marquee span::after { content: "/"; color: var(--brand-500); }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   12. Deployment diagram
   -------------------------------------------------------------------------- */

.tiers { display: grid; gap: 0.75rem; }
.tier {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem 1.25rem;
	align-items: start;
	background: var(--surface);
	border: 1px solid var(--line);
	border-inline-start: 3px solid var(--brand-500);
	border-radius: var(--r);
	padding: 1.15rem 1.4rem;
}
.tier__n {
	font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
	width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center;
	background: color-mix(in srgb, var(--brand-600) 40%, transparent);
	border: 1px solid var(--brand-600);
	color: var(--brand-100);
	flex: none;
}
.tier h4 { margin: 0 0 0.15rem; }
.tier p { font-size: 0.9rem; margin: 0; }
.tier code {
	font-family: var(--mono); font-size: 0.82em;
	background: color-mix(in srgb, var(--ink) 6%, transparent);
	border: 1px solid var(--line);
	padding: 0.08em 0.4em; border-radius: 5px;
	color: var(--brand-200);
}

/* --------------------------------------------------------------------------
   13. Terminal block
   -------------------------------------------------------------------------- */

.term {
	background: #08050b;
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
}
.term__bar {
	display: flex; align-items: center; gap: 0.6rem;
	padding: 0.6rem 0.95rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono); font-size: 0.72rem;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.term pre {
	margin: 0; padding: 1.1rem 1.2rem;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 0.82rem; line-height: 1.85;
	color: var(--ink-2);
}
.term .p { color: var(--brand-300); user-select: none; }
.term .c { color: #6f6579; font-style: italic; }

.copy {
	margin-inline-start: auto;
	font: inherit; font-family: var(--sans); font-size: 0.75rem;
	letter-spacing: 0; text-transform: none;
	background: none; border: 1px solid var(--line-strong);
	color: var(--ink-2); border-radius: 6px;
	padding: 0.25rem 0.6rem; cursor: pointer;
	transition: all .15s ease;
}
.copy:hover { color: var(--ink); border-color: var(--brand-400); }

/* --------------------------------------------------------------------------
   14. Quote / proof
   -------------------------------------------------------------------------- */

.proof {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background:
		radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand-600) 22%, transparent), transparent 60%),
		var(--surface);
	padding: clamp(1.75rem, 4vw, 3rem);
}
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .proof__list { grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; } }
.proof__list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.proof__list b {
	font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
	color: var(--brand-200);
	border: 1px solid var(--brand-700);
	background: color-mix(in srgb, var(--brand-600) 28%, transparent);
	border-radius: 6px; padding: 0.25rem 0.5rem; line-height: 1;
	margin-top: 0.2rem;
	white-space: nowrap;
}
.proof__list span { font-size: 0.97rem; }
.proof__list strong { color: var(--ink); font-weight: 600; }

.footnote { font-size: 0.82rem; color: var(--ink-3); margin-top: 1.75rem; }
.footnote a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   15. CTA
   -------------------------------------------------------------------------- */

.cta {
	position: relative; overflow: hidden;
	border: 1px solid var(--brand-700);
	border-radius: var(--r-lg);
	padding: clamp(2.25rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 3.5rem);
	text-align: center;
	background:
		radial-gradient(90% 130% at 50% 0%, color-mix(in srgb, var(--brand-500) 34%, transparent), transparent 65%),
		var(--surface);
}
.cta h2 { margin-bottom: 0.4em; }
.cta .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg-2);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	margin-top: var(--section-y);
}
.footer__grid {
	display: grid; gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-bottom: 3rem;
}
.footer__grid > div:first-child { grid-column: 1 / -1; max-width: 340px; }
@media (min-width: 900px) { .footer__grid > div:first-child { grid-column: auto; } }
.site-footer h4 {
	font-family: var(--mono); font-size: 0.72rem;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--ink-3); margin-bottom: 1.1rem; font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer li a { color: var(--ink-2); font-size: 0.92rem; }
.site-footer li a:hover { color: var(--ink); }
.site-footer .brand__logo { height: 69px; margin-bottom: 1.25rem; }
.site-footer p { font-size: 0.9rem; }

.subfooter {
	border-top: 1px solid var(--line);
	padding-top: 1.75rem;
	display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
	justify-content: space-between; align-items: center;
	font-size: 0.85rem; color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   17. Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
	transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsive nav
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; }
	.header-cta .btn { display: none; }
	.nav {
		position: fixed; inset: 72px 0 auto;
		flex-direction: column; gap: 0;
		background: color-mix(in srgb, var(--bg) 96%, transparent);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-block: 1px solid var(--line);
		padding: 0.75rem 1.25rem 1.5rem;
		margin: 0;
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav a { padding: 0.8rem 0.5rem; border-radius: 0; font-size: 1rem; }
	.nav .btn { display: inline-flex; margin-top: 0.75rem; align-self: flex-start; }
}

/* --------------------------------------------------------------------------
   19. Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
}

@media print {
	.site-header, .progress, .marquee, .hero::before, .hero::after { display: none; }
	body { background: #fff; color: #000; }
}
