/* ========================================
   Design Tokens
   ======================================== */
:root {
	--primary: hsl(245, 80%, 61%);      /* #6366f1 indigo */
	--primary-dark: hsl(245, 80%, 50%);
	--secondary: hsl(280, 75%, 60%);    /* #a855f7 purple */
	--accent-green: hsl(142, 72%, 45%);
	--accent-blue: hsl(200, 88%, 52%);
	--accent-amber: hsl(38, 92%, 55%);

	--bg: hsl(210, 40%, 98%);
	--bg-alt: hsl(220, 30%, 96%);
	--surface: #ffffff;
	--surface-raised: hsl(220, 25%, 99%);
	--border: hsl(220, 14%, 90%);
	--border-subtle: hsl(220, 14%, 94%);

	--text: hsl(220, 15%, 30%);
	--text-muted: hsl(220, 10%, 52%);
	--heading: hsl(222, 35%, 14%);

	--shadow-xs: 0 1px 2px 0 hsl(0 0% 0% / .05);
	--shadow-sm: 0 1px 3px 0 hsl(0 0% 0% / .1), 0 1px 2px -1px hsl(0 0% 0% / .1);
	--shadow-md: 0 4px 6px -1px hsl(0 0% 0% / .1), 0 2px 4px -2px hsl(0 0% 0% / .1);
	--shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / .1), 0 4px 6px -4px hsl(0 0% 0% / .1);
	--shadow-xl: 0 20px 25px -5px hsl(0 0% 0% / .12), 0 8px 10px -6px hsl(0 0% 0% / .12);

	--radius-sm: 0.375rem;
	--radius-md: 0.75rem;
	--radius-lg: 1rem;
	--radius-xl: 1.5rem;
	--radius-full: 9999px;

	--font: 'Inter', system-ui, -apple-system, sans-serif;
	--font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

	--transition: 0.2s ease;
	--transition-slow: 0.4s ease;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: hsl(222, 47%, 8%);
		--bg-alt: hsl(222, 40%, 11%);
		--surface: hsl(222, 35%, 13%);
		--surface-raised: hsl(222, 30%, 16%);
		--border: hsl(222, 20%, 22%);
		--border-subtle: hsl(222, 20%, 18%);
		--text: hsl(220, 15%, 69%);
		--text-muted: hsl(220, 10%, 50%);
		--heading: hsl(210, 40%, 96%);
		--shadow-sm: 0 1px 3px 0 hsl(0 0% 0% / .3);
		--shadow-md: 0 4px 6px -1px hsl(0 0% 0% / .4);
		--shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / .4);
		--shadow-xl: 0 20px 25px -5px hsl(0 0% 0% / .5);
	}
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	font-family: var(--font);
	background-color: var(--bg);
	color: var(--text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover { color: var(--primary-dark); text-decoration: underline; }

code {
	font-family: var(--font-mono);
	font-size: .875em;
	background: hsla(245, 80%, 61%, 0.08);
	color: var(--primary);
	padding: .1em .35em;
	border-radius: var(--radius-sm);
}

ul { list-style: none; }

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

/* ========================================
   Layout Helpers
   ======================================== */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 1.5rem;
}

.section {
	padding-block: 6rem;
}

.section-header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.section-label {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--primary);
	background: hsla(245, 80%, 61%, 0.1);
	padding: .35rem .85rem;
	border-radius: var(--radius-full);
	margin-bottom: 1rem;
}

.section-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: var(--heading);
	letter-spacing: -.03em;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.section-desc {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 600px;
	margin-inline: auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.5rem;
	border-radius: var(--radius-full);
	font-family: var(--font);
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: all .25s ease;
	white-space: nowrap;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: #fff;
	box-shadow: 0 4px 14px -2px hsla(245, 80%, 61%, .45);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -4px hsla(245, 80%, 61%, .55);
	text-decoration: none;
	color: #fff;
}

.btn-outline {
	background: transparent;
	color: var(--primary);
	border: 1.5px solid var(--primary);
}

.btn-outline:hover {
	background: hsla(245, 80%, 61%, .08);
	text-decoration: none;
	color: var(--primary);
}

.btn-ghost {
	background: hsla(245, 80%, 61%, .08);
	color: var(--primary);
}

.btn-ghost:hover {
	background: hsla(245, 80%, 61%, .15);
	text-decoration: none;
	color: var(--primary);
}

.btn-full-width {
	width: 100%;
	justify-content: center;
}

/* ========================================
   Badges
   ======================================== */
.badge {
	display: inline-block;
	font-size: .75rem;
	font-weight: 600;
	padding: .25rem .65rem;
	border-radius: var(--radius-full);
}

.badge-green  { background: hsla(142, 72%, 45%, .12); color: hsl(142, 60%, 35%); }
.badge-blue   { background: hsla(200, 88%, 52%, .12); color: hsl(200, 70%, 40%); }
.badge-purple { background: hsla(280, 75%, 60%, .12); color: hsl(280, 60%, 50%); }

@media (prefers-color-scheme: dark) {
	.badge-green  { color: hsl(142, 70%, 55%); }
	.badge-blue   { color: hsl(200, 80%, 65%); }
	.badge-purple { color: hsl(280, 75%, 70%); }
}

/* ========================================
   Gradient Text
   ======================================== */
.gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ========================================
   Header
   ======================================== */
#site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: hsla(210, 40%, 98%, .85);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition), box-shadow var(--transition);
}

@media (prefers-color-scheme: dark) {
	#site-header {
		background: hsla(222, 47%, 8%, .85);
	}
}

#site-header.scrolled {
	border-color: var(--border);
	box-shadow: var(--shadow-sm);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
	gap: 2rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: .625rem;
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--heading);
	text-decoration: none;
	flex-shrink: 0;
}

.logo:hover { text-decoration: none; color: var(--heading); }

.logo-icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
}

.logo span {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

#main-nav {
	display: flex;
	align-items: center;
	gap: .25rem;
}

#main-nav a {
	padding: .5rem .75rem;
	border-radius: var(--radius-md);
	font-size: .9rem;
	font-weight: 500;
	color: var(--text);
	transition: background var(--transition), color var(--transition);
	text-decoration: none;
}

#main-nav a:hover {
	background: hsla(245, 80%, 61%, .08);
	color: var(--primary);
	text-decoration: none;
}

#main-nav .btn-outline {
	margin-left: .5rem;
	padding: .4rem 1rem;
	font-size: .875rem;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: .5rem;
	border-radius: var(--radius-md);
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--heading);
	transition: var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
	position: relative;
	overflow: hidden;
}

.hero-banner {
	position: relative;
}

.banner-img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		hsla(245, 80%, 10%, .45) 0%,
		hsla(245, 80%, 10%, .75) 60%,
		hsla(245, 80%, 10%, .92) 100%
	);
}

.hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding-block: 3rem;
	gap: 1.25rem;
}

.hero-badges {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.hero-content h1 {
	font-size: clamp(2rem, 5.5vw, 3.75rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	letter-spacing: -.04em;
	text-shadow: 0 2px 20px hsla(0,0%,0%,.3);
}

.hero-content h1 .gradient-text {
	-webkit-text-fill-color: transparent;
}

.hero-desc {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: hsla(255, 100%, 98%, .85);
	max-width: 580px;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	justify-content: center;
}

.hero-meta {
	display: flex;
	gap: 1.5rem;
	font-size: .8rem;
	color: hsla(255, 100%, 95%, .75);
	flex-wrap: wrap;
	justify-content: center;
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
}

.stats-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	flex-wrap: wrap;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem 2.5rem;
	gap: .125rem;
}

.stat-item strong {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--heading);
}

.stat-item span {
	font-size: .75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 500;
}

.stat-divider {
	width: 1px;
	height: 48px;
	background: var(--border);
	flex-shrink: 0;
}

/* ========================================
   Features
   ======================================== */
.features-section {
	background: var(--bg);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.5rem;
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 2rem;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl);
	border-color: hsla(245, 80%, 61%, .25);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-md);
	background: hsla(245, 80%, 61%, .1);
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}

.feature-card h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--heading);
	margin-bottom: .625rem;
}

.feature-card p {
	font-size: .9375rem;
	color: var(--text-muted);
	margin-bottom: .75rem;
}

.feature-card ul {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.feature-card ul li {
	font-size: .875rem;
	color: var(--text);
	padding-left: 1.25rem;
	position: relative;
}

.feature-card ul li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent-green);
	font-weight: 700;
}

/* ========================================
   Demo
   ======================================== */
.demo-section {
	background: var(--bg-alt);
}

.demo-frame {
	max-width: 720px;
	margin: 0 auto;
	background: var(--surface);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-xl);
	border: 1px solid var(--border);
	overflow: hidden;
}

.demo-bar {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .875rem 1.25rem;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
}

.demo-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.demo-url {
	flex: 1;
	text-align: center;
	font-size: .75rem;
	color: var(--text-muted);
	background: var(--surface);
	border: 1px solid var(--border);
	padding: .25rem .75rem;
	border-radius: var(--radius-full);
}

.demo-body {
	padding: 1.5rem;
}

.demo-search-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.demo-input-group {
	display: flex;
	align-items: center;
	gap: .75rem;
	background: var(--bg);
	border: 1.5px solid var(--primary);
	border-radius: var(--radius-lg);
	padding: .75rem 1rem;
	box-shadow: 0 0 0 3px hsla(245, 80%, 61%, .12);
}

.demo-input-group svg {
	color: var(--text-muted);
	flex-shrink: 0;
}

.demo-input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	font-family: var(--font);
	font-size: .9375rem;
	color: var(--heading);
}

.demo-shortcut {
	font-size: .7rem;
	font-family: var(--font-mono);
	color: var(--text-muted);
	background: var(--border);
	padding: .2rem .4rem;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.demo-tabs {
	display: flex;
	gap: .25rem;
	border-bottom: 2px solid var(--border);
	padding-bottom: 0;
}

.demo-tab {
	display: flex;
	align-items: center;
	gap: .375rem;
	padding: .5rem 1rem;
	border: none;
	background: none;
	font-family: var(--font);
	font-size: .875rem;
	font-weight: 500;
	color: var(--text-muted);
	cursor: pointer;
	position: relative;
	bottom: -2px;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.demo-tab:hover { color: var(--primary); }

.demo-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
	font-weight: 600;
}

.tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	font-size: .7rem;
	font-weight: 700;
	background: hsla(245, 80%, 61%, .12);
	color: var(--primary);
	border-radius: var(--radius-full);
	padding: 0 .3rem;
}

.demo-results {
	min-height: 140px;
}

.demo-panel { display: none; }
.demo-panel.active { display: block; animation: fadeIn .2s ease; }

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

.demo-result-item {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: .75rem .5rem;
	border-bottom: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	transition: background .15s;
	cursor: pointer;
}

.demo-result-item:last-child { border-bottom: none; }
.demo-result-item:hover { background: hsla(245, 80%, 61%, .05); }

.demo-thumb {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	flex-shrink: 0;
}

.demo-thumb-term {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .875rem;
	color: #fff;
	border-radius: var(--radius-full);
}

.demo-result-info {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	flex: 1;
}

.demo-result-title {
	font-size: .9375rem;
	font-weight: 600;
	color: var(--heading);
}

.demo-result-meta {
	display: flex;
	align-items: center;
	gap: .375rem;
	font-size: .8rem;
	color: var(--text-muted);
	flex-wrap: wrap;
}

/* Status badges in demo */
.status-badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	padding: .15rem .5rem;
	border-radius: var(--radius-full);
	text-transform: capitalize;
}

.status-publish  { background: hsla(142.4, 71.8%, 29.2%, 0.12); color: hsl(142, 60%, 36%); }
.status-draft    { background: hsla(38, 92%, 50%, .12); color: hsl(38, 80%, 38%); }
.status-category { background: hsla(200, 88%, 52%, .12); color: hsl(200, 70%, 38%); }
.status-tag      { background: hsla(280, 75%, 60%, .12); color: hsl(280, 60%, 45%); }

@media (prefers-color-scheme: dark) {
	.status-publish  { color: hsl(142, 70%, 55%); }
	.status-draft    { color: hsl(38, 92%, 60%); }
	.status-category { color: hsl(200, 80%, 65%); }
	.status-tag      { color: hsl(280, 75%, 70%); }
}

.demo-note {
	text-align: center;
	margin-top: 1.25rem;
	font-size: .875rem;
	color: var(--text-muted);
}

/* ========================================
   Installation
   ======================================== */
.installation-section {
	background: var(--bg);
}

.install-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 2.5rem;
	align-items: start;
}

.install-steps {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.install-step {
	display: flex;
	gap: 1.25rem;
	padding: 2rem 0;
	border-bottom: 1px solid var(--border-subtle);
	position: relative;
}

.install-step:last-child { border-bottom: none; }

.step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: #fff;
	font-weight: 800;
	font-size: .9rem;
	flex-shrink: 0;
	box-shadow: 0 4px 10px -2px hsla(245, 80%, 61%, .4);
}

.step-body {
	flex: 1;
}

.step-body h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--heading);
	margin-bottom: .5rem;
}

.step-body p {
	font-size: .9375rem;
	color: var(--text);
	line-height: 1.6;
	margin-bottom: .875rem;
}

.code-snippet {
	background: hsl(222, 47%, 11%);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	align-items: stretch;
	border: 1px solid hsl(222, 20%, 22%);
}

.snippet-label {
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: hsl(222, 20%, 50%);
	padding: .5rem .875rem;
	border-bottom: 1px solid hsl(222, 20%, 20%);
	display: none; /* hidden inline — show via parent flex direction */
}

.code-snippet {
	display: grid;
	grid-template-rows: auto auto;
}

.snippet-label {
	display: block;
	grid-row: 1;
	grid-column: 1 / 3;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: hsl(222, 20%, 50%);
	padding: .5rem .875rem .25rem;
	border-bottom: 1px solid hsl(222, 20%, 20%);
}

.code-snippet code {
	display: block;
	font-family: var(--font-mono);
	font-size: .875rem;
	color: #e2e8f0;
	padding: .625rem .875rem;
	background: none;
	border-radius: 0;
	white-space: nowrap;
	overflow-x: auto;
	flex: 1;
	grid-row: 2;
	grid-column: 1;
}

.copy-btn {
	grid-row: 2;
	grid-column: 2;
	align-self: center;
	padding: .35rem .75rem;
	margin: .375rem .625rem .375rem 0;
	font-size: .75rem;
	font-weight: 600;
	color: var(--primary);
	background: hsla(245, 80%, 61%, .15);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-family: var(--font);
	transition: background .2s, color .2s;
	white-space: nowrap;
}

.copy-btn:hover { background: hsla(245, 80%, 61%, .25); }
.copy-btn.copied { color: var(--accent-green); background: hsla(142, 72%, 45%, .15); }

/* Info card sidebar */
.install-info-card {
	position: sticky;
	top: 90px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.info-section {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--border-subtle);
}

.info-section:last-child { border-bottom: none; }

.info-section h4 {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin-bottom: .875rem;
}

.info-table {
	width: 100%;
	border-collapse: collapse;
}

.info-table tr + tr td,
.info-table tr + tr th { border-top: 1px solid var(--border-subtle); }

.info-table th,
.info-table td {
	padding: .45rem 0;
	font-size: .875rem;
	vertical-align: top;
}

.info-table th {
	color: var(--text-muted);
	font-weight: 500;
	width: 45%;
}

.info-table td {
	color: var(--heading);
	font-weight: 600;
	text-align: right;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
}

.tag-chip {
	font-size: .75rem;
	font-weight: 500;
	background: var(--bg);
	color: var(--primary);
	padding: .25rem .625rem;
	border-radius: var(--radius-full);
	border: 1px solid hsla(245, 80%, 61%, .2);
}

.contributor-link {
	display: flex;
	align-items: center;
	gap: .625rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--heading);
	text-decoration: none;
}

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

.contributor-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
	background: var(--bg-alt);
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.faq-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}

.faq-item.open {
	border-color: hsla(245, 80%, 61%, .35);
	box-shadow: var(--shadow-md);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.25rem 1.5rem;
	background: none;
	border: none;
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 600;
	color: var(--heading);
	cursor: pointer;
	text-align: left;
	transition: color .2s;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
	font-size: 1.375rem;
	font-weight: 300;
	color: var(--primary);
	flex-shrink: 0;
	transition: transform .25s ease;
}

.faq-item.open .faq-icon {
	transform: rotate(0deg); /* text changes to − */
}

.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s ease;
}

.faq-item.open .faq-answer {
	grid-template-rows: 1fr;
}

.faq-answer > * {
	overflow: hidden;
}

.faq-answer p {
	padding: 0 1.5rem 1.25rem;
	font-size: .9375rem;
	color: var(--text);
	line-height: 1.7;
}

/* ========================================
   Changelog
   ======================================== */
.changelog-section {
	background: var(--bg);
}

.changelog-list {
	max-width: 800px;
	margin: 0 auto;
}

.changelog-entry {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid var(--border-subtle);
}

.changelog-entry:last-child { border-bottom: none; }

.changelog-version {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	align-items: flex-start;
}

.version-tag {
	display: inline-flex;
	align-items: center;
	font-size: .9rem;
	font-weight: 800;
	font-family: var(--font-mono);
	color: var(--primary);
	background: hsla(245, 80%, 61%, .1);
	padding: .35rem .875rem;
	border-radius: var(--radius-full);
	border: 1px solid hsla(245, 80%, 61%, .2);
}

.changelog-date {
	font-size: .8rem;
	color: var(--text-muted);
	font-style: normal;
}

.changelog-body h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--heading);
	margin-bottom: 1rem;
}

.changelog-body ul {
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.changelog-body ul li {
	font-size: .9375rem;
	color: var(--text);
	padding-left: 1.25rem;
	position: relative;
	line-height: 1.55;
}

.changelog-body ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--primary);
	font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
#site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding-block: 3rem;
	margin-top: 2rem;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.footer-logo {
	width: 28px;
	height: 28px;
	border-radius: 6px;
}

.footer-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--heading);
}

.footer-nav {
	display: flex;
	gap: .25rem;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-nav a {
	padding: .375rem .75rem;
	font-size: .875rem;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	transition: color .2s;
	text-decoration: none;
}

.footer-nav a:hover { color: var(--primary); text-decoration: none; }

.footer-copy {
	font-size: .8rem;
	color: var(--text-muted);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger delay for grid children */
.features-grid .feature-card:nth-child(1) { transition-delay: .05s; }
.features-grid .feature-card:nth-child(2) { transition-delay: .1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: .15s; }
.features-grid .feature-card:nth-child(4) { transition-delay: .2s; }
.features-grid .feature-card:nth-child(5) { transition-delay: .25s; }
.features-grid .feature-card:nth-child(6) { transition-delay: .3s; }

.stats-inner .stat-item:nth-child(odd) { transition-delay: .05s; }
.stats-inner .stat-item:nth-child(even) { transition-delay: .1s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
	.install-layout {
		grid-template-columns: 1fr;
	}

	.install-info-card {
		position: static;
	}

	.changelog-entry {
		grid-template-columns: 1fr;
		gap: .875rem;
	}
}

@media (max-width: 768px) {
	.section { padding-block: 4rem; }

	.section-title { font-size: 1.75rem; }

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

	.hero-content h1 { font-size: 2rem; }

	.banner-img { max-height: 280px; }

	.hero-content { padding-block: 1.5rem; gap: .875rem; }

	.hero-meta { gap: .75rem; font-size: .75rem; }

	#main-nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		align-items: stretch;
		padding: .75rem 1rem 1rem;
		gap: .25rem;
		box-shadow: var(--shadow-lg);
	}

	#main-nav.open { display: flex; }

	#main-nav a {
		padding: .75rem 1rem;
		border-radius: var(--radius-md);
	}

	#main-nav .btn-outline {
		margin-left: 0;
		text-align: center;
		justify-content: center;
	}

	.nav-toggle { display: flex; }

	.stats-inner {
		gap: 0;
	}

	.stat-item {
		padding: 1rem 1.5rem;
	}

	.stat-divider { display: none; }

	.stats-inner {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.stat-item { border-bottom: 1px solid var(--border); }
	.stat-item:nth-child(n+4) { border-bottom: none; }

	.hero-actions .btn { padding: .65rem 1.25rem; font-size: .875rem; }
}

@media (max-width: 480px) {
	.hero-content h1 { font-size: 1.6rem; }
	.hero-desc { font-size: .9rem; }
	.hero-meta { display: none; }
	.stats-inner { grid-template-columns: repeat(2, 1fr); }
	.stat-item:nth-child(n+3) { border-bottom: none; }
	.stat-item:nth-child(3) { border-bottom: 1px solid var(--border); }
}
