/* =================================================================
   Coder IDE, site styles
   Dark-first, glassmorphism overlay, modern SaaS feel
   Bootstrap 5.3 as the grid; custom classes for everything else.
   ================================================================= */

/* ---------- 1. Tokens ------------------------------------------- */
:root,
[data-bs-theme='dark'] {
	/* color  */
	--bg: #06060c;
	--bg-elev: #11111a;
	--bg-elev-2: #16161f;
	--surface: rgba(255, 255, 255, 0.03);
	--surface-strong: rgba(255, 255, 255, 0.09);
	--border: rgba(255, 255, 255, 0.06);
	--border-strong: rgba(255, 255, 255, 0.10);
	--text: #ECECF1;
	--text-muted: #A4A4B5;
	--nav-links: #A4A4B5;
	--text-light: #A4A4B5;
	--text-dim: #8f8f9a;

	--glass-bg: rgba(255, 255, 255, 0.06);
	--glass-border: rgba(255, 255, 255, 0.1);
	--accent-cyan: #00d4ff;
	--accent-purple: #7c3aed;
	--accent-teal: #06b6d4;
	--accent-pink: #ec4899;

	/* brand */
	--primary: #00a2c2;
	--primary-2: #00a2c2;
	/* #00d4ff;*/
	--primary-light: #818cf8;
	--primary-glow: rgba(43, 146, 255, 0.55);
	--secondary: #00E5C7;
	--warning: #FFB86B;
	--danger: #FF6B7A;
	--success: #4ADE80;

	/* git status badges */
	--badge-m: #FFB86B;
	--badge-s: #4ADE80;
	--badge-u: #6E6E80;
	--badge-d: #FF6B7A;

	/* shadow */
	--shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
	--shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
	--shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 32px rgba(0, 0, 0, 0.35);

	/* radius */
	--r-sm: 0.5rem;
	--r-md: 0.875rem;
	--r-lg: 1.125rem;
	--r-xl: 1.5rem;
	--r-pill: 999px;

	/* spacing scale (rem) */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-8: 3rem;
	--s-10: 4rem;
	--s-12: 6rem;

	/* type */
	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-bs-theme='light'] {
	--bg: #f6f6fb;
	--bg-elev: #ffffff;
	--bg-elev-2: #eef0f7;
	--surface: rgba(255, 255, 255, 0.55);
	--surface-strong: rgba(255, 255, 255, 0.70);
	--border: rgba(10, 10, 15, 0.08);
	--border-strong: rgba(10, 10, 15, 0.14);
	--text: #0a0a0f;
	--text-muted: #555568;
	--nav-links: #ffffff;
	--text-light: #d1d1d9;
	--text-dim: #8a8a99;
	--shadow-lg: 0 30px 80px -20px rgba(10, 10, 40, 0.18);
	--shadow-md: 0 8px 32px rgba(10, 10, 40, 0.10);
	--shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 32px rgba(10, 10, 40, 0.06);
}

html[data-bs-theme='light'] body {
	background-image:
		radial-gradient(900px 600px at 90% -10%, rgba(255, 107, 43, 0.18), transparent 60%),
		radial-gradient(800px 500px at -10% 20%, rgba(0, 229, 199, 0.16), transparent 60%);
}

/* ---------- 2. Base --------------------------------------------- */
* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	background:
		radial-gradient(1000px 700px at 90% -10%, rgba(255, 107, 43, 0.18), transparent 60%),
		radial-gradient(900px 600px at -10% 30%, rgba(0, 229, 199, 0.10), transparent 60%),
		var(--bg);
	min-height: 100vh;
	overflow-x: hidden;
}

a {
	color: var(--accent-cyan);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--primary-2);
}

.prose {

	h2,
	h3,
	h4 {
		margin: 2rem 0 1rem 0;
	}
}

.align-right {
	text-align: right;
}

.center,
.align-center {
	text-align: center;
}

.align-left {
	text-align: left;
}

.markdown-link {
	padding: 5px 8px;
	border-radius: var(--r-md);
	border: 1px solid var(--accent-cyan);
}

.markdown-link:hover {
	border-color: var(--primary-2);
}

.logo {
	display: inline-block;
	height: 38px;
	width: auto;
	padding: 0;
	border-radius: 4px;
}

.learn-more {
	padding-top: 20px;
	position: absolute;
	bottom: 2rem;
	left: 2rem;
	z-index: 2;

	.material-icons {
		top: 7px;
		position: relative;
	}
}

.docs-link {
	margin-top: 3rem;

	.material-icons {
		position: relative;
		top: 7px;
	}
}

h1,
h2,
h3,
h4 {
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text);
}

img {
	width: 100%;
	padding: 0 10px 30px 10px;
}

code,
.card code,
.proof-chip {
	font-family: var(--font-mono);
}

::selection {
	background: var(--primary);
	color: white;
}

.container--narrow {
	max-width: 760px;
}

.muted {
	color: var(--text-muted);
}

.highlighted {
	color: var(--accent-cyan);
}

.strong {
	font-weight: 600;
}

.center {
	text-align: center;
}

/* ---------- 3. Glassmorphism utility ---------------------------- */
.glass {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: var(--shadow-glass);
	position: relative;
}

.glass--strong {
	background: var(--surface-strong);
	border-color: var(--border-strong);
}

/* ---------- 4. Buttons ------------------------------------------ */
.btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: var(--r-pill);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.btn-pill .material-icons {
	font-size: 1.15rem;
}

.btn-pill--primary {
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: white;
	box-shadow: 0 8px 24px -6px var(--primary-glow);
}

.btn-pill--primary:hover {
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 14px 34px -6px var(--primary-glow);
}

.btn-pill--ghost {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.btn-pill--ghost:hover {
	background: var(--surface-strong);
	color: var(--text);
	transform: translateY(-2px);
}

.btn-pill--lg {
	padding: 0.95rem 1.6rem;
	font-size: 1rem;
}

/* ---------- 5. Nav ----------------------------------------------- */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 10, 15, 0.55);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid var(--border);
}

.site-nav nav {
	padding: 0.85rem 0;
}

.site-nav-brand {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--text);
	letter-spacing: -0.02em;
}

.site-nav-brand:hover {
	color: var(--text);
}

.site-nav-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: var(--r-sm);
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: white;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: -0.08em;
	font-weight: 700;
}

.site-nav-menu {
	background: rgba(10, 10, 15, 0.92);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: 1rem 1.25rem;
	margin-top: 0.5rem;
}

.site-nav-actions {
	margin-left: 1rem;
}

.site-nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-nav-links a {
	color: var(--nav-links);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.5rem 0.75rem;
	border-radius: var(--r-sm);
}

.site-nav-links a:hover {
	color: var(--text);
	background: var(--surface);
}

.site-nav-icon-btn {
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--r-pill);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	transition: background 0.15s ease;
}

.site-nav-icon-btn:hover {
	background: var(--surface-strong);
}

.site-nav-cta {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border-radius: var(--r-pill);
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: white;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 6px 18px -6px var(--primary-glow);
}

.site-nav-cta:hover {
	color: white;
	transform: translateY(-1px);
}

.site-nav-toggle {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--r-sm);
}

@media (max-width: 991px) {
	.site-nav-menu {
		position: absolute;
		top: 100%;
		left: 0.75rem;
		right: 0.75rem;
		z-index: 100;
		margin-top: 0.5rem;
	}
}

@media (min-width: 992px) {
	.site-nav-menu {
		background: transparent;
		border: 0;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		padding: 0;
		margin-top: 0;
	}

	.site-nav-toggle {
		display: none;
	}
}

/* ---------- 6. Hero --------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 0;
	border-bottom: 1px solid var(--border);
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.55;
}

.hero-glow--one {
	width: 520px;
	height: 520px;
	top: -120px;
	right: -100px;
	background: var(--primary);
}

.hero-glow--two {
	width: 460px;
	height: 460px;
	bottom: -180px;
	left: -120px;
	background: var(--secondary);
	opacity: 0.30;
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	opacity: 0.35;
}

.page-banner .hero-grid {
	max-height: 340px;
}

/* Honeycomb background pattern - subtle hexagonal grid */
.hero-honeycomb {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.15;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%2300a2c2' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%2300a2c2' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 56px 100px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	align-items: center;
	padding-top: var(--s-10);
	padding-bottom: var(--s-10);
	width: 100%;
}

@media (min-width: 992px) {

	.hero-inner {
		grid-template-columns: 1.05fr 1fr;
		gap: var(--s-10);
		padding-top: 0;
		padding-bottom: 0;
	}
}

@media (max-width: 991px) {
	.hero-visual {
		display: none;
	}
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 500;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.hero-pulse {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
	}
}

.hero-title {
	font-size: clamp(1.8rem, 6vw, 4.2rem);
	font-weight: 800;
	margin: var(--s-4) 0 var(--s-4);
}

.hero-title-accent {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-sub {
	font-size: 1.15rem;
	color: var(--text-muted);
	max-width: 36rem;
	margin-bottom: var(--s-6);
}

.hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin-bottom: var(--s-6);
}

.hero-meta {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	color: var(--text-muted);
	font-size: 0.9rem;
}

.hero-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.hero-meta .material-icons {
	font-size: 1.05rem;
	color: var(--secondary);
}

/* hero window mockup */
.hero-visual {
	padding: 1rem;
}

.hero-window {
	border-radius: var(--r-xl);
	padding: 0;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--bg-elev);
}

.hero-visual img {
	padding: 0;
	margin: 0;
	width: 100%;
	opacity: .9;
	border: 1px solid rgba(99, 102, 241, 0.25);
	box-shadow: 0 20px 60px rgba(113, 190, 248, 0.25);
}

.hero-window-bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 0.9rem;
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid var(--border);
}

.hero-dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
}

.hero-dot--r {
	background: #FF5F57;
}

.hero-dot--y {
	background: #FEBC2E;
}

.hero-dot--g {
	background: #28C840;
}

.hero-window-title {
	margin-left: 0.6rem;
	font-family: var(--font-mono);
	color: var(--text-dim);
	font-size: 0.78rem;
}

.hero-window-body {
	display: grid;
	grid-template-columns: 9rem 1fr 11rem;
	min-height: 360px;
	font-family: var(--font-mono);
	font-size: 0.78rem;
}

.hero-window-body>* {
	padding: 0.85rem 0.9rem;
}

.hero-tree {
	background: rgba(255, 255, 255, 0.03);
	border-right: 1px solid var(--border);
	color: var(--text-muted);
}

.hero-tree-row {
	white-space: nowrap;
	padding: 0.15rem 0;
}

.hero-tree-row--dir {
	color: var(--text);
	font-weight: 600;
}

.hero-badge {
	display: inline-block;
	width: 0.95rem;
	height: 0.95rem;
	text-align: center;
	line-height: 0.95rem;
	font-weight: 700;
	font-size: 0.7rem;
	border-radius: 0.25rem;
	margin-right: 0.3rem;
	color: #0a0a0f;
}

.hero-badge--m {
	background: var(--badge-m);
}

.hero-badge--s {
	background: var(--badge-s);
}

.hero-badge--u {
	background: var(--badge-u);
	color: white;
}

.hero-badge--d {
	background: var(--badge-d);
}

.hero-editor {
	color: var(--text);
}

.hero-line {
	display: flex;
	gap: 0.75rem;
	padding: 0.1rem 0;
}

.hero-ln {
	color: var(--text-dim);
	width: 1.6rem;
	text-align: right;
	user-select: none;
}

.hero-kw {
	color: #C792EA;
}

.hero-fn {
	color: #82AAFF;
}

.hero-arg {
	color: #FFCB6B;
}

.hero-cursor {
	display: inline-block;
	width: 0.5rem;
	height: 1.1rem;
	background: var(--primary);
	margin-top: 0.2rem;
	animation: blink 1.05s steps(2) infinite;
	border-radius: 1px;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero-chat {
	background: rgba(255, 255, 255, 0.03);
	border-left: 1px solid var(--border);
}

.hero-chat-msg {
	padding: 0.5rem 0.65rem;
	border-radius: 0.5rem;
	margin-bottom: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.78rem;
	line-height: 1.4;
}

.hero-chat-msg--user {
	background: var(--surface-strong);
	color: var(--text);
	border: 1px solid var(--border);
	align-self: flex-end;
	text-align: right;
}

.hero-chat-msg--ai {
	background: linear-gradient(135deg, rgba(255, 107, 43, 0.20), rgba(255, 159, 67, 0.20));
	border: 1px solid rgba(255, 107, 43, 0.35);
	color: var(--text);
}

.hero-chat-typing span {
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	background: var(--text-muted);
	border-radius: 50%;
	margin-right: 0.2rem;
	animation: typingDot 1.2s infinite ease-in-out;
}

.hero-chat-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.hero-chat-typing span:nth-child(3) {
	animation-delay: 0.30s;
}

@keyframes typingDot {

	0%,
	80%,
	100% {
		opacity: 0.3;
	}

	40% {
		opacity: 1;
	}
}

.hero-status {
	display: flex;
	gap: 1rem;
	padding: 0.5rem 0.9rem;
	background: rgba(255, 255, 255, 0.05);
	border-top: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-muted);
}

.hero-status-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.hero-status-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--success);
}

/* ---------- 7. Section heads ------------------------------------ */
section {
	padding: var(--s-12) 0;
}

section.inner-page,
section.docs {
	padding: 3rem 0;
}

.section-head {
	text-align: center;
	/* max-width: 720px; */
	margin: 0 auto var(--s-10);
}

.section-head-eyebrow,
kbd {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--primary-2);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: var(--s-4);
}

kbd {
	margin-bottom: 0;
}

.section-head-title {
	font-size: clamp(1.9rem, 3.2vw, 2.8rem);
	font-weight: 800;
	margin-bottom: var(--s-4);
}

.section-head-lede {
	color: var(--text-muted);
	font-size: 1.05rem;
}

/* ---------- 8. Social proof ------------------------------------- */
.proof-label {
	text-align: center;
	color: var(--text-dim);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--s-5);
}

.proof-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin-bottom: var(--s-8);
}

.proof-chip {
	padding: 0.5rem 0.9rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 500;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.proof-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s-4);
	padding: var(--s-6);
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

@media (min-width: 768px) {
	.proof-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.proof-stat {
	text-align: center;
}

.proof-stat-num {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	letter-spacing: -0.02em;
}

.proof-stat-label {
	display: block;
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-top: 0.2rem;
}

.card {
	position: relative;
}

.card .status {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--text);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.card .status.success {
	border-color: var(--success);
	color: var(--success);
}

.card .status.warning {
	border-color: var(--warning);
	color: var(--warning);
}

.card .date {
	padding: 0.35rem 0;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.card-head {
	margin: 0 0 2rem 0;
}

.card-content {

	h2,
	h3 {
		font-size: clamp(1.4rem, 3vw, 1.75rem);
		font-weight: 700;
		margin-bottom: 2rem;
	}

	p {
		margin: 0 0 1rem 0;
		color: var(--text-muted);
	}

	ul {
		margin: 1rem 0;
	}

	li {
		margin: 0 0 .2rem 0;
		color: var(--text-muted);
	}
}

.changelog .container {
	max-width: 1200px;
}

.card.release {
	margin-bottom: 3rem;
}

/* ---------- 9. Features ---------------------------------------- */
.cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
}

/* Tablet: 4-col bento. Flagship card is 2x2; trailing card spans full width. */
@media (min-width: 768px) {
	.cards-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.card {
		grid-column: span 2;
	}

	.card--lg {
		grid-column: span 2;
		grid-row: span 2;
	}

	.card--md {
		grid-column: span 2;
		grid-row: span 2;
	}

	/* Close the grid cleanly: the last card fills its row. */
	/* .card:last-child {
		grid-column: span 4;
	} */
}

/* Desktop: 6-col bento. Flagship is 4x2; final row is three equal cards. */
@media (min-width: 1200px) {
	.cards-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.row {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
	}

	.col-6 {
		grid-column: span 6;
		width: 100%;
		padding: 0 20px;
	}

	.card {
		grid-column: span 2;
	}

	.card--xl {
		grid-column: span 6;
	}

	.card--lg {
		grid-column: span 4;
		grid-row: span 2;
	}

	.card--md {
		grid-column: span 3;
		grid-row: span 3;
	}
}

.card {
	padding: var(--s-6);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
	border-color: rgba(99, 102, 241, 0.25);
	box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.card:hover::before {
	opacity: 1;
}


.card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
}

.card-icon {
	/* display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--r-md);
	background: linear-gradient(135deg, rgba(255, 107, 43, 0.22), rgba(255, 159, 67, 0.22));
	color: var(--primary-2);
	font-size: 1.4rem;
	margin-bottom: var(--s-4); */
	display: block;
	position: absolute;
	font-size: 20rem;
	color: var(--primary-2);
	z-index: 1;
	opacity: .05;
	text-align: center;
	margin: auto;
	top: 10%;
	bottom: 10%;
	left: 3%;
	right: 3%;
}

.card-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 2rem;
	z-index: 2;
}

.card-body {
	color: var(--text-muted);
	margin-bottom: var(--s-4);
	position: relative;
	z-index: 2;
}

.card-bullets {
	list-style: none;
	padding: 0;
	margin: 0 0 3rem 0;
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	z-index: 2;
}

.card-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	color: var(--text-muted);
	font-size: 0.92rem;
	z-index: 2;
}

.card-bullets .material-icons {
	color: var(--success);
	font-size: 1.1rem;
	flex-shrink: 0;
}

.card-bullets code {
	background: var(--surface);
	padding: 0.05rem 0.35rem;
	border-radius: 0.25rem;
	font-size: 0.85rem;
}

.cards-more {
	text-align: center;
	margin-top: var(--s-8);
	color: var(--text-dim);
	font-size: 0.95rem;
}

.cards-more a {
	color: var(--primary-2);
	border-bottom: 1px dashed var(--border-strong);
	z-index: 2;
}

.list-grid {
	list-style: none;
	padding: 0;
	margin: 2rem 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--s-4);
	counter-reset: step;
}

@media (min-width: 768px) {
	.list-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.list-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mission-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 12fr;
	gap: var(--s-4);
	counter-reset: step;
}

@media (min-width: 768px) {
	.mission-grid {
		grid-template-columns: repeat(3, 3fr);
	}
}

@media (min-width: 1200px) {
	.mission-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mission-item {
	padding: var(--s-5);
	position: relative;
	grid-column: span 1;
}

.mission-item h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: var(--s-2) 0 var(--s-2);
}

.mission-item p {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: 0;
}

/* ---------- 10. How it works ----------------------------------- */
.how-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-4);
	counter-reset: step;
}

@media (min-width: 768px) {
	.how-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.how-steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.how-step {
	padding: var(--s-5);
	position: relative;
}

.how-step-num {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--primary-2);
	font-weight: 600;
	letter-spacing: 0.05em;
}

.how-step h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: var(--s-2) 0 var(--s-2);
}

.how-step p {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: 0;
}

/* ---------- 11. Performance band ------------------------------- */
.perf {
	padding: var(--s-10) 0;
}

.perf-panel {
	padding: var(--s-8);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	align-items: center;
}

@media (min-width: 992px) {
	.perf-panel {
		grid-template-columns: 1.1fr 1fr;
		gap: var(--s-10);
	}
}

.perf-copy .section-head-title {
	text-align: left;
}

.perf-copy .section-head-eyebrow {
	margin-left: 0;
}

.perf-lede {
	color: var(--text-muted);
	margin: var(--s-4) 0 var(--s-5);
	max-width: 30rem;
}

.perf-bars {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.perf-bar {
	display: grid;
	grid-template-columns: 8rem 1fr 6rem;
	align-items: center;
	gap: var(--s-3);
}

.perf-bar-label {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.perf-bar-track {
	display: block;
	height: 0.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	overflow: hidden;
}

.perf-bar-fill {
	display: block;
	height: 100%;
	width: var(--w, 0%);
	background: linear-gradient(90deg, var(--primary), var(--primary-2));
	border-radius: var(--r-pill);
	animation: barIn 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.perf-bar-fill--zero {
	background: var(--danger);
}

.perf-bar-val {
	text-align: right;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--text);
}

@keyframes barIn {
	from {
		transform: translateX(-2rem);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* ---------- 12. CTA -------------------------------------------- */
/* Calm “inviting” panel: surface-tinted card, soft top edge, and a
   focused accent glow *behind the title only* so the eye lands on the
   message rather than fighting two competing gradients. */
.cta {
	padding-bottom: var(--s-12);
}

.cta-panel {
	--cta-accent: var(--primary);
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
	text-align: center;
	position: relative;
	isolation: isolate;
	border-radius: var(--r-xl);
	background:
		radial-gradient(120% 80% at 50% 0%,
			color-mix(in oklab, var(--cta-accent) 18%, transparent) 0%,
			transparent 55%),
		linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	animation: ctaIn 0.7s cubic-bezier(.2, .7, .2, 1) both;
}

/* Hairline highlight on the top edge so the card doesn't read flat. */
.cta-panel::after {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg,
			transparent 0%,
			color-mix(in oklab, var(--cta-accent) 55%, transparent) 50%,
			transparent 100%);
	pointer-events: none;
}

@keyframes ctaIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cta-panel {
		animation: none;
	}
}

.cta-title {
	font-size: clamp(1.9rem, 3.2vw, 2.8rem);
	font-weight: 800;
	margin-bottom: var(--s-3);
	padding-top: 0.5rem;
}

.cta-lede {
	color: var(--text-muted);
	font-size: 1.05rem;
	margin-bottom: var(--s-6);
	max-width: 32rem;
	margin-inline: auto;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-3);
	margin-bottom: var(--s-4);
}

.cta-small {
	color: var(--text-dim);
	font-size: 0.85rem;
	margin-top: var(--s-2);
}

/* ---------- 13. Footer ----------------------------------------- */
.site-footer {
	border-top: 1px solid var(--border);
	background: rgba(10, 10, 15, 0.6);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding-top: var(--s-10);
}

.site-footer-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	padding-bottom: var(--s-8);
}

@media (min-width: 768px) {
	.site-footer-inner {
		grid-template-columns: 1.2fr 2fr;
	}
}

.site-footer-brand-row {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 800;
	color: var(--text);
	margin-bottom: var(--s-3);
}

.site-footer-brand-name {
	font-size: 1.1rem;
	letter-spacing: -0.02em;
}

.site-footer-tagline {
	color: var(--text-light);
	max-width: 24rem;
	margin: 0;
}

.site-footer-cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s-6);
}

@media (min-width: 768px) {
	.site-footer-cols {
		grid-template-columns: repeat(3, 1fr);
	}
}

.site-footer-head {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-light);
	margin-bottom: var(--s-3);
}

.site-footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer-col a {
	color: var(--nav-links);
	font-size: 0.95rem;
}

.site-footer-col a:hover {
	color: var(--text);
}

.site-footer-base {
	border-top: 1px solid var(--border);
	padding: var(--s-4) 0;
	font-size: 0.85rem;
	color: var(--text-light);
}

.site-footer-base a {
	color: var(--accent-cyan);
}

.site-footer-base a:hover {
	color: var(--text);
}

.site-footer-base-meta {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
}

/* ---------- 14. Scroll-to-top ---------------------------------- */
.scroll-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--border-strong);
	background: var(--surface-strong);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	cursor: pointer;
}

.scroll-top--visible {
	opacity: 1;
	transform: translateY(0);
}

.scroll-top:hover {
	background: var(--surface);
}

/* ---------- 15. Inner pages ------------------------------------ */
.page-banner {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	height: 240px;
	display: flex;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid var(--border);
}

.page-banner-eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary-2);
	margin-bottom: var(--s-3);
}

.page-banner-title {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 800;
}

.page-banner-lede {
	color: var(--text-muted);
	font-size: 1.1rem;
	margin-top: var(--s-3);
	max-width: 45rem;
	margin-inline: auto;
}

.prose p {
	color: var(--text-muted);
	font-size: 1.05rem;
	margin-bottom: var(--s-4);
}

.contact-panel {
	padding: var(--s-8);
}

.contact-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: var(--s-5);
}

.contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
}

.contact-list li {
	display: flex;
	gap: var(--s-4);
}

.contact-list .material-icons {
	font-size: 1.6rem;
	color: var(--primary-2);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: 0.6rem;
	flex-shrink: 0;
	height: 46px;
}

.contact-list strong {
	display: block;
	font-size: 1.05rem;
}

.contact-list p {
	margin: 0.2rem 0 0.6rem;
	color: var(--text-muted);
}

.contact-link {
	color: var(--primary-2);
	font-weight: 600;
	font-size: 0.95rem;
}

.contact-form {
	margin-top: 3rem;
}

.docs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-5);
}

@media (min-width: 768px) {
	.docs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.docs-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.docs-card {
	padding: var(--s-6);
	transition: transform 0.2s ease;
}

.docs-card:hover {
	transform: translateY(-4px);
}

.docs-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--r-md);
	background: var(--surface);
	color: var(--primary-2);
	margin-bottom: var(--s-3);
}

.docs-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: var(--s-2);
}

.docs-card p {
	color: var(--text-muted);
	margin-bottom: var(--s-3);
}

.docs-link {
	color: var(--primary-2);
	font-weight: 600;
}

/* ---------- 16. Bootstrap overlap tweaks ----------------------- */
[data-bs-theme='dark'] {
	--bs-body-bg: var(--bg);
	--bs-body-color: var(--text);
	--bs-border-color: var(--border);
	--bs-link-color: var(--primary);
	--bs-link-hover-color: var(--primary-2);
}

/* ---------- 17. Docs feature pages ----------------------------- */
/* Used by /docs/{ai,editor,lsp,git,terminal,search}/, long-form
   pages built from .docs-block sections, .docs-cards-mini trios,
   and .docs-table. Color tokens reused from section 1. */
.docs-feature {
	padding: var(--s-10) 0 var(--s-12);
}

.docs-feature-head {
	margin-bottom: var(--s-6);
}

.docs-feature-lede {
	color: var(--text-muted);
	font-size: 1.1rem;
	line-height: 1.7;
	margin: 0;
}

.docs-block {
	margin-top: var(--s-10);
}

.docs-block-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: var(--s-4);
	padding-bottom: var(--s-3);
	border-bottom: 1px solid var(--border);
}

.docs-block-prose {
	color: var(--text-muted);
	font-size: 1.02rem;
	line-height: 1.7;
	margin-bottom: var(--s-4);
}

.docs-block-prose--muted {
	color: var(--text-dim);
	font-size: 0.92rem;
}

.docs-block-prose code,
.docs-feature-lede code,
.docs-card-mini code,
.docs-table code {
	background: var(--surface);
	padding: 0.1rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.9rem;
}

.card-bullets--lg {
	margin-bottom: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.card-bullets--lg li {
	align-items: flex-start;
}

.card-bullets--lg .material-icons {
	margin-top: 2px;
}

.card-bullets--lg strong {
	color: var(--text);
}

.docs-cards-mini {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-4);
	margin-bottom: var(--s-4);
}

@media (min-width: 768px) {
	.docs-cards-mini {
		grid-template-columns: repeat(3, 1fr);
	}
}

.docs-card-mini {
	padding: var(--s-5);
}

.docs-card-mini .material-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--r-sm);
	background: var(--surface);
	color: var(--primary-2);
	margin-bottom: var(--s-3);
	font-size: 1.2rem;
}

.docs-card-mini h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: var(--s-2);
}

.docs-card-mini p {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: 0;
}

.docs-table-wrap {
	overflow-x: auto;
	margin-bottom: var(--s-4);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: var(--surface);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.docs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.docs-table th,
.docs-table td {
	text-align: left;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.docs-table tr:last-child td {
	border-bottom: 0;
}

.docs-table th {
	color: var(--text-light);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(255, 255, 255, 0.03);
}

.docs-table td {
	color: var(--text-muted);
}

.docs-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03);
}

.inner-page kbd {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 0.3rem;
	padding: 0.1rem 0.4rem;
	color: var(--text);
}

.docs-back {
	margin-top: var(--s-10);
	padding-top: var(--s-5);
	border-top: 1px solid var(--border);
}

.docs-back a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-muted);
	font-weight: 500;
}

.docs-back a:hover {
	color: var(--primary-2);
}

.docs-back .material-icons {
	font-size: 1.1rem;
}

/* ---------- 18. Docs subpage layout & sidebar -------------------- */
/* Side+content grid for /docs/{slug}/ pages. Below 992px the sidebar
   collapses above the content (sticky/collapsible is a later iteration).
   Tokens reused from section 1. */
.docs-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-6);
	max-width: 1200px;
	margin: 0 auto;
}

@media (min-width: 992px) {
	.docs-layout {
		grid-template-columns: 16rem 1fr;
		gap: var(--s-8);
		align-items: start;
	}
}

.docs-layout-content {
	min-width: 0;
	max-width: 760px;
}

.docs-layout-content .markdown-link {
	display: inline-block;
	margin-bottom: 1rem;
}

.docs-sidebar {
	padding: var(--s-5);
	position: sticky;
	top: calc(var(--s-5) + 4rem);
	align-self: start;
}

@media (max-width: 991px) {
	.docs-sidebar {
		position: static;
	}
}

.docs-sidebar-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-light);
	margin-bottom: var(--s-4);
	padding-bottom: var(--s-3);
	border-bottom: 1px solid var(--border);
}

.docs-sidebar-title .material-icons {
	font-size: 1.05rem;
	color: var(--primary-2);
}

.docs-sidebar-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.docs-sidebar-link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.7rem;
	border-radius: var(--r-sm);
	color: var(--text-muted);
	font-size: 0.92rem;
	font-weight: 500;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.docs-sidebar-link:hover {
	background: var(--surface);
	color: var(--text);
}

.docs-sidebar-link .material-icons {
	font-size: 1.05rem;
	color: var(--text-dim);
	flex-shrink: 0;
}

.docs-sidebar-link:hover .material-icons {
	color: var(--primary-2);
}

.docs-sidebar-link--active {
	background: linear-gradient(135deg, rgba(43, 184, 255, 0.2), rgba(30, 160, 246, 0.2));
	color: var(--text);
	border-color: rgba(30, 160, 246, 0.1);
}

.docs-sidebar-link--active .material-icons {
	color: var(--primary-2);
}

.docs-sidebar-link--overview {
	margin-bottom: var(--s-3);
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
}

.docs-code-block {
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: 0.9rem 1.1rem;
	margin: var(--s-4) 0;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--text);
}

.docs-layout section {
	margin-top: 2rem;
	padding: 1rem 0;
}

/* ---------- 19. Blog ------------------------------------------ */

/* Two-column grid: posts left, sidebar right */
.blog-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-8);
	align-items: start;
}

@media (min-width: 992px) {
	.blog-layout {
		grid-template-columns: 1fr 18rem;
	}
}

.blog-content {
	min-width: 0;
}

/* Posts list */
.blog-posts {
	display: flex;
	flex-direction: column;
	gap: var(--s-6);
}

/* Excerpt post card */
.excerpt-post {
	padding: var(--s-6);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.excerpt-post:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
}

/* Post header (shared between index excerpts and single article) */
.post-header {
	margin-bottom: var(--s-5);
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--border);
}

.post-header h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.6rem);
	font-weight: 700;
	margin-bottom: var(--s-2);
}

.post-header h3,
.post-subtitle {
	font-size: 1.05rem;
	color: var(--text-muted);
	font-weight: 400;
	margin-top: 0.25rem;
	margin-bottom: var(--s-3);
}

.post-title {
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
	font-weight: 800;
	margin-bottom: var(--s-2);
}

/* Post title link on index */
.post-link {
	color: var(--text);
	text-decoration: none;
	transition: color 0.15s ease;
}

.post-link:hover {
	color: var(--primary);
	text-decoration: none;
}

/* Post meta (date, author) */
.post-meta {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: var(--text-dim);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: var(--s-4);
	flex-wrap: wrap;
}

.post-meta .material-icons {
	font-size: 0.9rem;
	color: var(--primary-2);
	vertical-align: middle;
	margin-right: 0.2rem;
}

.post-meta-item {
	display: inline-flex;
	align-items: center;
}

/* Post excerpt text */
.post-excerpt {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: var(--s-4);
}

/* Read more link */
.read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--primary);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, gap 0.15s ease;
}

.read-more-link:hover {
	color: var(--primary-2);
	gap: 0.6rem;
	text-decoration: none;
}

.read-more-link .material-icons {
	font-size: 1rem;
}

/* Back link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-muted);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	padding: 0.4rem 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.back-link:hover {
	color: var(--text);
	border-color: var(--border-strong);
	text-decoration: none;
}

.back-link .material-icons {
	font-size: 1rem;
}

/* Single article wrapper */
.blog-article {
	max-width: 760px;
	margin: 0 auto;
}

/* Post content (single article body, prose) */
.post-content {
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.8;
}

.post-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	margin-top: var(--s-8);
	margin-bottom: var(--s-4);
}

.post-content h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	margin-top: var(--s-6);
	margin-bottom: var(--s-3);
}

.post-content h4 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
	margin-top: var(--s-5);
	margin-bottom: var(--s-3);
}

.post-content p {
	margin-bottom: var(--s-4);
}

.post-content a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.post-content a:hover {
	color: var(--primary-2);
}

.post-content img {
	border-radius: var(--r-md);
	margin: var(--s-5) 0;
	padding: 0;
	width: auto;
	max-width: 100%;
}

.post-content img.float-left {
	float: left;
	margin-right: var(--s-5);
	max-width: 50%;
}

.post-content img.float-right {
	float: right;
	margin-left: var(--s-5);
	max-width: 50%;
}

.post-content code {
	background: var(--surface);
	padding: 0.1rem 0.4rem;
	border-radius: 0.25rem;
	font-size: 0.9rem;
}

.post-content pre {
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--s-4);
	overflow-x: auto;
	margin: var(--s-5) 0;
}

.post-content pre code {
	background: transparent;
	padding: 0;
}

.post-content blockquote {
	border-left: 3px solid var(--primary);
	padding-left: var(--s-4);
	margin: var(--s-5) 0;
	color: var(--text-muted);
	font-style: italic;
}

.post-content ul,
.post-content ol {
	padding-left: var(--s-5);
	margin-bottom: var(--s-4);
}

.post-content li {
	margin-bottom: var(--s-2);
	color: var(--text-muted);
}

/* Post footer (single article, category, tags, back link) */
.post-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	flex-wrap: wrap;
	margin-top: var(--s-8);
	padding-top: var(--s-5);
	border-top: 1px solid var(--border);
}

/* Category badge */
.post-category {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.post-category .material-icons {
	font-size: 1rem;
	color: var(--text-dim);
}

.category-link {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.85rem;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--text-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Tags */
.post-tags {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.post-tags .material-icons {
	font-size: 1rem;
	color: var(--text-dim);
}

.post-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Pagination */
.blog-pagination {
	margin-top: var(--s-8);
}

.blog-pagination .pagination {
	display: flex;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-pagination .page-item {
	display: inline-flex;
	align-items: center;
}

.blog-pagination .page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-pagination .page-link:hover {
	background: var(--surface-strong);
	color: var(--text);
	border-color: var(--border-strong);
}

.blog-pagination .page-item.active .page-link {
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: white;
	border-color: transparent;
}

.blog-pagination .page-item.disabled .page-link {
	opacity: 0.4;
	pointer-events: none;
}

.blog-pagination .page-link .material-icons {
	font-size: 1.2rem;
}

/* Sidebar */
.blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
	position: sticky;
	top: calc(4rem + var(--s-5));
	align-self: start;
}

@media (max-width: 991px) {
	.blog-sidebar {
		position: static;
	}
}

/* Widgets (shared between sidebar and bottom row) */
.widget {
	padding: var(--s-5);
}

.blog-sidebar .widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: var(--shadow-glass);
}

.widget-title {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-light);
	margin-bottom: var(--s-4);
	padding-bottom: var(--s-3);
	border-bottom: 1px solid var(--border);
}

.widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.widget-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.widget-list-item a {
	color: var(--text-muted);
	font-size: 0.92rem;
	text-decoration: none;
	transition: color 0.15s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.widget-list-item a:hover {
	color: var(--text);
	text-decoration: none;
}

.widget-meta {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-dim);
	letter-spacing: 0.04em;
	margin-top: 0.15rem;
}

.widget-count {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--primary-2);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	padding: 0.15rem 0.6rem;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.widget-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.widget-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.widget-tag:hover {
	background: var(--surface-strong);
	color: var(--text);
	border-color: var(--border-strong);
	text-decoration: none;
}

/* Widgets row below single article */
.blog-widgets-row {
	margin-top: var(--s-10);
	padding-top: var(--s-6);
	border-top: 1px solid var(--border);
}

.blog-widgets-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-5);
}

@media (min-width: 768px) {
	.blog-widgets-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.blog-widgets-grid .widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	padding: var(--s-5);
}

/* Not found */
.blog-not-found {
	text-align: center;
	color: var(--text-muted);
	padding: var(--s-10) 0;
	font-size: 1.05rem;
}

/* Downloads page */
.downloads {
	padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.downloads-intro {
	max-width: 42rem;
	margin: 0 auto var(--s-8);
	text-align: center;
}

.downloads-intro p {
	margin: var(--s-3) 0 0;
	color: var(--text-muted);
	font-size: 1.05rem;
}

.downloads-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-5);
}

.download-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
	box-shadow: 0 20px 60px rgba(0, 162, 194, 0.12);
}

.download-card::after {
	content: '';
	position: absolute;
	width: 12rem;
	height: 12rem;
	top: -5rem;
	right: -4rem;
	border-radius: 50%;
	background: var(--card-accent, var(--primary));
	opacity: 0.08;
	filter: blur(22px);
	pointer-events: none;
}

.download-card--mac {
	--card-accent: var(--secondary);
	border-color: rgba(0, 229, 199, 0.2);
}

.download-card--soon {
	--card-accent: var(--primary-light);
}

.download-card-head,
.download-card-content,
.download-options {
	position: relative;
	z-index: 1;
}

.download-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--s-4);
	margin-bottom: var(--s-6);
}

.download-platform {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	/* border-radius: var(--r-md);
	background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 25%, transparent), var(--surface));
	border: 1px solid color-mix(in srgb, var(--card-accent) 30%, var(--border));
	color: var(--card-accent);
	 */
}

.download-platform .material-icons,
.download-platform svg {
	font-size: 1.75rem;
	/* width: 1.75rem;
	height: 1.75rem; */
	opacity: .2;
}

.download-status {
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.download-card--mac .download-status {
	color: var(--secondary);
	border-color: rgba(0, 229, 199, 0.25);
}

.download-card h2 {
	font-size: clamp(1.4rem, 3vw, 1.75rem);
	font-weight: 700;
	margin-bottom: var(--s-2);
}

.download-card-copy {
	margin: 0;
	color: var(--text-muted);
}

.download-options {
	display: grid;
	gap: var(--s-3);
	margin-top: auto;
	padding-top: var(--s-6);
}

.download-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, 0.025);
}

.download-option strong {
	display: block;
	font-size: 0.98rem;
}

.download-option small {
	display: block;
	margin-top: 0.15rem;
	color: var(--text-dim);
	font-family: var(--font-mono);
	font-size: 0.72rem;
}

.download-button {
	flex-shrink: 0;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	border-radius: var(--r-pill);
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: white;
	font-size: 0.85rem;
	font-weight: 600;
}

.download-button:hover {
	color: white;
	transform: translateY(-1px);
}

.download-button .material-icons {
	font-size: 1rem;
	vertical-align: middle;
}

.download-card--soon .download-options {
	padding-top: var(--s-8);
}

.download-card--soon .download-option {
	justify-content: flex-start;
	color: var(--text-muted);
}

.download-card--soon .download-option .material-icons {
	color: var(--card-accent);
}

@media (min-width: 768px) {
	.downloads-grid {
		grid-template-columns: repeat(3, 1fr);
		align-items: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {

	.download-card,
	.download-button {
		transition: none;
	}
}