:root {
	--bg-blur: 16px;
	--surface: rgba(255, 255, 255, 0.1);
	--text: #0f172a; /* slate-900 */
	--text-contrast: #ffffff;
	--muted: #334155; /* slate-700 */
	--accent: #2563eb; /* blue-600 */
	--accent-2: #ffc857; /* warm yellow */
	--ring: rgba(37, 99, 235, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Background image + gradient overlay */
body {
	margin: 0;
	color: var(--text);
	font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: #0b1220 url('background.png') center/cover no-repeat fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Arabic font stack override */
html[lang="ar"] body,
html[dir="rtl"] body {
	font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.bg-overlay::before {
	content: '';
	position: fixed;
	inset: 0;
	background: linear-gradient(180deg, rgba(13,23,42,0.65), rgba(13,23,42,0.85));
	pointer-events: none;
}

.site-header,
.site-footer {
	max-width: 1080px;
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--text-contrast);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.brand-name { font-weight: 800; letter-spacing: 0.2px; font-size: 1.05rem; display: inline-flex; gap: 2px; }
.brand-name .dev { color: #0e2537; /* deep navy */ }
.brand-name .univers {
	background: linear-gradient(90deg, #0e8b7c 0%, #1f7a70 45%, #1f7a70 55%, #0e8b7c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lang-switch { display: inline-flex; gap: 8px; }
.lang-btn {
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.25);
	background: rgba(255,255,255,0.08);
	color: var(--text-contrast);
	cursor: pointer;
	transition: all 0.2s ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.18); }
.lang-btn[aria-pressed="true"] { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 2px; }

.hero {
	min-height: calc(100dvh - 140px);
	display: grid;
	place-items: center;
	padding: 24px 16px 32px;
}

.card {
	width: min(1050px, 92vw);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 28px;
	align-items: center;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(var(--bg-blur)) saturate(120%);
	-webkit-backdrop-filter: blur(var(--bg-blur)) saturate(120%);
	border: 1px solid rgba(255,255,255,0.28);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.card-media { display: grid; place-items: center; padding: 12px; }
.workers-svg, .workers-img, .workers-video { width: 100%; max-width: 520px; height: auto; border-radius: 12px; }
/* Hide artwork by default; show via state classes to prevent accidental stacking */
.workers-img, .workers-svg { display: none; }
.card-media.show-img .workers-img { display: block; }
.card-media.show-svg .workers-svg { display: block; }

.video-overlay {
	position: static; /* place below the video */
	inset: auto;
	display: flex;
	justify-content: flex-start;
	padding-top: 10px;
	background: transparent;
	border-radius: 0;
}

.card-media { position: relative; }

.card-content { color: #f8fafc; }
.title { margin: 0 0 8px; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; }
.subtitle { margin: 0 0 18px; color: #e2e8f0; font-size: clamp(1rem, 0.95rem + 0.5vw, 1.15rem); }

.eta { display: flex; align-items: center; gap: 8px; margin: 10px 0 20px; color: #e2e8f0; }
.countdown { font-weight: 700; color: var(--accent-2); letter-spacing: 0.4px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45); }
.btn.primary:hover { background: #1e4fd1; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55); }
.btn.ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn.ghost:hover { background: rgba(255,255,255,0.16); }

.support {
	width: min(1050px, 92vw);
	margin: 22px auto 0;
	background: rgba(255,255,255,0.08);
	backdrop-filter: blur(var(--bg-blur));
	-webkit-backdrop-filter: blur(var(--bg-blur));
	border: 1px solid rgba(255,255,255,0.24);
	border-radius: 14px;
	padding: 18px 22px;
	color: #f8fafc;
}
.support-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.support-desc { margin: 0 0 12px; color: #e2e8f0; }
.support-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.support-list li { display: grid; grid-template-columns: max-content 1fr; grid-template-areas: "key val"; gap: 12px; align-items: center; }
.support-key { color: #cbd5e1; white-space: nowrap; grid-area: key; }
.support-val { color: #fff; text-decoration: none; word-break: break-word; grid-area: val; overflow-wrap: anywhere; }
.support-val:hover { text-decoration: underline; }

.site-footer { justify-content: center; color: rgba(255,255,255,0.8); }

/* Responsive */
@media (max-width: 900px) {
	.card { grid-template-columns: 1fr; gap: 8px; }
	.card-media { order: -1; }
}

/* RTL adjustments */
html[dir="rtl"] .support-list li { grid-template-columns: minmax(0, 65ch) max-content; grid-template-areas: "val key"; justify-content: end; }
html[dir="rtl"] .support-list li .support-key { justify-self: end; text-align: right; }
html[dir="rtl"] .support-list li .support-val { text-align: left; }
html[dir="rtl"] .site-header, html[dir="rtl"] .site-footer { direction: rtl; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }
html[dir="rtl"] .actions { flex-direction: row-reverse; }
html[dir="rtl"] .support-val[href^="mailto:"] { direction: ltr; unicode-bidi: plaintext; text-align: left; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.btn, .card { transition: none; }
}

