:root {
	--marketing-bg: #020923;
	--marketing-surface: #0a1332;
	--marketing-surface-alt: #0f1a3d;
	--marketing-border: rgba(255, 255, 255, 0.08);
	--marketing-primary: #6366f1;
	--marketing-primary-hover: #818cf8;
	--marketing-text: #e2e8f0;
	--marketing-muted: #94a3b8;
}

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

body.marketing-body {
	background-color: var(--marketing-bg);
	color: var(--marketing-text);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	--bs-body-bg: var(--marketing-bg);
	--bs-body-color: var(--marketing-text);
	--bs-secondary-color: #a8b8cc;
	--bs-tertiary-color: #8fa3ba;
	--bs-emphasis-color: #fff;
}

.marketing-nav {
	background: rgba(2, 9, 35, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--marketing-border);
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.marketing-nav .nav-link {
	color: var(--marketing-muted);
}

.marketing-nav .nav-link:hover {
	color: #fff;
}

.marketing-nav .navbar-brand {
	color: #fff;
}

.marketing-modal .form-check-label {
	color: #c8d4e3;
}

.marketing-modal .form-check-label a {
	color: var(--marketing-primary-hover);
}

.marketing-hero {
	background: radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.18), transparent 55%),
		radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.08), transparent 45%);
	border-bottom: 1px solid var(--marketing-border);
	padding: 3rem 0 2.5rem;
}

.marketing-body .text-muted {
	color: var(--marketing-muted) !important;
}

.marketing-body .lead {
	color: #c8d4e3;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.65;
	max-width: 38rem;
}

.section-subtitle {
	color: var(--marketing-muted);
	font-size: 1.05rem;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.hero-visual {
	position: relative;
	width: 100%;
	max-width: 340px;
	aspect-ratio: 1;
}

.hero-visual-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(129, 140, 248, 0.25);
}

.hero-visual-ring:nth-child(2) {
	inset: 12%;
	border-color: rgba(129, 140, 248, 0.18);
}

.hero-visual-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--marketing-primary), #4f46e5);
	box-shadow: 0 0 48px rgba(99, 102, 241, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.04em;
}

.hero-visual-node {
	position: absolute;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--marketing-surface-alt);
	border: 1px solid rgba(129, 140, 248, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.hero-visual-node:nth-child(4) { top: 6%; left: 50%; transform: translateX(-50%); }
.hero-visual-node:nth-child(5) { bottom: 12%; left: 8%; }
.hero-visual-node:nth-child(6) { bottom: 12%; right: 8%; }

.min-vh-75 {
	min-height: auto;
}

.marketing-live-badge {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.3);
	font-weight: 500;
	padding: 0.5rem 0.85rem;
}

.marketing-section {
	padding: 3.5rem 0;
}

.marketing-hero + .marketing-section {
	padding-top: 2.5rem;
}

.marketing-section-alt {
	background: var(--marketing-surface);
}

.section-title {
	color: #fff;
	font-weight: 700;
}

.feature-card,
.game-card,
.pricing-card,
.testimonial-card {
	background: var(--marketing-surface-alt);
	border: 1px solid var(--marketing-border);
	border-radius: 1rem;
	padding: 1.5rem;
}

.feature-card h3,
.game-card h3,
.pricing-card h3 {
	font-size: 1.1rem;
	color: #fff;
	margin-bottom: 0.75rem;
}

.feature-card p,
.game-card p,
.pricing-card .pricing-period,
.testimonial-card .text-muted {
	color: #b8c5d6 !important;
}

.feature-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: rgba(99, 102, 241, 0.15);
	color: var(--marketing-primary-hover);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.game-icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.game-icon-placeholder {
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 1rem;
	background: rgba(99, 102, 241, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.pricing-card {
	position: relative;
}

.pricing-card-highlighted {
	border-color: rgba(99, 102, 241, 0.5);
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.pricing-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: var(--marketing-primary);
	color: #fff;
	font-size: 0.75rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}

.pricing-amount {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
}

.pricing-features {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.pricing-features li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--marketing-border);
	color: #b8c5d6;
}

.pricing-features li:last-child {
	border-bottom: 0;
}

.testimonial-quote {
	font-size: 1.05rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	color: #dce4ef;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.marketing-cta-section {
	border-top: 1px solid var(--marketing-border);
}

.marketing-cta,
.btn-primary.marketing-cta {
	background: var(--marketing-primary);
	border-color: var(--marketing-primary);
}

.marketing-cta:hover,
.btn-primary.marketing-cta:hover {
	background: var(--marketing-primary-hover);
	border-color: var(--marketing-primary-hover);
}

.marketing-footer {
	border-top: 1px solid var(--marketing-border);
	background: var(--marketing-surface);
	margin-top: auto;
}

.marketing-modal {
	background: var(--marketing-surface-alt);
	color: var(--marketing-text);
	border: 1px solid var(--marketing-border);
}

.marketing-modal .modal-title {
	color: #fff;
}

.marketing-modal p {
	color: #b8c5d6;
}

.marketing-auth-tabs {
	border-bottom-color: var(--marketing-border);
}

.marketing-auth-tabs .nav-link {
	color: #8fa3ba;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	padding: 0.5rem 1rem;
}

.marketing-auth-tabs .nav-link:hover {
	color: #cbd5e1;
	border-color: transparent;
}

.marketing-auth-tabs .nav-link.active {
	color: #fff;
	background: transparent;
	border-color: var(--marketing-accent, #818cf8);
}

.marketing-footer .text-muted {
	color: #8fa3ba !important;
}

.marketing-footer a.text-muted:hover {
	color: #cbd5e1 !important;
}

.btn-twitch {
	background: #9146ff;
	border-color: #9146ff;
	color: #fff;
}

.btn-twitch:hover:not(.sso-btn-blocked) {
	background: #772ce8;
	border-color: #772ce8;
	color: #fff;
}

.btn-discord {
	background: #5865f2;
	border-color: #5865f2;
	color: #fff;
}

.btn-discord:hover:not(.sso-btn-blocked) {
	background: #4752c4;
	border-color: #4752c4;
	color: #fff;
}

.btn-youtube {
	background: #ff0000;
	border-color: #ff0000;
	color: #fff;
}

.btn-youtube:hover:not(.sso-btn-blocked) {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
}

.marketing-modal-lead {
	color: #94a3b8;
	font-size: 0.9rem;
}

.marketing-modal-copy {
	color: #b8c5d6;
	line-height: 1.55;
}

.marketing-tos-panel {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--marketing-border);
	border-radius: 0.65rem;
	padding: 0.85rem 1rem;
}

.sso-section-label {
	color: #8fa3ba;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 0.65rem;
	text-transform: uppercase;
}

.sso-provider-list {
	display: grid;
	gap: 0.65rem;
}

.btn-sso {
	align-items: center;
	border: none;
	border-radius: 0.65rem;
	display: flex;
	font-size: 0.95rem;
	font-weight: 600;
	gap: 0.75rem;
	justify-content: flex-start;
	min-height: 3rem;
	padding: 0.65rem 1rem;
	text-align: left;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	width: 100%;
}

.btn-sso:hover:not(.sso-btn-blocked) {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	color: #fff;
	transform: translateY(-1px);
}

.btn-sso-twitch {
	background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
	color: #fff;
}

.btn-sso-twitch:hover:not(.sso-btn-blocked) {
	background: linear-gradient(135deg, #a970ff 0%, #9146ff 100%);
	color: #fff;
}

.btn-sso-discord {
	background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
	color: #fff;
}

.btn-sso-discord:hover:not(.sso-btn-blocked) {
	background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
	color: #fff;
}

.btn-sso-youtube {
	background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
	color: #fff;
}

.btn-sso-youtube:hover:not(.sso-btn-blocked) {
	background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
	color: #fff;
}

.sso-btn-icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 0.45rem;
	display: inline-flex;
	flex-shrink: 0;
	height: 2rem;
	justify-content: center;
	width: 2rem;
}

.sso-btn-icon svg {
	display: block;
	height: 1.15rem;
	width: 1.15rem;
}

.sso-btn-text {
	flex: 1;
	line-height: 1.2;
}

.sso-btn.sso-btn-blocked {
	cursor: not-allowed;
	filter: saturate(0.65);
	opacity: 0.72;
	pointer-events: none;
	transform: none;
}

.sso-btn.disabled,
.sso-btn.disabled:hover {
	opacity: 0.45;
	pointer-events: none;
}

.page-content-section .cms-body h2,
.page-content-section .cms-body h3 {
	color: #fff;
	margin-top: 1.5rem;
}

.page-content-section .cms-body p,
.page-content-section .cms-body li {
	line-height: 1.7;
	color: #b8c5d6;
}

.page-content-section .cms-body code {
	background: rgba(255, 255, 255, 0.08);
	padding: 0.15rem 0.4rem;
	border-radius: 0.25rem;
}

/* Legacy front layout */
body:not(.marketing-body) {
	background-color: #020923;
}

.btn-secondary {
	--bs-btn-active-bg: #292a2b;
	--bs-btn-hover-bg: #292a2b;
}

@media (max-width: 991.98px) {
	.marketing-section {
		padding: 3.5rem 0;
	}

	.display-4 {
		font-size: 2.25rem;
	}
}
