:root {
	--bg0: #07090c;
	--bg1: #0e141c;
	--ink: #e8eef6;
	--muted: #8b9bb0;
	--line: rgba(232, 238, 246, 0.12);
	--accent: #3dd6c6;
	--accent-dim: rgba(61, 214, 198, 0.18);
	--font-display: "Syne", "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", "Consolas", monospace;
	--pad: clamp(1.25rem, 4vw, 3.5rem);
	--max: 72rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	background: var(--bg0);
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.55;
	overflow-x: hidden;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.28s ease, opacity 0.28s ease, transform 0.28s ease, text-underline-offset 0.28s ease;
}

a:hover {
	color: #7ff0e4;
	text-underline-offset: 0.32em;
}

.noise {
	pointer-events: none;
	position: fixed;
	inset: 0;
	z-index: 0;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-nav,
main,
.site-foot {
	position: relative;
	z-index: 1;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem var(--pad);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(8px);
	background: rgba(7, 9, 12, 0.45);
	position: sticky;
	top: 0;
	z-index: 10;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.site-nav.is-scrolled {
	background: rgba(7, 9, 12, 0.88);
	border-bottom-color: var(--line);
}

.nav-brand {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--ink);
	text-decoration: none;
	transition:
		color 0.3s ease,
		letter-spacing 0.3s ease,
		text-shadow 0.3s ease,
		transform 0.3s ease;
}

.nav-brand:hover {
	color: var(--accent);
	letter-spacing: 0.1em;
	text-shadow: 0 0 18px rgba(61, 214, 198, 0.35);
	transform: translateY(-1px);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.nav-links a {
	position: relative;
	color: var(--muted);
	text-decoration: none;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding-bottom: 0.2rem;
	transition: color 0.28s ease;
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.nav-links a:hover {
	color: var(--ink);
}

.nav-links a:hover::after {
	transform: scaleX(1);
}

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 6rem var(--pad) 4rem;
	isolation: isolate;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 55% at 70% 20%, rgba(61, 214, 198, 0.16), transparent 55%),
		radial-gradient(ellipse 50% 40% at 15% 80%, rgba(232, 93, 76, 0.12), transparent 50%),
		linear-gradient(165deg, #0a1018 0%, var(--bg0) 55%, #050608 100%);
	animation: heroPulse 12s ease-in-out infinite alternate;
}

.hero-shell {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: clamp(4.5rem, 10vh, 7rem) clamp(1rem, 3vw, 2.5rem) 2rem;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	font-family: var(--font-mono);
	font-size: clamp(0.68rem, 1.15vw, 0.82rem);
	line-height: 1.55;
	letter-spacing: 0.02em;
	color: rgba(61, 214, 198, 0.34);
	white-space: pre-wrap;
	word-break: break-word;
	pointer-events: none;
	user-select: none;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.4) 58%, transparent 94%);
}

.hero-shell::-webkit-scrollbar {
	display: none;
}

.hero-shell .shell-prompt {
	color: rgba(139, 155, 176, 0.42);
}

.hero-shell .shell-cmd {
	color: rgba(61, 214, 198, 0.5);
}

.hero-shell .shell-dim {
	color: rgba(139, 155, 176, 0.28);
}

.hero-shell .shell-ok {
	color: rgba(61, 214, 198, 0.48);
}

.hero-shell .shell-warn {
	color: rgba(232, 93, 76, 0.42);
}

.hero-shell .shell-caret {
	display: inline-block;
	width: 0.55ch;
	height: 1em;
	margin-left: 1px;
	vertical-align: text-bottom;
	background: rgba(61, 214, 198, 0.55);
	animation: shellBlink 1s steps(1, end) infinite;
}

@keyframes heroPulse {
	from { filter: saturate(1); }
	to { filter: saturate(1.25) brightness(1.05); }
}

.hero-mark {
	margin-bottom: 1.5rem;
	opacity: 0;
	transform: translateY(12px);
	animation: rise 0.9s ease forwards 0.15s;
}

.hero-mark img {
	width: clamp(88px, 14vw, 140px);
	height: auto;
	display: block;
	filter: drop-shadow(0 12px 40px rgba(61, 214, 198, 0.25));
}

.hero-kicker {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	opacity: 0;
	animation: rise 0.9s ease forwards 0.25s;
}

.hero-brand {
	margin: 0;
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(3.2rem, 12vw, 7.5rem);
	line-height: 0.92;
	letter-spacing: -0.03em;
	color: var(--ink);
	cursor: default;
	opacity: 0;
	animation: rise 0.9s ease forwards 0.35s;
	transition:
		color 0.35s ease,
		letter-spacing 0.35s ease,
		text-shadow 0.35s ease,
		transform 0.35s ease;
}

.hero-brand:hover {
	color: #7ff0e4;
	letter-spacing: 0.02em;
	text-shadow:
		0 0 28px rgba(61, 214, 198, 0.45),
		0 8px 36px rgba(61, 214, 198, 0.18);
	transform: translateY(-3px);
}

@keyframes shellBlink {
	0%,
	49% {
		opacity: 0.95;
	}
	50%,
	100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-shell .shell-caret {
		animation: none;
		opacity: 0.55;
	}
}

.hero-tagline {
	margin: 1rem 0 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.15rem, 3vw, 1.75rem);
	color: var(--ink);
	opacity: 0;
	animation: rise 0.9s ease forwards 0.45s;
}

.hero-lead {
	margin: 1rem 0 0;
	max-width: 36rem;
	color: var(--muted);
	opacity: 0;
	animation: rise 0.9s ease forwards 0.55s;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 2rem;
	opacity: 0;
	animation: rise 0.9s ease forwards 0.65s;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: none;
	}
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.2rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	border: 1px solid var(--line);
	transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #04110f;
	font-weight: 600;
}

.btn-primary:hover {
	background: #7ff0e4;
	border-color: #7ff0e4;
	color: #04110f;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(61, 214, 198, 0.22);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: none;
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
}

.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}

.section {
	padding: 5rem var(--pad);
	max-width: var(--max);
	margin: 0 auto;
	border-top: 1px solid var(--line);
}

.section-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	letter-spacing: -0.02em;
}

.section-lead {
	margin: 0 0 1.75rem;
	max-width: 40rem;
	color: var(--muted);
}

.plain-list,
.link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.plain-list li {
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
	max-width: 40rem;
}

.plain-list li:last-child {
	border-bottom: 1px solid var(--line);
}

.activity-list .label {
	display: inline-block;
	min-width: 7.5rem;
	margin-right: 0.75rem;
	color: var(--accent);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.link-list li {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 0.5rem 1.5rem;
	padding: 1rem 0;
	border-top: 1px solid var(--line);
	align-items: baseline;
	transition: background 0.28s ease, padding-left 0.28s ease;
}

.link-list li:last-child {
	border-bottom: 1px solid var(--line);
}

.link-list li:hover {
	background: rgba(61, 214, 198, 0.05);
	padding-left: 0.45rem;
}

.link-list a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ink);
	text-decoration: none;
	transition: color 0.28s ease, transform 0.28s ease;
}

.link-list a:hover {
	color: var(--accent);
	transform: translateX(2px);
}

.link-list span {
	color: var(--muted);
	font-size: 0.85rem;
	transition: color 0.28s ease;
}

.link-list li:hover span {
	color: rgba(232, 238, 246, 0.72);
}

.plain-list a {
	transition: color 0.28s ease, text-underline-offset 0.28s ease;
}

.section.section-join {
	background: linear-gradient(180deg, transparent, var(--accent-dim));
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 5.5rem var(--pad) 6rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	box-sizing: border-box;
}

.join-shell {
	width: min(36rem, 100%);
	max-width: 36rem;
	margin: 0 auto;
	text-align: left;
}

.join-head {
	text-align: center;
	margin-bottom: 2rem;
}

.join-head .section-title {
	margin-bottom: 0.65rem;
}

.join-head .section-lead {
	margin: 0 auto;
	max-width: 28rem;
}

.join-form {
	display: grid;
	gap: 1.1rem;
	padding: 1.75rem 1.5rem 1.5rem;
	border: 1px solid var(--line);
	background: rgba(7, 9, 12, 0.55);
}

.join-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.join-form .hp {
	position: absolute;
	left: -10000px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.join-form .field {
	display: grid;
	gap: 0.45rem;
}

.join-form .field span {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.28s ease;
}

.join-form .field:focus-within span {
	color: var(--accent);
}

.join-form input,
.join-form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--line);
	background: rgba(14, 20, 28, 0.85);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.9rem;
	border-radius: 0;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		background 0.3s ease,
		transform 0.3s ease;
}

.join-form input::placeholder,
.join-form textarea::placeholder {
	color: rgba(139, 155, 176, 0.55);
	transition: opacity 0.28s ease, color 0.28s ease;
}

.join-form input:hover,
.join-form textarea:hover {
	border-color: rgba(232, 238, 246, 0.28);
}

.join-form input:focus,
.join-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: rgba(14, 20, 28, 1);
	box-shadow:
		0 0 0 1px rgba(61, 214, 198, 0.28),
		0 10px 28px rgba(61, 214, 198, 0.08);
	transform: translateY(-1px);
}

.join-form input:focus::placeholder,
.join-form textarea:focus::placeholder {
	opacity: 0.35;
}

.join-form textarea {
	resize: vertical;
	min-height: 7rem;
}

.join-referrer {
	margin-top: 0.35rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--line);
}

.join-referrer-label {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.join-referrer-label span {
	text-transform: none;
	letter-spacing: 0;
	opacity: 0.75;
}

.join-submit {
	width: 100%;
	margin-top: 0.35rem;
	cursor: pointer;
	padding: 0.85rem 1.2rem;
}

.join-status {
	margin: 0.15rem 0 0;
	min-height: 1.4em;
	text-align: center;
	font-size: 0.85rem;
	color: var(--muted);
}

.join-status.is-ok {
	color: var(--accent);
}

.join-status.is-error {
	color: #e85d4c;
}

.site-foot {
	padding: 2rem var(--pad) 3rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.8rem;
}

.site-foot p {
	margin: 0.25rem 0;
}

.site-foot strong {
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 800;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-foot strong:hover {
	color: var(--accent);
	text-shadow: 0 0 16px rgba(61, 214, 198, 0.35);
}

@media (max-width: 720px) {
	.link-list li {
		grid-template-columns: 1fr;
	}

	.activity-list .label {
		display: block;
		margin: 0 0 0.25rem;
	}

	.join-row {
		grid-template-columns: 1fr;
	}

	.join-form {
		padding: 1.35rem 1.1rem 1.2rem;
	}
}
