@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
	--bg: #070810;
	--panel: #0d0f1a;
	--cyan: #4dd8e8;
	--coral: #ff6b6b;
	--text: #edeef3;
	--text-dim: #6a6d7c;
	--border: #1a1c2a;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	font-family: 'Space Grotesk', sans-serif;
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
}

#canvas-holder {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1;
}
#canvas-holder canvas {
	display: block;
}
#err {
	position: fixed;
	top: 10px;
	left: 10px;
	max-width: 90vw;
	font-family: monospace;
	font-size: 12px;
	white-space: pre-wrap;
	color: #ff4444;
	z-index: 100;
}

.content {
	position: relative;
    padding-top: 45px;
	pointer-events: none;
	z-index: 2;
}
.content a,
.content button {
	pointer-events: auto;
}

nav {
	position: fixed;
	display: flex;
	top: 0;
	left: 0;
	right: 0;
	justify-content: space-between;
	align-items: center;
	padding: 28px 48px;
	pointer-events: none;
	z-index: 10;
}
.logo {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	letter-spacing: 0.1em;
	font-weight: 500;
}
.logo span {
	color: var(--cyan);
}
.nav-meta {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-align: right;
	line-height: 1.6;
	color: var(--text-dim);
}

section {
    display: flex;
	align-items: center;
	padding: 0 48px;
	min-height: 100vh;
}

.hero {
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--cyan);
}
.eyebrow .dot {
	width: 6px;
	height: 6px;
	background: var(--coral);
	border-radius: 50%;
	animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
}

h1 {
	max-width: 880px;
	font-size: clamp(42px, 7.5vw, 96px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.02em;
}
h1 .grad {
	color: transparent;
	background: linear-gradient(90deg, var(--cyan), var(--coral));
	-webkit-background-clip: text;
	background-clip: text;
}

.hero-sub {
	margin-top: 26px;
	font-size: 18px;
	max-width: 480px;
	line-height: 1.65;
	font-weight: 400;
	color: #9498a8;
}

.hero-cta {
	display: flex;
	gap: 16px;
	margin-top: 36px;
}
.btn-primary {
	pointer-events: auto;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #070810;
	background: var(--cyan);
	border: none;
	padding: 15px 28px;
	cursor: pointer;
	border-radius: 6px;
}
.btn-primary:hover {
	background: #6ee3f0;
}
.btn-secondary {
	padding: 15px 28px;
    font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 6px;
	cursor: pointer;
	pointer-events: auto;
}
.btn-secondary:hover {
	border-color: var(--cyan);
}

.scroll-hint {
	position: absolute;
	display: flex;
	bottom: 48px;
	left: 48px;
	align-items: center;
	gap: 10px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--text-dim);
}
.scroll-hint .line {
	width: 32px;
	height: 1px;
	background: var(--text-dim);
	animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
	0%,
	100% {
		opacity: 0.3;
	}
	50% {
		opacity: 1;
	}
}

.spec-section {
	justify-content: flex-end;
}
.spec-section.left {
	justify-content: flex-start;
}

.spec-block {
	padding: 34px 42px;
	max-width: 440px;
	background: rgba(7, 8, 16, 0.78);
	backdrop-filter: blur(8px);
	border-left: 1px solid rgba(77, 216, 232, 0.3);
}
.spec-section.left .spec-block {
	border-left: none;
	border-right: 1px solid rgba(255, 107, 107, 0.3);
	text-align: right;
}

.spec-index {
	margin-bottom: 16px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.15em;
	color: var(--cyan);
}
.spec-section.left .spec-index {
	color: var(--coral);
}

.spec-block h2 {
	margin-bottom: 14px;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.spec-block p {
	font-size: 15px;
	line-height: 1.7;
	font-weight: 400;
	color: #9498a8;
}

.stats-section {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.stats-section h2 {
	margin-bottom: 60px;
	max-width: 700px;
	font-size: clamp(30px, 4.5vw, 52px);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.grid-wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border);
	max-width: 1000px;
	width: 100%;
	pointer-events: auto;
}
.grid-item {
	background: var(--bg);
	padding: 30px 22px;
	text-align: left;
}
.grid-item .val {
	font-size: 34px;
	font-weight: 700;
	margin-bottom: 8px;
	font-family: 'JetBrains Mono', monospace;
	color: var(--cyan);
}
.grid-item .lbl {
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-dim);
}

.quote-section {
	justify-content: center;
}
.quote-block {
	max-width: 680px;
	text-align: center;
	pointer-events: auto;
}
.quote-block p {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.01em;
}
.quote-block .attr {
	margin-top: 24px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	color: var(--text-dim);
}

footer {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-top: 90px;
	padding-bottom: 90px;
	padding-left: 24px;
	border-top: 1px solid var(--border);
}
footer .eyebrow {
	margin-bottom: 20px;
}
footer h2 {
	margin-bottom: 32px;
	max-width: 800px;
	font-size: clamp(36px, 6vw, 76px);
	font-weight: 700;
	letter-spacing: -0.02em;
}
footer p {
	margin-bottom: 36px;
	max-width: 480px;
	font-size: 16px;
	line-height: 1.6;
	color: #9498a8;
}

/* ---- registration modal ---- */
#modal-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(4, 5, 10, 0.7);
	backdrop-filter: blur(6px);
	pointer-events: auto;
	z-index: 50;
}
#modal-overlay.open {
	display: flex;
}

#modal-box {
	position: relative;
	padding: 36px 36px 32px;
    max-width: 440px;
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
}

#modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	padding: 4px;
	font-size: 20px;
	line-height: 1;
	color: var(--text-dim);
	background: none;
	border: none;
	cursor: pointer;
}
#modal-close:hover {
	color: var(--text);
}

#modal-box h3 {
	margin-bottom: 8px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
#modal-box .modal-sub {
	margin-bottom: 28px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-dim);
}

.field {
	margin-bottom: 18px;
}
.field label {
	display: block;
	margin-bottom: 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
    color: var(--text-dim);
}
.field input {
	padding: 12px 14px;
	width: 100%;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	color: var(--text);
	background: #070810;
	border: 1px solid var(--border);
	border-radius: 6px;
	transition: border-color 0.15s ease;
	outline: none;
}
.field input:focus {
	border-color: var(--cyan);
}
.field input.error {
	border-color: var(--coral);
}
.field .error-msg {
	margin-top: 6px;
	min-height: 14px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--coral);
}

#modal-submit {
	margin-top: 10px;
	padding: 14px 28px;
	width: 100%;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #070810;
	background: var(--cyan);
	border: none;
	border-radius: 6px;
	cursor: pointer;
}
#modal-submit:hover {
	background: #6ee3f0;
}

#modal-success {
	display: none;
	padding: 12px 0;
	text-align: center;
}
#modal-success.open {
	display: block;
}
#modal-success .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	width: 52px;
	height: 52px;
	font-size: 22px;
	color: var(--cyan);
	border-radius: 50%;
	background: rgba(77, 216, 232, 0.12);
	border: 1px solid var(--cyan);
}
#modal-success h3 {
	margin-bottom: 12px;
}
#modal-success p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-dim);
}

@media (max-width: 720px) {
	.grid-wrap {
		grid-template-columns: repeat(2, 1fr);
	}
	section {
		padding: 0 24px;
	}
	nav {
		padding: 20px 24px;
	}
	.spec-block {
		padding: 26px;
		max-width: 320px;
	}
	.nav-meta {
		display: none;
	}
	.hero-cta {
		flex-direction: column;
	}
}
