:root {
	--bg: #0a0a0b;
	--surface: #141416;
	--border: #232328;
	--border-hover: #3a3a42;
	--text: #e4e4e7;
	--text-muted: #8e8e96;
	--accent: #a78bfa;
	--accent-dim: #7c5cbf;
	--green: #4ade80;
	--red: #f87171;
	--yellow: #fbbf24;
	--blue: #60a5fa;
	--mono: "SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
	font-family: var(--sans);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ─── Header ───────────────────────────────────── */

header {
	padding: 80px 0 64px;
	text-align: center;
}

header h1 {
	font-family: var(--mono);
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: var(--text);
}

.tagline {
	margin-top: 12px;
	font-size: 1.125rem;
	color: var(--text-muted);
}

.links {
	margin-top: 24px;
}

.gh-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	text-decoration: none;
	font-family: var(--mono);
	font-size: 0.875rem;
	padding: 8px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: all 0.15s ease;
}

.gh-link:hover {
	color: var(--text);
	border-color: var(--border-hover);
	background: var(--surface);
}

/* ─── Package Cards ────────────────────────────── */

.packages {
	display: grid;
	gap: 12px;
}

.card {
	display: block;
	text-decoration: none;
	color: var(--text);
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	transition: all 0.15s ease;
}

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

.card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.card-icon {
	font-family: var(--mono);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(167, 139, 250, 0.1);
	border-radius: 6px;
	flex-shrink: 0;
}

.card h2 {
	font-family: var(--mono);
	font-size: 1rem;
	font-weight: 600;
}

.card p {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.install {
	display: inline-block;
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--accent-dim);
	background: rgba(167, 139, 250, 0.06);
	padding: 4px 10px;
	border-radius: 4px;
}

/* ─── Detail Sections ──────────────────────────── */

.detail {
	margin-top: 64px;
	padding-top: 64px;
	border-top: 1px solid var(--border);
}

.detail h2 {
	font-family: var(--mono);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.detail > p {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 20px;
}

.detail p code {
	font-family: var(--mono);
	font-size: 0.85em;
	color: var(--accent);
	background: rgba(167, 139, 250, 0.1);
	padding: 2px 6px;
	border-radius: 3px;
}

pre {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px 24px;
	overflow-x: auto;
	font-size: 0.85rem;
	line-height: 1.7;
}

pre code {
	font-family: var(--mono);
	color: var(--text);
}

.kw {
	color: var(--accent);
}

.str {
	color: var(--green);
}

.num {
	color: var(--yellow);
}

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

/* ─── Footer ───────────────────────────────────── */

footer {
	margin-top: 80px;
	padding: 32px 0;
	border-top: 1px solid var(--border);
	text-align: center;
}

footer p {
	color: var(--text-muted);
	font-size: 0.85rem;
}

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

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

/* ─── Responsive ───────────────────────────────── */

@media (max-width: 600px) {
	header {
		padding: 48px 0 40px;
	}

	header h1 {
		font-size: 2.25rem;
	}

	.card {
		padding: 20px;
	}

	pre {
		padding: 16px;
		font-size: 0.8rem;
	}

	.detail {
		margin-top: 48px;
		padding-top: 48px;
	}
}
