/* --- Reset & Base ---------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
	--bg: #13141B;
	--bg-surface: #1B1C27;
	--text: #E6E7ED;
	--text-sub: #A6AAC0;
	--muted: #656F9B;
	--muted-light: #7E88B8;
	--primary: #C67CFF;
	--primary-dark: #7E1BCC;
	--primary-hover: #D9A0FF;
	--accent: #D767E1;
	--gradient: linear-gradient(315deg, #5B23E1 0%, #A22FEB 100%);
	--gradient-h: linear-gradient(90deg, #9469EE, #C781FC, #D767E1);
	--divider: rgba(101, 111, 155, 0.15);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

/* --- Typography ------------------------------------------ */

h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--text);
}

h2 {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
	margin-bottom: 24px;
}

h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 6px;
}

p {
	color: var(--text-sub);
	font-size: 0.938rem;
	line-height: 1.65;
}

strong {
	color: var(--text);
	font-weight: 600;
}

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

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

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 6px;
}

/* --- Layout ---------------------------------------------- */

main {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
}

section {
	padding: 64px 0;
}

.divider {
	height: 1px;
	background: var(--divider);
	max-width: 860px;
	margin: 0 auto;
}

/* --- Header / Nav ---------------------------------------- */

header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(19, 20, 27, 0.8);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--divider);
}

nav {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-logo {
	height: 32px;
	width: 32px;
	border-radius: 8px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-links a {
	color: var(--text-sub);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
	color: var(--text);
	background: rgba(198, 124, 255, 0.08);
}

/* --- Hero ------------------------------------------------ */

.hero {
	position: relative;
	padding: 120px 0 100px;
	text-align: center;
	overflow: hidden;
}

.hero-glow {
	position: absolute;
	top: -40%;
	left: 50%;
	translate: -50% 0;
	width: 700px;
	height: 500px;
	background: radial-gradient(ellipse,
			rgba(91, 35, 225, 0.18) 0%,
			rgba(162, 47, 235, 0.08) 40%,
			transparent 70%);
	pointer-events: none;
	filter: blur(40px);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
}

.hero-eyebrow {
	display: inline-block;
	font-size: 0.813rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary);
	margin-bottom: 16px;
}

.hero h1 {
	margin-bottom: 20px;
	background: var(--gradient-h);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-desc {
	font-size: 1.125rem;
	color: var(--text-sub);
	line-height: 1.7;
	max-width: 520px;
	margin: 0 auto 32px;
}

/* --- Buttons --------------------------------------------- */

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 28px;
	font-size: 0.938rem;
	font-weight: 600;
	color: #fff;
	background: var(--gradient);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 24px rgba(91, 35, 225, 0.25);
}

.btn-primary:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 6px 28px rgba(91, 35, 225, 0.35);
	color: #fff;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
	background: transparent;
	border: 1px solid rgba(198, 124, 255, 0.25);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
	border-color: var(--primary);
	background: rgba(198, 124, 255, 0.06);
	color: var(--primary-hover);
}

/* --- Features -------------------------------------------- */

.feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 32px;
}

.feature {
	padding: 0;
}

.feature-icon {
	display: inline-block;
	font-size: 1.75rem;
	margin-bottom: 12px;
}

.feature h3 {
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.feature p {
	font-size: 0.813rem;
	line-height: 1.7;
}

.feature code {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 0.75rem;
	color: var(--primary);
	background: rgba(198, 124, 255, 0.06);
	padding: 1px 5px;
	border-radius: 4px;
}

/* --- Commands -------------------------------------------- */

.section-subtitle {
	color: var(--muted);
	font-size: 0.813rem;
	margin-bottom: 24px;
	margin-top: -16px;
}

.command-group-label {
	font-size: 0.688rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	padding: 20px 0 6px;
}

.command-group-label:first-child {
	padding-top: 0;
}

.command-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.command-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--divider);
	flex-wrap: wrap;
}

.command-row:last-child {
	border-bottom: none;
}

.cmd {
	font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
	font-size: 0.813rem;
	font-weight: 500;
	color: var(--primary);
	background: rgba(198, 124, 255, 0.06);
	padding: 4px 10px;
	border-radius: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.command-desc {
	color: var(--text-sub);
	font-size: 0.875rem;
	flex: 1;
	min-width: 0;
}

.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.688rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
	background: rgba(101, 111, 155, 0.1);
	flex-shrink: 0;
}

/* --- Tech Stack ------------------------------------------ */

.tech-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tech-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--divider);
	font-size: 0.875rem;
}

.tech-list li:last-child {
	border-bottom: none;
}

.tech-list li strong,
.tech-list li a {
	color: var(--text);
	font-weight: 600;
	flex-shrink: 0;
	min-width: 120px;
}

.tech-list li a:hover {
	text-decoration: underline;
}

.tech-list li span {
	color: var(--muted);
}

/* --- Github CTA Section----------------------------------- */

section#github div.cta-block.highlight-card	 {
	background: var(--bg-surface);
}

/* --- Highlight Card -------------------------------------- */

.highlight-card {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- GitHub CTA ------------------------------------------ */

#github {
	padding: 48px 0 64px;
}

.cta-block {
	display: flex;
	align-items: center;
	gap: 24px;
}

.cta-icon {
	height: 40px;
	width: 40px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
	opacity: 0.7;
}

.cta-block h2 {
	margin-bottom: 4px;
}

.cta-block p {
	font-size: 0.875rem;
	margin-bottom: 0;
}

.cta-block .btn-secondary {
	margin-left: auto;
	flex-shrink: 0;
}

/* --- Footer ---------------------------------------------- */

footer {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 32px;
	border-top: 1px solid var(--divider);
}

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

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

footer p {
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.6;
}

/* --- Responsive ------------------------------------------ */

@media (max-width: 860px) {
	.feature-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
}

@media (max-width: 640px) {
	main {
		padding: 0 16px;
	}

	nav {
		padding: 12px 16px;
	}

	section {
		padding: 48px 0;
	}

	.hero {
		padding: 80px 0 64px;
	}

	.hero-glow {
		width: 100%;
	}

	h1 {
		font-size: 2rem;
	}

	.hero-desc {
		font-size: 1rem;
	}

	.feature-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.command-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 12px 0;
	}

	.command-desc {
		padding-left: 0;
	}

	.tech-list li {
		flex-direction: column;
		gap: 2px;
	}

	.tech-list li strong,
	.tech-list li a {
		min-width: 0;
	}

	.cta-block {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.cta-block .btn-secondary {
		margin-left: 0;
	}

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

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