:root {
	color-scheme: dark;
	--bg-red-tint: rgba(85, 8, 8, 0.72);
	--yellow-accent: #ffd700;
	--yellow-bright: #ffe500;
	--yellow-glow: rgba(255, 215, 0, 0.45);
	--card-bg: linear-gradient(165deg, rgb(79 51 45 / 47%) 0%, rgb(20 10 8 / 33%) 100%);
	--card-border: rgba(255, 215, 0, 0.38);
	--text-main: #ffffff;
	--text-muted: #d8dfe6;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-width: 320px;
	min-height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background-color: #3b0505;
	color: var(--text-main);
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		sans-serif;
	overflow-x: hidden;
}

button {
	font: inherit;
}

/* Shell Layout */
.landing-shell {
	min-height: 100dvh;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-rows: 1fr auto;
	padding: 24px clamp(16px, 4vw, 48px) max(18px, env(safe-area-inset-bottom));
	position: relative;
}

/* Background Image with Deep Red Tint Overlay */
.background {
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		linear-gradient(180deg, rgb(70 5 5 / 32%) 0%, rgb(100 8 8 / 44%) 50%, rgb(40 3 3 / 16%) 100%),
		radial-gradient(circle at 50% 50%, rgb(180 20 20 / 22%) 0%, rgb(30 2 2 / 65%) 100%),
		url(../images/background.jpg) center / cover no-repeat;
	animation: bg-subtle-pulse 14s ease-in-out infinite alternate;
	transform: scale(1.02);
}

/* Ambient glow blobs */
.ambient {
	position: absolute;
	z-index: -2;
	border-radius: 50%;
	filter: blur(50px);
	opacity: 0.25;
	pointer-events: none;
}

.ambient--red {
	width: 28rem;
	height: 28rem;
	top: 15%;
	left: -8rem;
	background: #d31212;
	animation: float-left 12s ease-in-out infinite alternate;
}

.ambient--gold {
	width: 22rem;
	height: 22rem;
	bottom: 10%;
	right: -6rem;
	background: #ffaa00;
	animation: float-right 14s ease-in-out infinite alternate;
}

/* Experience Container */
.experience {
	display: grid;
	place-items: center;
	padding: 24px 0;
}

/* Intro loading spinner */
.intro {
	width: min(260px, 86vw);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	align-content: center;
	position: relative;
	text-align: center;
}

.intro[hidden] {
	display: none;
}

.intro-orbit {
	position: absolute;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 2px solid transparent;
	border-top-color: var(--yellow-bright);
	border-right-color: rgba(255, 215, 0, 0.3);
	filter: drop-shadow(0 0 12px var(--yellow-glow));
	animation: spin 1s linear infinite;
}

.brand-mark--intro {
	width: 76px;
	height: 76px;
	filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.5));
}

.brand-mark--intro img {
	width: 100%;
	height: auto;
}

.intro-status {
	position: absolute;
	top: calc(50% + 105px);
	width: max-content;
	max-width: 100%;
	margin: 0;
	color: #f1e4d3;
	font-size: 0.88rem;
	letter-spacing: 0.05em;
	font-weight: 500;
}

/* Access Card Container (Figma Redesign) */
.access-card {
	width: min(100%, 630px);
	padding: clamp(24px, 5vw, 42px) clamp(20px, 4vw, 38px);
	border: 1px solid var(--card-border);
	border-radius: 24px;
	background: var(--card-bg);
	box-shadow:
		0 24px 70px rgba(0, 0, 0, 0.65),
		0 0 25px rgba(255, 200, 0, 0.12),
		inset 0 1px 0 rgba(255, 235, 160, 0.25);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	text-align: center;
	animation: card-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.access-card[hidden] {
	display: none;
}

/* Card Header: brand Logo + Secure Connection Badge */
.card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: clamp(28px, 6vw, 44px);
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--yellow-bright);
	display: grid;
	place-items: center;
	box-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

.brand-icon span {
	color: #121212;
	font-weight: 900;
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1;
	margin-top: -2px;
}

.brand-text {
	color: #ffffff;
	font-size: 1.45rem;
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.02em;
	line-height: 1;
}

.secure-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 215, 0, 0.35);
	border-radius: 999px;
	color: #ffea79;
	background: rgba(255, 200, 0, 0.1);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.shield-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

/* Card Body */
.card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.eyebrow {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

h1 {
	max-width: 480px;
	margin: 0 0 16px;
	color: var(--yellow-bright);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 14px rgba(255, 200, 0, 0.3);
	text-transform: uppercase;
}

.description {
	max-width: 440px;
	margin: 0 0 28px;
	color: var(--text-muted);
	font-size: clamp(0.88rem, 2.3vw, 0.96rem);
	line-height: 1.6;
}

/* Action Button (Figma Pill Yellow Button) */
.access-button {
	width: 100%;
	min-height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	color: #0b0804;
	background: linear-gradient(180deg, #ffe838 0%, #ffc800 100%);
	box-shadow:
		0 8px 24px rgba(255, 200, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	font-size: 0.92rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition:
		transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.2s ease,
		filter 0.2s ease;
}

.access-button:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow:
		0 12px 32px rgba(255, 200, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	filter: brightness(1.05);
}

.access-button:active {
	transform: translateY(0) scale(0.99);
}

.access-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.access-button:disabled {
	cursor: progress;
	opacity: 0.75;
	transform: none;
}

.access-button svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
}

/* Countdown & Progress Area */
.countdown-area {
	width: 100%;
	margin-top: 22px;
}

.countdown-area p {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.82rem;
	letter-spacing: 0.02em;
}

.countdown-area strong {
	color: var(--yellow-bright);
	font-size: 0.96rem;
	font-weight: 800;
}

.progress-track {
	height: 5px;
	overflow: hidden;
	margin-top: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
	display: block;
	width: 0%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ffc700, #ffe600);
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
	transition: width 0.08s linear;
}

.redirect-notice {
	margin-top: 10px !important;
	color: var(--yellow-bright) !important;
	font-weight: 600;
	line-height: 1.4;
}

.redirect-notice[hidden] {
	display: none;
}

/* Footer */
footer {
	align-self: end;
	display: flex;
	justify-content: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-align: center;
}

.footer-divider {
	color: var(--yellow-bright);
}

/* Animations */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes card-appear {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.98);
	}

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

@keyframes bg-subtle-pulse {
	to {
		transform: scale(1.05);
	}
}

@keyframes float-left {
	to {
		transform: translate(30px, -20px);
	}
}

@keyframes float-right {
	to {
		transform: translate(-30px, 20px);
	}
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.access-card {
		border-radius: 20px;
		padding: 24px 18px;
	}

	.card-header {
		margin-bottom: 24px;
	}

	.brand-text {
		font-size: 1.25rem;
	}

	.secure-tag {
		font-size: 0.6rem;
		padding: 5px 9px;
	}

	h1 {
		font-size: 1.55rem;
	}

	.access-button {
		min-height: 48px;
		font-size: 0.85rem;
	}

	footer {
		font-size: 0.65rem;
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.background {
		transform: scale(1.02);
	}
}
