:root {
	--bg-0: #050810;
	--bg-1: #0a1020;
	--bg-2: #141d33;
	--text: #eef3ff;
	--muted: #b7c4df;
	--soft: #8fa2cb;
	--accent: #a893ff;
	--accent-2: #4fd7ff;
	--glass: rgba(255, 255, 255, 0.07);
	--glass-strong: rgba(255, 255, 255, 0.13);
	--stroke: rgba(255, 255, 255, 0.2);
	--shadow: 0 24px 70px rgba(3, 8, 21, 0.55);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	color: var(--text);
	font-family: Inter, "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.55;
	background:
		radial-gradient(1100px 540px at 8% -12%, rgba(168, 147, 255, 0.24), transparent 60%),
		radial-gradient(900px 420px at 90% -8%, rgba(79, 215, 255, 0.2), transparent 60%),
		linear-gradient(160deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.08), transparent 55%);
	opacity: 0.28;
	z-index: -3;
}

.ambient {
	position: fixed;
	border-radius: 50%;
	filter: blur(18px);
	pointer-events: none;
	z-index: -2;
	animation: drift 18s ease-in-out infinite alternate;
}

.ambient-one {
	width: 30rem;
	height: 30rem;
	top: -10rem;
	left: -8rem;
	background: radial-gradient(circle at 35% 35%, rgba(168, 147, 255, 0.4), rgba(168, 147, 255, 0.04));
}

.ambient-two {
	width: 28rem;
	height: 28rem;
	right: -8rem;
	top: 22rem;
	background: radial-gradient(circle at 35% 35%, rgba(79, 215, 255, 0.34), rgba(79, 215, 255, 0.04));
	animation-duration: 22s;
	animation-direction: alternate-reverse;
}

.container {
	width: min(1180px, 92%);
	margin-inline: auto;
}

.site-header {
	position: relative;
	top: 0;
	z-index: 110;
	padding-top: 0.8rem;
}

.glass-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.76rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--stroke);
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.03));
	backdrop-filter: blur(24px) saturate(150%);
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.glass-nav::after {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(118deg, rgba(255, 255, 255, 0.22), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.12));
	opacity: 0.38;
	pointer-events: none;
}

.brand {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.brand-mark {
	width: 0.62rem;
	height: 0.62rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 6px rgba(168, 147, 255, 0.18);
}

.nav-links {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.42rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: inline-block;
	color: var(--text);
	text-decoration: none;
	font-size: 0.92rem;
	padding: 0.5rem 0.88rem;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.35);
}

main {
	padding-bottom: 4rem;
}

h1,
h2,
h3 {
	line-height: 1.14;
	color: var(--text);
}

h1 {
	margin: 0;
	font-size: clamp(2.2rem, 5.2vw, 4.3rem);
	max-width: 14ch;
	letter-spacing: -0.02em;
}

.glass-panel {
	position: relative;
	background: linear-gradient(140deg, var(--glass-strong), var(--glass));
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 1.15rem;
	backdrop-filter: blur(20px) saturate(145%);
	-webkit-backdrop-filter: blur(20px) saturate(145%);
	box-shadow: 0 20px 46px rgba(3, 8, 22, 0.46);
	overflow: hidden;
}

.glass-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%);
	opacity: 0.24;
	pointer-events: none;
}

.footer {
	padding: 1.4rem 0 2rem;
	color: var(--soft);
	font-size: 0.9rem;
}

.footer-links-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.footer-links {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 0.08rem;
}

@keyframes drift {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	100% {
		transform: translate3d(48px, -34px, 0) scale(1.08);
	}
}

@media (max-width: 860px) {
	.site-header {
		top: 0;
	}

	.glass-nav {
		flex-wrap: wrap;
		border-radius: 1.2rem;
	}

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

	.nav-links {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (max-width: 620px) {
	.container {
		width: min(1180px, 94%);
	}
	h1 {
		font-size: clamp(1.9rem, 10vw, 3.2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
