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

:root {
	--bg: #09090b;
	--bg-elevated: #111114;
	--bg-card: rgba(255, 255, 255, 0.03);
	--border: rgba(255, 255, 255, 0.08);
	--text: #fafafa;
	--text-muted: #a1a1aa;
	--accent: #8b5cf6;
	--accent-2: #00ffa6;
	--gradient: linear-gradient(135deg, #c084fc 0%, #8b5cf6 35%, #6366f1 70%, #00ffa6 100%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	--header-h: 72px;
	--shell: min(1120px, calc(100% - 2rem));
}

html {
	scroll-behavior: smooth;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
	animation: none !important;
	transition: none !important;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.glow {
	position: fixed;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.35;
}

.glow-a {
	width: 480px;
	height: 480px;
	background: #7c3aed;
	top: -120px;
	left: -80px;
}

.glow-b {
	width: 420px;
	height: 420px;
	background: #00ffa6;
	bottom: 10%;
	right: -100px;
	opacity: 0.15;
}

.site-header,
main,
.site-footer {
	position: relative;
	z-index: 1;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border);
	background: rgba(9, 9, 11, 0.72);
	backdrop-filter: blur(16px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	font-size: 1.05rem;
}

.brand-mark {
	filter: drop-shadow(0 0 8px rgba(0, 255, 166, 0.35));
}

.nav-links {
	display: none;
	align-items: center;
	gap: 1.4rem;
	margin-left: 1.5rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}

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

.header-actions {
	display: none;
	align-items: center;
	gap: 0.6rem;
	margin-left: auto;
}

.lang-switch {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 2px;
}

.lang-btn {
	border: 0;
	background: transparent;
	color: var(--text-muted);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
	background: rgba(139, 92, 246, 0.25);
	color: var(--text);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.72rem 1.25rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-sm {
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
}

.btn-primary {
	background: var(--gradient);
	color: #09090b;
	box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--border);
	color: var(--text);
}

.btn-ghost {
	border-color: var(--border);
	color: var(--text-muted);
	background: transparent;
}

.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	margin-left: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	height: 2px;
	width: 18px;
	margin-inline: auto;
	background: var(--text);
	border-radius: 2px;
}

.mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem 1rem 1rem;
	border-bottom: 1px solid var(--border);
	background: rgba(9, 9, 11, 0.95);
}

.mobile-nav[hidden] {
	display: none;
}

.mobile-nav a {
	padding: 0.65rem 0.5rem;
	color: var(--text-muted);
}

.hero {
	padding: 4.5rem 0 3rem;
	text-align: center;
}

.eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text-muted);
	font-size: 0.82rem;
	background: rgba(255, 255, 255, 0.02);
}

.hero-title {
	margin: 0;
	font-size: clamp(2.2rem, 6vw, 4.2rem);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.03em;
	max-width: 14ch;
	margin-inline: auto;
}

.hero-title span {
	display: block;
}

.gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-lead {
	max-width: 42rem;
	margin: 1.25rem auto 0;
	color: var(--text-muted);
	font-size: 1.08rem;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 2rem;
}

.hero-meta {
	margin-top: 1.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
	max-width: 40rem;
	margin-inline: auto;
}

.marquee-wrap {
	border-block: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.015);
	padding: 0.85rem 0;
	overflow: hidden;
}

.marquee-track {
	display: flex;
	width: max-content;
	gap: 2rem;
	animation: marquee 40s linear infinite;
	white-space: nowrap;
	color: var(--text-muted);
	font-size: 0.88rem;
}

.marquee-track span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.marquee-track span::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-2);
	opacity: 0.7;
}

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.section-head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.5rem;
}

.section-head h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	letter-spacing: -0.02em;
}

.section-head p {
	margin: 0;
	color: var(--text-muted);
}

.pillars,
.features,
.projects,
.services,
.repos,
.faq {
	padding: 5rem 0;
}

.pillar-grid,
.bento,
.project-grid,
.service-grid {
	display: grid;
	gap: 1rem;
}

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

.pillar-card,
.bento-card,
.project-card,
.service-card,
.repo-item {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	padding: 1.35rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover,
.bento-card:hover,
.project-card:hover,
.service-card:hover,
.repo-item:hover {
	border-color: rgba(139, 92, 246, 0.35);
	transform: translateY(-2px);
}

.pillar-icon {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.pillar-card h3,
.bento-card h3,
.project-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.pillar-card p,
.bento-card p,
.project-card p,
.service-card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}

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

.bento-wide {
	grid-column: auto;
}

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

.project-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 100%;
}

.project-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.chip {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	border: 1px solid var(--border);
	color: var(--text-muted);
	background: rgba(255, 255, 255, 0.02);
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

.text-link {
	color: var(--accent-2);
	font-weight: 600;
	font-size: 0.88rem;
}

.text-link:hover {
	text-decoration: underline;
}

.service-grid {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.service-card {
	padding: 1rem 1.1rem;
}

.service-card h3 {
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
	font-family: ui-monospace, monospace;
	color: var(--accent-2);
}

.service-card p {
	font-size: 0.82rem;
}

.repo-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.repo-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
	padding: 1rem 1.15rem;
}

.repo-item h3 {
	margin: 0;
	font-size: 0.98rem;
}

.repo-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	color: var(--text-muted);
	font-size: 0.82rem;
}

.repos-more {
	text-align: center;
	margin-top: 1.5rem;
}

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

.faq-list {
	max-width: 720px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.faq-item {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	padding: 0.2rem 1rem;
}

.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.85rem 0;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item p {
	margin: 0 0 1rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.cta-band {
	padding: 0 0 5rem;
}

.cta-inner {
	text-align: center;
	padding: 3rem 2rem;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 4px);
	background:
		radial-gradient(circle at top, rgba(139, 92, 246, 0.12), transparent 55%),
		var(--bg-elevated);
	box-shadow: var(--shadow);
}

.cta-inner h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-inner p {
	margin: 0 auto 1.5rem;
	max-width: 36rem;
	color: var(--text-muted);
}

.site-footer {
	border-top: 1px solid var(--border);
	padding: 2.5rem 0 3rem;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.footer-brand {
	margin: 0;
	font-weight: 700;
}

.footer-muted,
.footer-copy {
	margin: 0.25rem 0 0;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

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

@media (min-width: 720px) {
	.nav-links,
	.header-actions {
		display: flex;
	}

	.menu-toggle {
		display: none;
	}

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

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

	.bento-wide {
		grid-column: span 2;
	}

	.project-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.repo-item {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.footer-inner {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	.footer-copy {
		width: 100%;
	}
}

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