/* Nord Extreme — Live Countdown
   Mobile-first, cream + terracotta matching the theme */

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

html {
	-webkit-text-size-adjust: 100%;
	height: 100%;
}

body.nxc-body {
	min-height: 100%;
	min-height: 100dvh;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: #141414;
	background: #f7f3eb;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.nxc-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(199, 100, 54, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 40% at 90% 80%, rgba(63, 109, 138, 0.08), transparent 50%),
		#f7f3eb;
	pointer-events: none;
}

.nxc-wrap {
	position: relative;
	z-index: 1;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: clamp(20px, 5vw, 40px) clamp(16px, 4vw, 32px);
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

/* Header / logo */
.nxc-header {
	width: 100%;
	padding-top: env(safe-area-inset-top, 0);
}

.nxc-logo {
	display: block;
	height: 40px;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
}

.nxc-brand {
	font-family: Montserrat, Inter, sans-serif;
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -0.03em;
	color: #141414;
}

.nxc-brand span {
	color: #c76436;
}

/* Main content */
.nxc-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 32px 0;
	gap: 0;
}

.nxc-eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c76436;
	margin-bottom: 12px;
}

.nxc-title {
	font-family: Montserrat, Inter, sans-serif;
	font-weight: 800;
	font-size: clamp(1.85rem, 6.5vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: #141414;
	margin-bottom: 16px;
	max-width: 18ch;
}

.nxc-lead {
	color: #6b6760;
	font-size: clamp(0.95rem, 2.8vw, 1.05rem);
	max-width: 36em;
	margin: 0 auto 36px;
}

.nxc-lead strong {
	color: #141414;
	font-weight: 600;
}

/* Timer */
.nxc-timer {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(4px, 2vw, 12px);
	flex-wrap: nowrap;
	width: 100%;
	max-width: 520px;
}

.nxc-unit {
	flex: 1 1 0;
	min-width: 0;
	background: #fff;
	border-radius: 16px;
	padding: clamp(14px, 3.5vw, 22px) 8px;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 18px 40px -26px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.nxc-num {
	font-family: Montserrat, Inter, sans-serif;
	font-weight: 800;
	font-size: clamp(1.75rem, 8vw, 3rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: #141414;
	font-variant-numeric: tabular-nums;
	min-width: 1.6em;
	text-align: center;
}

.nxc-label {
	font-size: clamp(0.62rem, 2.2vw, 0.72rem);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a857c;
}

.nxc-sep {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: clamp(1.4rem, 5vw, 2rem);
	color: rgba(20, 20, 20, 0.2);
	line-height: 1;
	padding-top: clamp(14px, 3.5vw, 22px);
	align-self: flex-start;
	user-select: none;
}

.nxc-note {
	margin-top: 28px;
	font-size: 0.8rem;
	color: #8a857c;
	max-width: 28em;
	line-height: 1.5;
}

/* Footer */
.nxc-footer {
	width: 100%;
	padding-bottom: env(safe-area-inset-bottom, 8px);
	font-size: 0.78rem;
	color: #8a857c;
}

/* Live state (after countdown ends, brief message before reload) */
.nxc-timer.is-live .nxc-unit {
	background: #c76436;
}

.nxc-timer.is-live .nxc-num,
.nxc-timer.is-live .nxc-label {
	color: #fff;
}

.nxc-timer.is-live .nxc-sep {
	color: #c76436;
}

/* Small phones */
@media (max-width: 380px) {
	.nxc-unit {
		padding: 12px 4px;
		border-radius: 12px;
	}
	.nxc-sep {
		display: none;
	}
	.nxc-timer {
		gap: 6px;
	}
}

/* Larger screens */
@media (min-width: 600px) {
	.nxc-logo {
		height: 48px;
	}
	.nxc-title {
		max-width: none;
	}
	.nxc-unit {
		padding: 24px 16px;
		border-radius: 18px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.nxc-num {
		transition: none;
	}
}
