:root {
	--bg: #0c0c0e;
	--bg-elev: #141417;
	--bg-elev-2: #1b1b20;
	--line: #2a2a31;
	--line-soft: #1f1f25;
	--fg: #e9e9ec;
	--fg-dim: #9a9aa3;
	--fg-mute: #6e6e77;
	--red: #d4202f;
	--red-bright: #ec1b27;
	--red-glow: rgba(212, 32, 47, 0.45);
	--silver-1: #f4f4f6;
	--silver-2: #b7b7c0;
	--radius: 6px;
	--maxw: 1200px;
	--header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The hidden attribute must win even on elements we give an explicit display (modal, banner,
   toggled buttons). Without this, display:flex/inline-flex would override [hidden]. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
	background:
		radial-gradient(1200px 600px at 50% -12%, rgba(212, 32, 47, 0.07), transparent 60%),
		var(--bg);
	color: var(--fg);
	font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.siteHeader {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 0 28px;
	background: linear-gradient(180deg, rgba(18, 18, 21, 0.96), rgba(12, 12, 14, 0.9));
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

.brand { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.brandLogo { height: 32px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }
.brandTag {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	letter-spacing: 2px;
	color: var(--fg-dim);
	padding-left: 2px;
}
.tagDot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 7px var(--red-glow); }

.mainNav { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.navLink {
	position: relative;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--fg-dim);
	padding: 6px 2px;
	transition: color 0.15s;
}
.navLink:hover { color: var(--fg); }
.navLink.isActive { color: var(--fg); }
.navLink.isActive::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	background: var(--red);
	box-shadow: 0 0 8px var(--red-glow);
}

.socials { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.socialLink { color: var(--fg-mute); display: inline-flex; transition: color 0.15s, transform 0.15s; }
.socialLink:hover { color: var(--fg); transform: translateY(-1px); }
.socialLink svg { width: 18px; height: 18px; display: block; fill: currentColor; }

.stage { max-width: var(--maxw); margin: 0 auto; padding: 28px; }
/* The live/watch page uses a wider canvas for its three-column layout. */
.stage.stageWide { max-width: 1850px; }

/* ---------- Contact page ---------- */
.contactWrap { display: flex; justify-content: center; padding: 48px 20px; }
.contactCard {
	width: 100%;
	max-width: 560px;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 30px;
}
.contactTitle { font-size: 26px; font-weight: 700; letter-spacing: 0.5px; }
.contactSub { color: var(--fg-dim); font-size: 14px; margin: 8px 0 24px; }

.contactForm .formRow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contactForm label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); }
.contactForm input, .contactForm textarea {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font-family: inherit;
	font-size: 14px;
	padding: 10px 12px;
	width: 100%;
}
.contactForm textarea { resize: vertical; min-height: 130px; }
.contactForm input:focus, .contactForm textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 2px rgba(212, 32, 47, 0.18);
}
.contactSubmit { width: 100%; justify-content: center; margin-top: 6px; }

.fieldError { color: var(--red-bright); font-size: 12px; }
.errorBox {
	background: rgba(212, 32, 47, 0.1);
	border: 1px solid rgba(212, 32, 47, 0.4);
	color: var(--red-bright);
	border-radius: var(--radius);
	padding: 11px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}

/* Honeypot: kept in the DOM for bots but pushed off-screen and out of the tab order. */
.hpField { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 11px 18px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--bg-elev-2);
	color: var(--fg);
	transition: all 0.15s;
}
.btn:hover { border-color: var(--fg-mute); }
.btnPrimary { background: var(--red); border-color: var(--red); color: #fff; }
.btnPrimary:hover { background: var(--red-bright); border-color: var(--red-bright); }

.contactSent { text-align: center; }
.contactSent .contactSub { margin-bottom: 26px; }
.sentMark {
	width: 64px;
	height: 64px;
	margin: 4px auto 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212, 32, 47, 0.12);
	border: 1px solid var(--red);
}
.sentMark svg { width: 32px; height: 32px; fill: var(--red-bright); }

/* ---------- Beta banner ---------- */
.betaBanner {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	padding: 12px 16px;
	background: linear-gradient(90deg, rgba(212, 32, 47, 0.13), rgba(212, 32, 47, 0.03));
	border: 1px solid rgba(212, 32, 47, 0.35);
	border-radius: var(--radius);
}
.betaTag {
	flex: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	background: var(--red);
	padding: 3px 9px;
	border-radius: 4px;
}
.betaText { font-size: 13px; line-height: 1.5; color: var(--fg-dim); margin: 0; }
.betaText strong { color: var(--fg); }
.betaCta { background: none; border: none; padding: 0; font: inherit; color: var(--red-bright); cursor: pointer; text-decoration: underline; }
.betaCta:hover { color: var(--fg); }
.betaDismiss { flex: none; margin-left: auto; background: none; border: none; cursor: pointer; color: var(--fg-mute); padding: 4px; line-height: 0; }
.betaDismiss:hover { color: var(--fg); }
.betaDismiss svg { width: 18px; height: 18px; display: block; }

/* ---------- Modal ---------- */
body.modalOpen { overflow: hidden; }
.modalOverlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(4, 4, 6, 0.72);
	backdrop-filter: blur(3px);
}
.modalDialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 32px 36px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.modalClose { position: absolute; top: 18px; right: 18px; background: none; border: none; cursor: pointer; color: var(--fg-mute); padding: 4px; line-height: 0; }
.modalClose:hover { color: var(--fg); }
.modalClose svg { width: 22px; height: 22px; display: block; }
.modalTitle { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--silver-1); }
.modalRule { width: 54px; height: 3px; margin: 10px auto 16px; border-radius: 2px; background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.modalSub { text-align: center; color: var(--fg-dim); font-size: 14px; line-height: 1.5; max-width: 470px; margin: 0 auto 26px; }

/* Modal reuses the .contactForm field styles; add the subject <select> to match. */
.contactForm select {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font-family: inherit;
	font-size: 14px;
	padding: 10px 38px 10px 12px;
	width: 100%;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239a9aa3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}
.contactForm select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(212, 32, 47, 0.18); }
.contactForm label .req { color: var(--red); }
.contactForm label .optional { color: var(--fg-mute); text-transform: none; letter-spacing: 0; }

.formError {
	background: rgba(212, 32, 47, 0.1);
	border: 1px solid rgba(212, 32, 47, 0.4);
	color: var(--red-bright);
	border-radius: var(--radius);
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 14px;
}
.modalActions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.contactSend .sendIcon { width: 15px; height: 15px; fill: currentColor; }
.contactSend.isSending { opacity: 0.65; cursor: default; }
.modalPrivacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 12px; color: var(--fg-mute); }
.modalPrivacy svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

.contactDone { text-align: center; padding: 8px 0 4px; }
.contactDone .doneMark {
	width: 60px; height: 60px; margin: 0 auto 16px;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: rgba(212, 32, 47, 0.12); border: 1px solid var(--red);
}
.contactDone .doneMark svg { width: 30px; height: 30px; fill: var(--red-bright); }
.contactDone h3 { font-size: 20px; color: var(--silver-1); margin-bottom: 8px; }
.contactDone p { color: var(--fg-dim); font-size: 14px; margin-bottom: 22px; }

@media (max-width: 560px) {
	.modalDialog { padding: 26px 20px; }
	.betaText { font-size: 12px; }
}
