/* ───────────────────────────────────────────────
   Mnemo · site styles
   Editorial-technical: Playfair Display + Plus Jakarta Sans + JetBrains Mono
   Warm paper/ink/amber palette with grain, glow, and motion
   ─────────────────────────────────────────────── */

:root {
	--ink: oklch(0.18 0.01 80);
	--paper: oklch(0.96 0.005 80);
	--paper-warm: oklch(0.93 0.008 80);
	--paper-card: oklch(0.99 0.003 80);
	--amber: oklch(0.71 0.145 67);
	--amber-tint: oklch(0.71 0.145 67 / 0.12);
	--sub: oklch(0.5 0.01 80);
	--rule: oklch(0.88 0.01 80);

	--term-bg: #0e0d0a;
	--term-fg: #d8d3c5;
	--term-dim: #6b675e;
	--term-mid: #a8a395;

	--font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--radius: 8px;
	--radius-lg: 14px;
}

html[data-theme='dark'] {
	--ink: oklch(0.96 0.005 80);
	--paper: oklch(0.14 0.01 80);
	--paper-warm: oklch(0.18 0.012 80);
	--paper-card: oklch(0.2 0.012 80);
	--sub: oklch(0.65 0.01 80);
	--rule: oklch(0.28 0.01 80);
	--amber-tint: oklch(0.71 0.145 67 / 0.18);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme='light']) {
		--ink: oklch(0.96 0.005 80);
		--paper: oklch(0.14 0.01 80);
		--paper-warm: oklch(0.18 0.012 80);
		--paper-card: oklch(0.2 0.012 80);
		--sub: oklch(0.65 0.01 80);
		--rule: oklch(0.28 0.01 80);
		--amber-tint: oklch(0.71 0.145 67 / 0.18);
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* grain texture overlay */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
	background-size: 250px 250px;
	opacity: 0.028;
}

a {
	color: var(--ink);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

::selection {
	background: var(--amber);
	color: oklch(0.18 0.01 80);
}

/* ── Mark (Layers-as-M) ───────────────────────── */
.mark {
	display: inline-block;
	flex-shrink: 0;
}
.mark .bar-outer {
	fill: var(--ink);
}
.mark .bar-mid {
	fill: var(--amber);
}
.mark--invert .bar-outer {
	fill: var(--paper);
}

/* ── Nav ───────────────────────────────────────── */
nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in oklch, var(--paper) 88%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rule);
	padding: 0 2rem;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.04em;
	color: var(--ink);
	transition: opacity 0.15s;
}
.nav-logo:hover {
	opacity: 0.7;
	text-decoration: none;
}

/* theme-aware lockup images */
.lockup { display: block; height: 26px; width: auto; }
.lockup-dark { display: none; }

html[data-theme='dark'] .lockup-light { display: none; }
html[data-theme='dark'] .lockup-dark  { display: block; }

@media (prefers-color-scheme: dark) {
	html:not([data-theme='light']) .lockup-light { display: none; }
	html:not([data-theme='light']) .lockup-dark  { display: block; }
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	font-size: 0.9rem;
}

.nav-links a:not(.btn) {
	color: var(--sub);
	transition: color 0.15s;
}
.nav-links a:not(.btn):hover {
	color: var(--ink);
	text-decoration: none;
}

.theme-toggle {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--sub);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s;
}
.theme-toggle:hover {
	color: var(--ink);
}

/* ── Buttons ───────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.1rem;
	border-radius: var(--radius);
	font-family: var(--font-ui);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}
.btn:active {
	transform: translateY(0);
}

.btn-primary {
	background: var(--ink);
	color: var(--paper);
}
.btn-primary:hover {
	background: color-mix(in oklch, var(--ink) 88%, var(--amber));
}

.btn-outline {
	background: transparent;
	color: var(--ink);
	border-color: var(--rule);
}
.btn-outline:hover {
	border-color: var(--ink);
	box-shadow: 0 2px 8px -2px oklch(0.18 0.01 80 / 0.08);
}

.btn-amber {
	background: var(--amber);
	color: oklch(0.18 0.01 80);
	font-weight: 700;
}
.btn-amber:hover {
	background: color-mix(in oklch, var(--amber) 88%, oklch(0.18 0.01 80));
	box-shadow: 0 4px 16px -4px oklch(0.71 0.145 67 / 0.35);
}

.btn .ver {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	opacity: 0.7;
	font-weight: 400;
}

/* ── Hero ──────────────────────────────────────── */
.hero {
	max-width: 1100px;
	margin: 0 auto;
	padding: 7.5rem 2rem 4.5rem;
	text-align: center;
	position: relative;
}

/* ambient amber glow */
.hero::before {
	content: '';
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	width: 1000px;
	height: 640px;
	background: radial-gradient(ellipse at 50% 15%, oklch(0.71 0.145 67 / 0.1) 0%, transparent 62%);
	pointer-events: none;
	z-index: -1;
}

/* ── Entrance animations ───────────────────────── */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero .badge {
	opacity: 0;
	animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}
.hero h1 {
	opacity: 0;
	animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero .hero-sub {
	opacity: 0;
	animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}
.hero .install-block {
	opacity: 0;
	animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}
.hero .hero-actions {
	opacity: 0;
	animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.52s forwards;
}
.hero .demo-container {
	opacity: 0;
	animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.66s forwards;
}

/* ── Badge ─────────────────────────────────────── */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	border-radius: 100px;
	padding: 0.3rem 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--sub);
	margin-bottom: 2rem;
}
.badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--amber);
	display: inline-block;
	animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 oklch(0.71 0.145 67 / 0.55);
	}
	55% {
		box-shadow: 0 0 0 5px oklch(0.71 0.145 67 / 0);
	}
}

/* ── Typography ────────────────────────────────── */
h1 {
	font-family: var(--font-ui);
	font-size: clamp(2.5rem, 5.5vw, 4.2rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.05;
	margin-bottom: 1.5rem;
	text-wrap: balance;
}

h1 em {
	font-style: italic;
	font-weight: 700;
	color: var(--amber);
}

.hero-sub {
	font-size: 1.15rem;
	color: var(--sub);
	max-width: 600px;
	margin: 0 auto 2.5rem;
	text-wrap: pretty;
	line-height: 1.65;
}

/* ── Install block ─────────────────────────────── */
.install-block {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 0.75rem 1rem 0.75rem 1.15rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	margin-bottom: 1.25rem;
	color: var(--ink);
}
.install-block .prompt {
	color: var(--amber);
	user-select: none;
}

.copy-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--sub);
	padding: 0.25rem;
	display: inline-flex;
	align-items: center;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}
.copy-btn:hover {
	color: var(--ink);
	background: color-mix(in oklch, var(--ink) 8%, transparent);
}

.hero-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 4.5rem;
}

/* ── Demo terminal ─────────────────────────────── */
.demo-container {
	max-width: 880px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--rule);
	background: var(--term-bg);
	box-shadow:
		0 36px 90px -28px oklch(0.18 0.01 80 / 0.42),
		0 0 0 1px oklch(0.71 0.145 67 / 0.07),
		0 1px 0 0 color-mix(in oklch, var(--paper) 100%, transparent) inset;
	text-align: left;
}

.demo-bar {
	background: color-mix(in srgb, var(--term-bg) 80%, #fff 20%);
	padding: 0.65rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	border-bottom: 1px solid color-mix(in srgb, var(--term-bg) 60%, #fff 40%);
}
.demo-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}
.demo-dot:nth-child(1) {
	background: #ff5f56;
}
.demo-dot:nth-child(2) {
	background: #ffbd2e;
}
.demo-dot:nth-child(3) {
	background: #27c93f;
}

.demo-title {
	flex: 1;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--term-mid);
	letter-spacing: 0.02em;
}

.demo-body {
	font-family: var(--font-mono);
	font-size: 0.86rem;
	line-height: 1.7;
	padding: 1.25rem 1.5rem 1.5rem;
	color: var(--term-fg);
	overflow-x: auto;
}

.demo-body .row {
	white-space: pre;
}

@keyframes termRowIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.demo-body .prompt {
	color: var(--amber);
}
.demo-body .cmd {
	color: var(--term-fg);
}
.demo-body .header {
	color: var(--term-mid);
	margin-top: 0.85rem;
	display: block;
}
.demo-body .header:first-child {
	margin-top: 0;
}
.demo-body .meta {
	color: var(--term-dim);
}
.demo-body .key {
	color: var(--term-mid);
}
.demo-body .val {
	color: var(--term-fg);
}
.demo-body .accent {
	color: var(--amber);
}
.demo-body .bullet {
	color: var(--term-fg);
}
.demo-body .file {
	color: #b6c8a4;
}
.demo-body .comment {
	color: var(--term-dim);
}

.demo-cursor {
	display: inline-block;
	width: 0.55rem;
	height: 1.05em;
	background: var(--amber);
	vertical-align: -0.18em;
	margin-left: 2px;
	animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink {
	to {
		visibility: hidden;
	}
}

/* ── Sections ──────────────────────────────────── */
section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 6rem 2rem;
}

section + section,
section[data-rule] {
	border-top: 1px solid var(--rule);
}

/* scroll-triggered reveal */
.animate-section {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-section.is-visible {
	opacity: 1;
	transform: none;
}

/* ── Section label ─────────────────────────────── */
.section-label {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--amber);
	margin-bottom: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
.section-label::before {
	content: '';
	width: 24px;
	height: 1px;
	background: var(--amber);
}

h2 {
	font-family: var(--font-ui);
	font-size: clamp(1.7rem, 3.2vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.038em;
	line-height: 1.14;
	margin-bottom: 1.1rem;
	text-wrap: balance;
}

.section-sub {
	color: var(--sub);
	font-size: 1.05rem;
	max-width: 600px;
	margin-bottom: 3.5rem;
	line-height: 1.68;
	text-wrap: pretty;
}

/* ── Problem ───────────────────────────────────── */
.problem-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
@media (max-width: 760px) {
	.problem-grid {
		grid-template-columns: 1fr;
	}
}

.problem-card {
	background: var(--paper-card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 2rem;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}
.problem-card:hover {
	border-color: color-mix(in oklch, var(--ink) 20%, var(--rule));
	box-shadow: 0 6px 24px -6px oklch(0.18 0.01 80 / 0.07);
}
.problem-card h3 {
	font-family: var(--font-ui);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: 0.65rem;
}
.problem-card p {
	color: var(--sub);
	font-size: 0.96rem;
	line-height: 1.68;
}

/* ── Features ──────────────────────────────────── */
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 880px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
}

.feature-card {
	background: var(--paper-card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	transition:
		border-color 0.2s,
		transform 0.25s,
		box-shadow 0.25s;
}
.feature-card:hover {
	border-color: color-mix(in oklch, var(--ink) 30%, var(--rule));
	transform: translateY(-5px);
	box-shadow: 0 14px 36px -10px oklch(0.18 0.01 80 / 0.1);
}

.feature-mark {
	margin-bottom: 0.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	border-radius: 10px;
}

.feature-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--paper-warm);
	color: var(--sub);
	border: 1px solid var(--rule);
	padding: 0.18rem 0.5rem;
	border-radius: 4px;
	align-self: flex-start;
}

.feature-tag--amber {
	background: var(--amber-tint);
	color: color-mix(in oklch, var(--amber) 70%, var(--ink));
	border-color: color-mix(in oklch, var(--amber) 40%, var(--rule));
}

.feature-card--highlight {
	border-color: color-mix(in oklch, var(--amber) 35%, var(--rule));
	background: color-mix(in oklch, var(--paper-card) 92%, var(--amber) 8%);
}
.feature-card--highlight:hover {
	border-color: color-mix(in oklch, var(--amber) 60%, var(--rule));
	box-shadow: 0 14px 36px -10px oklch(0.71 0.145 67 / 0.14);
}

.feature-mark--amber {
	background: var(--amber-tint);
	border-color: color-mix(in oklch, var(--amber) 30%, var(--rule));
}

.feature-card h3 {
	font-family: var(--font-ui);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 0.15rem;
}
.feature-card p {
	color: var(--sub);
	font-size: 0.93rem;
	line-height: 1.68;
}

/* ── Quick Start ───────────────────────────────── */
.steps {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

/* vertical connector line */
.steps::before {
	content: '';
	position: absolute;
	left: 1.08rem;
	top: 2.5rem;
	bottom: 2.5rem;
	width: 1px;
	background: linear-gradient(to bottom, var(--amber) 0%, var(--rule) 35%, var(--rule) 85%, transparent 100%);
}

.step {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	gap: 1.5rem;
	align-items: start;
	padding: 1.5rem 0;
	position: relative;
}

.step-num {
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--paper);
	border: 1.5px solid var(--amber);
	color: var(--amber);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 0.1rem;
	position: relative;
	z-index: 1;
}

.step-content h3 {
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: 0.6rem;
}

pre {
	background: var(--term-bg);
	border: 1px solid color-mix(in srgb, var(--term-bg) 60%, #fff 40%);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	overflow-x: auto;
	color: var(--term-fg);
	line-height: 1.78;
}

pre .cmd {
	color: var(--term-fg);
}
pre .cmt {
	color: var(--term-dim);
}
pre .str {
	color: #b6c8a4;
}
pre .accent {
	color: var(--amber);
}

/* ── Agents ────────────────────────────────────── */
.agents-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.85rem;
}
@media (max-width: 760px) {
	.agents-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.agent-card {
	background: var(--paper-card);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 1.5rem 1.25rem;
	transition:
		border-color 0.2s,
		transform 0.2s,
		box-shadow 0.2s;
}
.agent-card:hover {
	border-color: color-mix(in oklch, var(--ink) 28%, var(--rule));
	transform: translateY(-3px);
	box-shadow: 0 8px 24px -6px oklch(0.18 0.01 80 / 0.08);
}

.agent-name {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.015em;
	margin-bottom: 0.55rem;
}

.agent-card code {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--ink);
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	margin-bottom: 0.7rem;
}

.agent-card p {
	color: var(--sub);
	font-size: 0.82rem;
	line-height: 1.55;
}

.mcp-note {
	margin-top: 1.75rem;
	font-size: 0.92rem;
	color: var(--sub);
}
.mcp-note strong {
	color: var(--ink);
	font-weight: 700;
}
.mcp-note code {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--ink);
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	padding: 0.18rem 0.5rem;
	border-radius: 4px;
	margin-left: 0.4rem;
}

/* ── Privacy ───────────────────────────────────── */
.privacy-box {
	background: var(--paper-card);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	padding: 2.75rem;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2rem;
	align-items: center;
}
@media (max-width: 640px) {
	.privacy-box {
		grid-template-columns: 1fr;
		padding: 1.75rem;
	}
}

.privacy-icon {
	width: 62px;
	height: 62px;
	border-radius: 14px;
	background: var(--amber-tint);
	border: 1px solid color-mix(in oklch, var(--amber) 30%, var(--rule));
	display: flex;
	align-items: center;
	justify-content: center;
	color: color-mix(in oklch, var(--amber) 60%, var(--ink));
	flex-shrink: 0;
}

.privacy-box h3 {
	font-family: var(--font-ui);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 0.55rem;
}
.privacy-box p {
	color: var(--sub);
	font-size: 0.96rem;
	line-height: 1.72;
}
.privacy-box code {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--ink);
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
}

/* ── Header anchors (docs) ─────────────────────── */
.header-anchor {
	display: inline-block;
	margin-left: 0.4em;
	opacity: 0;
	color: var(--amber);
	font-size: 0.78em;
	font-weight: 400;
	font-family: var(--font-mono);
	vertical-align: middle;
	text-decoration: none;
	transition: opacity 0.15s;
	user-select: none;
}
h2:hover .header-anchor,
h3:hover .header-anchor {
	opacity: 1;
}
.header-anchor:hover {
	opacity: 1;
	text-decoration: none;
}

/* ── Footer ────────────────────────────────────── */
footer {
	border-top: 1px solid var(--rule);
	padding: 3.5rem 2rem 3rem;
	text-align: center;
	color: var(--sub);
	font-size: 0.85rem;
	background: var(--paper-warm);
}

.footer-mark {
	margin: 0 auto 1.5rem;
	opacity: 0.5;
}

footer a {
	color: var(--sub);
}
footer a:hover {
	color: var(--ink);
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
}

footer p {
	font-family: var(--font-ui);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 720px) {
	nav {
		padding: 0 1.25rem;
	}
	.nav-links {
		gap: 0.85rem;
	}
	.nav-links a:not(.btn) {
		display: none;
	}
	.hero {
		padding: 4.5rem 1.25rem 3rem;
	}
	section {
		padding: 4rem 1.25rem;
	}
	.demo-body {
		font-size: 0.78rem;
		padding: 1rem 1.15rem;
	}
	.steps::before {
		left: 1.08rem;
	}
}

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.hero .badge,
	.hero h1,
	.hero .hero-sub,
	.hero .install-block,
	.hero .hero-actions,
	.hero .demo-container {
		opacity: 1;
		animation: none;
	}
	.badge .dot {
		animation: none;
	}
	.demo-cursor {
		animation: none;
	}
	.animate-section {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
