/* Computex WIP — tech retail construction page */

:root {
	--cx-bg: #07111f;
	--cx-bg-elev: #0d1b2e;
	--cx-surface: rgba(18, 36, 58, 0.72);
	--cx-border: rgba(120, 190, 255, 0.16);
	--cx-text: #e8f1ff;
	--cx-muted: #93a7c3;
	--cx-cyan: #3ddcff;
	--cx-amber: #ffb020;
	--cx-mint: #5dffb1;
	--cx-danger: #ff6b7a;
	--cx-font: "DM Sans", system-ui, -apple-system, sans-serif;
	--cx-display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
	--cx-radius: 16px;
	--cx-radius-sm: 10px;
	--cx-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	--cx-max: 72rem;
	--cx-space: clamp(1rem, 3vw, 2rem);
}

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

html {
	scroll-behavior: smooth;
}

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

body.computex-wip-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--cx-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--cx-text);
	background: var(--cx-bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.cx-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--cx-cyan);
	color: #041018;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--cx-radius-sm) 0;
}

.cx-skip:focus {
	left: 0;
}

/* Stage / atmosphere */
.cx-stage {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.cx-grid {
	position: absolute;
	inset: -20%;
	background-image:
		linear-gradient(rgba(61, 220, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(61, 220, 255, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
	transform: perspective(600px) rotateX(55deg);
	transform-origin: center top;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
}

.cx-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.55;
}

.cx-glow--a {
	width: min(50vw, 420px);
	height: min(50vw, 420px);
	top: -8%;
	right: -5%;
	background: radial-gradient(circle, rgba(61, 220, 255, 0.45), transparent 70%);
}

.cx-glow--b {
	width: min(55vw, 480px);
	height: min(55vw, 480px);
	bottom: 5%;
	left: -10%;
	background: radial-gradient(circle, rgba(255, 176, 32, 0.28), transparent 70%);
}

.cx-particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Floaters */
.cx-floaters {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.cx-floater {
	position: absolute;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	opacity: 0.22;
	filter: grayscale(0.2);
	animation: cx-float 9s ease-in-out infinite;
	animation-delay: var(--d, 0s);
}

.cx-floater--phone { top: 12%; left: 6%; }
.cx-floater--laptop { top: 22%; right: 8%; }
.cx-floater--camera { bottom: 28%; left: 10%; }
.cx-floater--watch { top: 48%; right: 14%; }
.cx-floater--head { bottom: 14%; right: 20%; }
.cx-floater--drive { top: 68%; left: 22%; }

@keyframes cx-float {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50% { transform: translateY(-14px) rotate(4deg); }
}

/* Main */
.cx-main {
	position: relative;
	z-index: 2;
	width: min(100% - 2rem, var(--cx-max));
	margin: 0 auto;
	padding: clamp(1.25rem, 4vw, 2.5rem) 0 3rem;
}

/* Brand bar */
.cx-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
	margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

.cx-logo {
	color: var(--cx-cyan);
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(61, 220, 255, 0.12), rgba(255, 176, 32, 0.08));
	border: 1px solid var(--cx-border);
}

.cx-brand-text {
	flex: 1 1 auto;
	min-width: 12rem;
}

.cx-kicker {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cx-muted);
	font-weight: 600;
}

.cx-site {
	margin: 0.15rem 0 0;
	font-family: var(--cx-display);
	font-weight: 700;
	font-size: 1.125rem;
}

.cx-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 176, 32, 0.12);
	border: 1px solid rgba(255, 176, 32, 0.35);
	color: var(--cx-amber);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cx-badge-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--cx-amber);
	box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.6);
	animation: cx-pulse 1.8s ease-out infinite;
}

@keyframes cx-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55); }
	70% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

/* Hero */
.cx-hero {
	max-width: 42rem;
	margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.cx-chip {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(61, 220, 255, 0.1);
	border: 1px solid var(--cx-border);
	color: var(--cx-cyan);
	font-size: 0.8125rem;
	font-weight: 600;
}

.cx-title {
	margin: 0 0 1rem;
	font-family: var(--cx-display);
	font-weight: 700;
	font-size: clamp(2rem, 5.5vw, 3.25rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.cx-lead {
	margin: 0 0 1.75rem;
	color: var(--cx-muted);
	font-size: clamp(1rem, 2vw, 1.125rem);
	max-width: 38rem;
}

/* Progress */
.cx-meter {
	padding: 1.25rem 1.35rem;
	border-radius: var(--cx-radius);
	background: var(--cx-surface);
	border: 1px solid var(--cx-border);
	backdrop-filter: blur(12px);
	box-shadow: var(--cx-shadow);
}

.cx-meter-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.65rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cx-muted);
}

.cx-meter-pct {
	font-family: var(--cx-display);
	font-size: 1.125rem;
	color: var(--cx-mint);
}

.cx-meter-track {
	height: 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
	margin-bottom: 1rem;
}

.cx-meter-fill {
	height: 100%;
	width: var(--p, 50%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--cx-cyan), var(--cx-mint));
	box-shadow: 0 0 16px rgba(61, 220, 255, 0.45);
	transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cx-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.cx-checklist li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.9rem;
	color: var(--cx-muted);
}

.cx-checklist li::before {
	content: "";
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	border: 2px solid rgba(147, 167, 195, 0.45);
	flex-shrink: 0;
}

.cx-checklist li.is-done {
	color: var(--cx-text);
}

.cx-checklist li.is-done::before {
	border-color: var(--cx-mint);
	background: var(--cx-mint);
	box-shadow: inset 0 0 0 2px var(--cx-bg-elev);
}

.cx-checklist li.is-active {
	color: var(--cx-cyan);
	font-weight: 600;
}

.cx-checklist li.is-active::before {
	border-color: var(--cx-cyan);
	background: rgba(61, 220, 255, 0.35);
	animation: cx-pulse 1.8s ease-out infinite;
}

/* Cards */
.cx-aisles {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.cx-section-title {
	margin: 0 0 1.15rem;
	font-family: var(--cx-display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.cx-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.cx-cards {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.cx-cards {
		grid-template-columns: repeat(4, 1fr);
	}
}

.cx-card {
	position: relative;
	padding: 1.25rem 1.2rem 1.35rem;
	border-radius: var(--cx-radius);
	background: var(--cx-surface);
	border: 1px solid var(--cx-border);
	backdrop-filter: blur(10px);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cx-card:hover,
.cx-card:focus-within {
	transform: translateY(-3px);
	border-color: rgba(61, 220, 255, 0.35);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cx-card-icon {
	display: block;
	font-size: 1.75rem;
	margin-bottom: 0.65rem;
	line-height: 1;
}

.cx-card h3 {
	margin: 0 0 0.4rem;
	font-family: var(--cx-display);
	font-size: 1.1rem;
	font-weight: 600;
}

.cx-card p {
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	color: var(--cx-muted);
}

.cx-card-tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cx-amber);
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	background: rgba(255, 176, 32, 0.1);
}

/* Ticker */
.cx-ticker-wrap {
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	border-block: 1px solid var(--cx-border);
	background: rgba(8, 18, 32, 0.65);
	overflow: hidden;
}

.cx-ticker {
	padding: 0.85rem 0;
}

.cx-ticker-track {
	display: flex;
	gap: 1.25rem;
	width: max-content;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cx-muted);
	animation: cx-marquee 28s linear infinite;
}

.cx-ticker-track span[aria-hidden="true"] {
	color: var(--cx-cyan);
}

@keyframes cx-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Contact */
.cx-contact-card {
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border-radius: calc(var(--cx-radius) + 4px);
	background:
		linear-gradient(145deg, rgba(61, 220, 255, 0.08), rgba(255, 176, 32, 0.05)),
		var(--cx-surface);
	border: 1px solid var(--cx-border);
	box-shadow: var(--cx-shadow);
	max-width: 40rem;
}

.cx-contact-card h2 {
	margin: 0 0 0.65rem;
	font-family: var(--cx-display);
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	letter-spacing: -0.02em;
}

.cx-contact-card > p {
	margin: 0 0 1.35rem;
	color: var(--cx-muted);
}

.cx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cx-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cx-btn:focus-visible {
	outline: 2px solid var(--cx-cyan);
	outline-offset: 3px;
}

.cx-btn--primary {
	background: linear-gradient(135deg, var(--cx-cyan), #2bb8e8);
	color: #041018;
	box-shadow: 0 8px 24px rgba(61, 220, 255, 0.3);
}

.cx-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(61, 220, 255, 0.4);
}

.cx-btn--ghost {
	background: transparent;
	color: var(--cx-text);
	border: 1px solid var(--cx-border);
}

.cx-btn--ghost:hover {
	border-color: rgba(61, 220, 255, 0.4);
	background: rgba(61, 220, 255, 0.06);
}

.cx-btn.is-booting {
	animation: cx-shake 0.4s ease;
}

@keyframes cx-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.cx-hint {
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
	color: var(--cx-mint);
	min-height: 1.4em;
}

.cx-hint[hidden] {
	display: none;
}

/* Footer */
.cx-foot {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--cx-border);
}

.cx-foot p {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--cx-muted);
	max-width: 40rem;
}

/* Admin bar clearance */
body.admin-bar .cx-main {
	padding-top: calc(clamp(1.25rem, 4vw, 2.5rem) + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .cx-main {
		padding-top: calc(clamp(1.25rem, 4vw, 2.5rem) + 46px);
	}
}

/* --- v1.0.1 a11y / polish --- */
.cx-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cx-contact-email {
	margin: -0.5rem 0 1.15rem;
	font-family: var(--cx-display);
	font-weight: 600;
	font-size: 0.95rem;
}

.cx-contact-email a {
	color: var(--cx-cyan);
	text-decoration: none;
	border-bottom: 1px solid rgba(61, 220, 255, 0.35);
}

.cx-contact-email a:hover,
.cx-contact-email a:focus-visible {
	border-bottom-color: var(--cx-cyan);
}

body.computex-wip-body {
	min-height: 100vh;
	min-height: 100dvh;
}

@media (prefers-reduced-motion: reduce) {
	.cx-floater,
	.cx-ticker-track,
	.cx-badge-dot,
	.cx-checklist li.is-active::before {
		animation: none !important;
	}
	.cx-floaters {
		display: none;
	}
	.cx-card:hover,
	.cx-card:focus-within {
		transform: none;
	}
}

@media (max-width: 480px) {
	.cx-floaters {
		opacity: 0.5;
	}
}
