/**
 * WaitWave public styles — premium splash.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body.waitwave-body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: "Hind Siliguri", "Syne", system-ui, sans-serif;
	color: #f4f7fb;
	background: #060b16;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.waitwave-body {
	position: relative;
	overflow-x: hidden;
	min-height: 100vh;
	min-height: 100dvh;
}

.waitwave-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: #060b16;
	transform: scale(1.02);
}

.waitwave-overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
		linear-gradient(
			165deg,
			rgba(3, 7, 18, calc(var(--waitwave-overlay, 0.7) * 0.95)) 0%,
			rgba(8, 15, 30, calc(var(--waitwave-overlay, 0.7) * 0.75)) 45%,
			rgba(2, 6, 18, var(--waitwave-overlay, 0.7)) 100%
		);
	pointer-events: none;
}

.waitwave-glow {
	position: fixed;
	z-index: 1;
	width: min(48vw, 420px);
	height: min(48vw, 420px);
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	pointer-events: none;
	animation: waitwave-drift 18s ease-in-out infinite alternate;
}

.waitwave-glow--a {
	top: 8%;
	left: -8%;
	background: color-mix(in srgb, var(--waitwave-accent, #38bdf8) 55%, transparent);
}

.waitwave-glow--b {
	right: -10%;
	bottom: 5%;
	background: color-mix(in srgb, var(--waitwave-accent, #38bdf8) 30%, #6366f1 40%);
	animation-delay: -7s;
	opacity: 0.22;
}

@keyframes waitwave-drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(4%, 6%, 0) scale(1.12);
	}
}

.waitwave-particles {
	position: fixed;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.waitwave-main {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.waitwave-content {
	width: 100%;
	max-width: 760px;
	text-align: center;
}

.waitwave-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.35rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--waitwave-accent, #38bdf8) 35%, transparent);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(10px);
	color: color-mix(in srgb, var(--waitwave-accent, #38bdf8) 85%, #fff);
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.waitwave-badge-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--waitwave-accent, #38bdf8);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--waitwave-accent, #38bdf8) 55%, transparent);
	animation: waitwave-ping 2s ease-out infinite;
}

@keyframes waitwave-ping {
	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--waitwave-accent, #38bdf8) 55%, transparent);
	}
	70% {
		box-shadow: 0 0 0 8px transparent;
	}
	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}

.waitwave-logo {
	margin-bottom: 1.15rem;
}

.waitwave-logo-img {
	display: inline-block;
	max-width: min(var(--waitwave-logo-max, 180px), 70vw);
	width: auto;
	height: auto;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.waitwave-site-name {
	display: inline-block;
	font-family: "Hind Siliguri", "Syne", sans-serif;
	font-size: clamp(1.65rem, 5vw, 2.55rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: #fff;
	text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.waitwave-pulse {
	animation: waitwave-pulse 3.2s ease-in-out infinite;
}

@keyframes waitwave-pulse {
	0%,
	100% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
	50% {
		transform: translateY(-2px) scale(1.02);
		opacity: 0.94;
	}
}

.waitwave-headline {
	margin: 0 0 0.95rem;
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: clamp(2rem, 6.5vw, 3.35rem);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -0.035em;
	background: linear-gradient(180deg, #ffffff 20%, color-mix(in srgb, #fff 72%, var(--waitwave-accent, #38bdf8)) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.waitwave-headline::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 3px;
	margin: 1.1rem auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, var(--waitwave-accent, #38bdf8), transparent);
}

.waitwave-subheadline {
	margin: 0 auto 2.15rem;
	max-width: 34rem;
	font-family: "Hind Siliguri", "Syne", sans-serif;
	font-size: clamp(1.02rem, 2.5vw, 1.2rem);
	line-height: 1.7;
	color: rgba(226, 232, 240, 0.78);
	font-weight: 400;
}

.waitwave-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.55rem, 2vw, 1rem);
	margin: 0 auto 2.15rem;
	max-width: 34rem;
}

.waitwave-count-unit {
	min-width: 0;
}

.waitwave-flip-card {
	perspective: 800px;
	margin-bottom: 0.5rem;
}

.waitwave-digit {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(3.6rem, 12vw, 5rem);
	padding: 0.55rem 0.35rem;
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: clamp(1.45rem, 4.8vw, 2.15rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: #fff;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
		rgba(8, 14, 28, 0.55);
	border: 1px solid color-mix(in srgb, var(--waitwave-accent, #38bdf8) 45%, rgba(255, 255, 255, 0.12));
	border-radius: 1rem;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 12px 30px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(14px);
	transform-style: preserve-3d;
}

.waitwave-flip-card.flip .waitwave-digit {
	animation: waitwave-flip 0.45s ease;
}

@keyframes waitwave-flip {
	0% {
		transform: rotateX(0deg);
	}
	50% {
		transform: rotateX(-90deg);
	}
	100% {
		transform: rotateX(0deg);
	}
}

.waitwave-label {
	display: block;
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(226, 232, 240, 0.55);
}

.waitwave-live-message {
	margin: 0 0 2rem;
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--waitwave-accent, #38bdf8);
}

.waitwave-subscribe {
	margin: 0 auto 1.85rem;
	max-width: 28rem;
}

.waitwave-subscribe-shell {
	display: flex;
	align-items: stretch;
	gap: 0.45rem;
	padding: 0.4rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(16px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.waitwave-email {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 0.75rem 1.1rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: #f8fafc;
	font-family: "Hind Siliguri", "Syne", sans-serif;
	font-size: 1rem;
}

.waitwave-email::placeholder {
	color: rgba(226, 232, 240, 0.45);
}

.waitwave-email:focus {
	outline: none;
}

.waitwave-subscribe-shell:focus-within {
	border-color: color-mix(in srgb, var(--waitwave-accent, #38bdf8) 55%, transparent);
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--waitwave-accent, #38bdf8) 18%, transparent),
		0 16px 40px rgba(0, 0, 0, 0.25);
}

.waitwave-submit {
	flex: 0 0 auto;
	min-height: 48px;
	min-width: 7.25rem;
	padding: 0.75rem 1.35rem;
	border: none;
	border-radius: 999px;
	background: linear-gradient(
		135deg,
		var(--waitwave-accent, #38bdf8),
		color-mix(in srgb, var(--waitwave-accent, #38bdf8) 70%, #0ea5e9)
	);
	color: #04101d;
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--waitwave-accent, #38bdf8) 35%, transparent);
	-webkit-tap-highlight-color: transparent;
}

.waitwave-submit:hover,
.waitwave-submit:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
	outline: none;
}

.waitwave-submit:active {
	transform: translateY(0);
}

.waitwave-subscribe-message {
	margin: 0.7rem 0 0;
	min-height: 1.25rem;
	font-family: "Hind Siliguri", sans-serif;
	font-size: 0.92rem;
	color: rgba(248, 250, 252, 0.9);
}

.waitwave-subscribe-message.is-error {
	color: #fda4af;
}

.waitwave-subscribe-message.is-success {
	color: #86efac;
}

.waitwave-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin-bottom: 1.6rem;
}

.waitwave-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #f8fafc;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(10px);
	text-decoration: none;
	transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.waitwave-social-link:hover,
.waitwave-social-link:focus-visible {
	transform: translateY(-2px) scale(1.05);
	color: var(--waitwave-accent, #38bdf8);
	border-color: color-mix(in srgb, var(--waitwave-accent, #38bdf8) 55%, transparent);
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

.waitwave-credit {
	margin: 0;
	font-family: "Syne", "Hind Siliguri", sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: rgba(226, 232, 240, 0.38);
}

.waitwave-animate {
	opacity: 0;
	transform: translateY(18px);
	animation: waitwave-fade-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.waitwave-delay-1 { animation-delay: 0.05s; }
.waitwave-delay-2 { animation-delay: 0.15s; }
.waitwave-delay-3 { animation-delay: 0.28s; }
.waitwave-delay-4 { animation-delay: 0.4s; }
.waitwave-delay-5 { animation-delay: 0.52s; }
.waitwave-delay-6 { animation-delay: 0.64s; }
.waitwave-delay-7 { animation-delay: 0.76s; }
.waitwave-delay-8 { animation-delay: 0.88s; }

@keyframes waitwave-fade-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 560px) {
	.waitwave-countdown {
		max-width: 100%;
		gap: 0.45rem;
	}

	.waitwave-digit {
		border-radius: 0.85rem;
		min-height: 3.4rem;
	}

	.waitwave-subscribe-shell {
		flex-direction: column;
		border-radius: 1.15rem;
		padding: 0.55rem;
	}

	.waitwave-email,
	.waitwave-submit {
		width: 100%;
		border-radius: 0.85rem;
	}

	.waitwave-submit {
		min-width: 0;
	}
}

@media (max-width: 380px) {
	.waitwave-label {
		font-size: 0.6rem;
		letter-spacing: 0.08em;
	}

	.waitwave-digit {
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.waitwave-animate,
	.waitwave-pulse,
	.waitwave-glow,
	.waitwave-badge-dot,
	.waitwave-flip-card.flip .waitwave-digit {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
	.waitwave-glow--a,
	.waitwave-glow--b {
		background: rgba(56, 189, 248, 0.35);
	}

	.waitwave-digit {
		border-color: rgba(56, 189, 248, 0.45);
	}

	.waitwave-headline {
		color: #fff;
		background: none;
		-webkit-background-clip: unset;
		background-clip: unset;
	}
}
