/* ─── Reset & Base ──────────────────────────────────────── */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
		Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

:root {
	--bg: #0b1020;
	--text: #e5e7eb;
	--muted: #cbd5e1;
	--primary: #60a5fa;
	--accent: #c084fc;
	--card-bg: #111827;
	--border: #1f2937;
	--pill-bg: #0f172a;
	--pill-hover: #111827;
	--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body {
	color: var(--text);
	background-color: var(--bg);
	background-attachment: fixed;
	line-height: 1.7;
	padding: 24px;
	max-width: 860px;
	margin: auto;
}

/* ─── Typography ────────────────────────────────────────── */

h1 {
	font-size: 2.25rem;
	line-height: 1.2;
	margin-bottom: 12px;
}

h2 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

h3 {
	font-size: 1.125rem;
	margin: 8px 0;
}

h4 {
	font-size: 1rem;
	margin-bottom: 8px;
}

p {
	color: var(--muted);
}

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

a:hover {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
	border-radius: 6px;
}

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

section {
	margin: 48px 0;
}

section:not(#nav) {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-md);
	padding: 20px 18px;
}

/* ─── Nav ───────────────────────────────────────────────── */

section#nav {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(6px);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 0;
}

section#nav nav {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 12px;
	background: color-mix(in oklab, var(--card-bg) 92%, transparent);
	padding: 12px 16px;
	border-radius: 8px;
}

div.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-links {
	gap: 12px;
}

section#nav a {
	color: var(--primary);
	text-decoration: none;
	margin: 0 10px;
	padding: 8px 10px;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease,
		transform 0.2s ease;
}

section#nav a:hover {
	text-decoration: none;
	background-color: color-mix(in oklab, var(--primary) 10%, transparent);
	transform: translateY(-1px);
}

/* ─── Hero ──────────────────────────────────────────────── */

#top {
	position: relative;
	padding: 28px 22px;
	border-radius: 16px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

#top::before {
	content: "";
	position: absolute;
	inset: -20% -10% -30% -10%;
	pointer-events: none;
	background: radial-gradient(
		closest-side,
		color-mix(in oklab, var(--accent) 35%, transparent),
		transparent 70%
	);
	filter: blur(40px);
	opacity: 0.6;
}

.hero-content {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 1;
}

.hero-logo {
	height: 80px;
	width: 80px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-md);
	padding: 6px;
	flex-shrink: 0;
}

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

.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px 20px 20px;
	box-shadow: var(--shadow-md);
	transition: box-shadow 0.25s ease, transform 0.25s ease,
		border-color 0.25s ease;
	position: relative;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	border-color: color-mix(in oklab, var(--primary) 22%, var(--border));
}

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

.card-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
}

.role-title {
	display: block;
	font-weight: 700;
	color: var(--text);
}

.card > * + * {
	margin-top: 10px;
}

/* ─── Features Section ──────────────────────────────────── */

#features {
	padding: 24px 20px;
	border-radius: 16px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
}

#features h2 {
	font-size: 1.75rem;
	margin-bottom: 16px;
}

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

/* ─── Commands Section ──────────────────────────────────── */

#commands {
	padding: 24px 20px;
}

#commands h2 {
	font-size: 1.75rem;
	margin-bottom: 16px;
}

.command-card .card-head {
	margin-bottom: 4px;
}

.cmd {
	font-family: "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;
	font-size: 0.95rem;
	color: var(--primary);
	background: var(--pill-bg);
	border: 1px solid var(--border);
	padding: 4px 10px;
	border-radius: 6px;
}

.badge-owner {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
	background-color: color-mix(in oklab, var(--accent) 10%, var(--bg));
	border: 1px solid color-mix(in oklab, var(--accent) 20%, var(--border));
	vertical-align: middle;
}

/* ─── Tech Stack ────────────────────────────────────────── */

#tech {
	padding: 24px 20px;
}

#tech h2 {
	font-size: 1.75rem;
	margin-bottom: 16px;
}

.tech-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tech-list li {
	padding: 10px 14px;
	background: var(--pill-bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--muted);
	font-size: 0.95rem;
}

.tech-list li strong {
	color: var(--text);
}

/* ─── GitHub CTA ────────────────────────────────────────────── */

#github {
	padding: 28px 28px;
	background: linear-gradient(135deg, var(--card-bg), color-mix(in oklab, var(--card-bg) 85%, var(--accent)));
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-md);
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
	position: relative;
	overflow: hidden;
}

#github::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at 80% 50%,
		color-mix(in oklab, var(--accent) 12%, transparent),
		transparent 60%
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

#github:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
}

#github:hover::before {
	opacity: 1;
}

.github-cta {
	display: block;
	text-decoration: none;
}

.github-cta:hover {
	text-decoration: none;
}

.github-cta-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 1;
}

.github-icon {
	height: 48px;
	width: 48px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
	transition: transform 0.3s ease;
}

.github-cta:hover .github-icon {
	transform: scale(1.1) rotate(-4deg);
}

.github-cta-text {
	flex: 1;
}

.github-cta-text h2 {
	font-size: 1.35rem;
	color: var(--text);
	margin-bottom: 4px;
}

.github-cta-text p {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 0;
}

.github-arrow {
	font-size: 1.5rem;
	color: var(--primary);
	flex-shrink: 0;
	transition: transform 0.3s ease, color 0.3s ease;
}

.github-cta:hover .github-arrow {
	transform: translateX(5px);
	color: var(--accent);
}

/* ─── Logo Animation ────────────────────────────────────── */

@keyframes float {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.logo-idle {
		animation: float 6s ease-in-out infinite alternate;
	}
}

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

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

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

footer {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px 24px;
	color: var(--text);
}

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

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

@media (max-width: 600px) {
	body {
		max-width: 95%;
		padding: 16px;
	}

	section#nav {
		flex-direction: column;
		align-items: center;
		gap: 6px;
	}

	section#nav nav {
		justify-content: center;
		width: 100%;
	}

	section#nav a {
		margin: 4px 0;
	}

	.hero-content {
		flex-direction: column;
		text-align: center;
	}

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

	.tech-list {
		grid-template-columns: 1fr;
	}

	footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 0 16px 16px;
	}

	div.footer-left,
	div.footer-right {
		text-align: left;
		width: 100%;
	}

	div.footer-left {
		padding-bottom: 25px;
	}
}
