:root {
	--b66-gate-bg: #04080b;
	--b66-gate-surface: rgba(7, 12, 16, 0.9);
	--b66-gate-surface-strong: rgba(4, 8, 10, 0.96);
	--b66-gate-line: rgba(113, 245, 229, 0.22);
	--b66-gate-line-soft: rgba(255, 255, 255, 0.06);
	--b66-gate-accent: #2ac9b5;
	--b66-gate-accent-soft: #b9fff8;
	--b66-gate-text: #f2fbfb;
	--b66-gate-text-muted: rgba(227, 243, 242, 0.72);
	--b66-gate-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

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

html,
body {
	min-height: 100%;
}

body.b66-gate-body {
	margin: 0;
	background:
		radial-gradient(circle at 18% 18%, rgba(77, 228, 214, 0.18), transparent 30%),
		radial-gradient(circle at 84% 14%, rgba(28, 179, 163, 0.15), transparent 28%),
		linear-gradient(180deg, #071015 0%, #04080b 100%);
	color: var(--b66-gate-text);
	font-family: "Outfit", sans-serif;
	overflow: hidden;
}

.b66-gate-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100svh;
	padding: clamp(1.2rem, 3vw, 2rem);
}

.b66-gate-backdrop,
.b66-gate-backdrop__grid,
.b66-gate-backdrop__glow {
	position: absolute;
	inset: 0;
}

.b66-gate-backdrop {
	overflow: hidden;
	pointer-events: none;
}

.b66-gate-backdrop__grid {
	background:
		repeating-linear-gradient(123deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 92px),
		linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
	opacity: 0.28;
	transform: scale(1.12);
	animation: b66GateGridDrift 20s linear infinite;
}

.b66-gate-backdrop__glow {
	filter: blur(24px);
	opacity: 0.95;
}

.b66-gate-backdrop__glow--left {
	background: radial-gradient(circle at center, rgba(89, 255, 239, 0.2) 0, rgba(89, 255, 239, 0.08) 22%, transparent 58%);
	transform: translate(-12%, -8%);
	animation: b66GateGlowLeft 14s ease-in-out infinite alternate;
}

.b66-gate-backdrop__glow--right {
	background: radial-gradient(circle at center, rgba(42, 201, 181, 0.16) 0, rgba(42, 201, 181, 0.06) 24%, transparent 56%);
	transform: translate(10%, 10%);
	animation: b66GateGlowRight 16s ease-in-out infinite alternate;
}

.b66-gate-modal {
	position: relative;
	z-index: 1;
	width: min(34rem, 100%);
	background:
		linear-gradient(180deg, rgba(9, 14, 17, 0.88), rgba(4, 8, 10, 0.96)),
		linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.01) 100%);
	border: 1px solid var(--b66-gate-line);
	box-shadow: var(--b66-gate-shadow);
	backdrop-filter: blur(24px) saturate(150%);
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	animation: b66GateModalIn 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.b66-gate-modal::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.04);
	pointer-events: none;
	clip-path: inherit;
}

.b66-gate-modal__inner {
	padding: clamp(1.65rem, 4vw, 2.55rem);
}

.b66-gate-brand {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 1.35rem;
}

.b66-gate-brand img {
	display: block;
	width: min(18rem, 62vw);
	height: auto;
}

.b66-gate-copy {
	display: grid;
	gap: 0.85rem;
	margin-bottom: 1.5rem;
}

.b66-gate-kicker {
	margin: 0;
	color: var(--b66-gate-accent-soft);
	font-family: "Barlow Condensed", sans-serif;
	font-size: 0.9rem;
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

.b66-gate-copy h1 {
	margin: 0;
	font-family: "Barlow Condensed", sans-serif;
	font-size: clamp(2.55rem, 8vw, 4.2rem);
	font-style: italic;
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-wrap: balance;
}

.b66-gate-summary {
	max-width: 29rem;
	margin: 0;
	color: var(--b66-gate-text-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.b66-gate-form {
	display: grid;
	gap: 0.9rem;
}

.b66-gate-form__label {
	color: rgba(227, 243, 242, 0.78);
	font-family: "Barlow Condensed", sans-serif;
	font-size: 0.88rem;
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
}

.b66-gate-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.85rem;
}

.b66-gate-form__input,
.b66-gate-form__button {
	min-height: 4.05rem;
	border: 1px solid var(--b66-gate-line);
	border-radius: 0;
}

.b66-gate-form__input {
	width: 100%;
	padding: 0 1.15rem;
	background:
		linear-gradient(180deg, rgba(9, 14, 17, 0.72), rgba(4, 8, 10, 0.94)),
		linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 48%, rgba(255, 255, 255, 0.01) 100%);
	color: var(--b66-gate-text);
	font-family: "Outfit", sans-serif;
	font-size: 1rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.b66-gate-form__input:focus {
	outline: none;
	border-color: rgba(89, 255, 239, 0.42);
	box-shadow:
		0 0 0 1px rgba(89, 255, 239, 0.18),
		0 0 0 6px rgba(89, 255, 239, 0.08);
}

.b66-gate-form__button {
	padding: 0 1.5rem;
	background: linear-gradient(135deg, rgba(216, 255, 248, 0.98) 0%, rgba(133, 242, 228, 0.96) 20%, rgba(41, 201, 180, 0.98) 63%, #14887a 100%);
	color: #04110f;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
	transition: filter 180ms ease, transform 180ms ease;
}

.b66-gate-form__button:hover {
	filter: saturate(1.05) brightness(1.04);
	transform: translateY(-1px);
}

.b66-gate-form__error {
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(255, 133, 133, 0.28);
	background: rgba(95, 16, 21, 0.32);
	color: #ffd7d7;
	font-size: 0.95rem;
	line-height: 1.5;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

@keyframes b66GateModalIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes b66GateGridDrift {
	from {
		transform: translate3d(0, 0, 0) scale(1.12);
	}

	to {
		transform: translate3d(-1.75rem, 1.5rem, 0) scale(1.12);
	}
}

@keyframes b66GateGlowLeft {
	from {
		transform: translate(-12%, -8%) scale(1);
		opacity: 0.82;
	}

	to {
		transform: translate(-7%, -4%) scale(1.08);
		opacity: 1;
	}
}

@keyframes b66GateGlowRight {
	from {
		transform: translate(10%, 10%) scale(1);
		opacity: 0.74;
	}

	to {
		transform: translate(6%, 5%) scale(1.12);
		opacity: 0.96;
	}
}

@media (max-width: 640px) {
	.b66-gate-stage {
		padding: 1rem;
	}

	.b66-gate-modal__inner {
		padding: 1.25rem;
	}

	.b66-gate-form__row {
		grid-template-columns: 1fr;
	}

	.b66-gate-form__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.b66-gate-backdrop__grid,
	.b66-gate-backdrop__glow,
	.b66-gate-modal {
		animation: none !important;
	}

	.b66-gate-form__button {
		transition: none;
	}
}
