/* ===== Design tokens (from the Setra Egypt logo) ===== */
:root {
  --bg: #09101c;            /* logo background navy */
  --bg-2: #101b2f;
  --text: #eef1f5;
  --muted: #9aa4b5;
  --steel-hi: #f4f6f8;      /* brushed steel highlights */
  --steel: #c3c8cf;
  --steel-lo: #7b818b;
  --blue: #2b5cab;          /* "EGYPT" royal blue */
  --blue-mid: #3f74d1;
  --blue-light: #86aef2;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(195, 200, 207, 0.14);
  --radius: 20px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Outfit", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--font-ar); }

/* ===== Background ===== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 70%); }

.bg-grid {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(195,200,207,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,200,207,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(900px) rotateX(60deg) translateY(-10%);
  animation: gridMove 18s linear infinite;
  mask-image: radial-gradient(ellipse at center 30%, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center 30%, #000 20%, transparent 65%);
}

@keyframes gridMove { to { background-position: 0 60px, 0 0; } }

.orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: float 16s ease-in-out infinite; }
.orb-1 { width: 560px; height: 560px; background: var(--blue); top: -200px; left: -140px; opacity: .35; }
.orb-2 { width: 480px; height: 480px; background: var(--blue-mid); bottom: -180px; right: -120px; opacity: .25; animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; background: var(--steel); top: 40%; left: 55%; opacity: .07; animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-40px, 30px) scale(.95); }
}

.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55)); }

/* ===== Header ===== */
.site-header {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 24px clamp(20px, 5vw, 64px) 0;
}

.lang-toggle {
  font-family: var(--font-ar); font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, background .25s, transform .25s;
}
.lang-toggle:hover { border-color: var(--blue-mid); background: rgba(63,116,209,.14); transform: translateY(-1px); }
html[lang="ar"] .lang-toggle { font-family: var(--font); }

/* ===== Hero ===== */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 8px clamp(20px, 5vw, 64px) 48px;
  max-width: 980px; margin: 0 auto; width: 100%;
}

.reveal { opacity: 0; transform: translateY(24px); animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* Logo with a light sweep across the brushed steel */
.logo-wrap {
  position: relative;
  width: min(420px, 78vw);
  margin-bottom: 34px;
  filter: drop-shadow(0 18px 40px rgba(43, 92, 171, .35));
}
.logo { display: block; width: 100%; height: auto; }
.logo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
  mask: url("assets/logo.png") center / contain no-repeat;
  mix-blend-mode: overlay;
  animation: sweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(43,92,171,.14); border: 1px solid rgba(63,116,209,.45);
  color: var(--blue-light); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 26px;
}
html[lang="ar"] .badge { letter-spacing: 0; font-size: 15px; }

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--blue-light); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }

.title {
  font-size: clamp(36px, 6.4vw, 72px);
  line-height: 1.06; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
html[lang="ar"] .title { letter-spacing: 0; line-height: 1.3; }

.steel-text {
  background: linear-gradient(180deg, var(--steel-hi) 0%, var(--steel) 55%, var(--steel-lo) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.blue-text {
  background: linear-gradient(100deg, var(--blue-mid) 0%, var(--blue-light) 45%, #b9d0fa 60%, var(--blue-mid) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.subtitle { max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; font-weight: 300; }
html[lang="ar"] .subtitle { font-weight: 400; }

.launch-date { margin: 18px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.launch-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}
html[lang="ar"] .launch-label { letter-spacing: 0; font-size: 14px; }
.launch-value { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; color: var(--text); }

/* ››› chevrons echoing the logo */
.chevrons { display: inline-flex; color: var(--blue-mid); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -7px; margin-top: -4px; padding-inline-end: 6px; }
.chevrons i { font-style: normal; animation: chev 1.6s ease-in-out infinite; }
.chevrons i:nth-child(2) { animation-delay: .2s; }
.chevrons i:nth-child(3) { animation-delay: .4s; }
@keyframes chev { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
html[dir="rtl"] .chevrons { transform: scaleX(-1); }

/* ===== Countdown ===== */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); width: 100%; max-width: 680px; }

.unit {
  position: relative;
  padding: clamp(18px, 3vw, 28px) 8px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.unit::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.08), transparent 45%);
  pointer-events: none;
}
.unit::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-mid), transparent);
  opacity: .8;
}
.unit:hover { transform: translateY(-6px); border-color: rgba(63,116,209,.55); box-shadow: 0 20px 40px -18px rgba(43,92,171,.7); }

.num {
  font-size: clamp(32px, 6vw, 58px); font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--steel-hi) 0%, var(--steel) 60%, var(--steel-lo) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.num.tick { animation: tick .45s ease; }
@keyframes tick { 0% { transform: translateY(-8px); opacity: .3; } 100% { transform: none; opacity: 1; } }

.lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }
html[lang="ar"] .lbl { letter-spacing: 0; font-size: 14px; }

.live-message { margin-top: 12px; font-size: 22px; font-weight: 600; color: var(--blue-light); }

/* ===== Progress ===== */
.progress { width: 100%; max-width: 680px; margin-top: 44px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-light); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.progress-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.progress-bar {
  height: 100%; width: 100%;
  background: repeating-linear-gradient(-45deg, var(--blue) 0 14px, var(--steel-lo) 14px 28px);
  background-size: 40px 40px;
  animation: stripes 1.2s linear infinite;
  opacity: .85;
}
@keyframes stripes { to { background-position: 40px 0; } }

.thanks { margin-top: 32px; color: var(--muted); font-size: 15px; }

/* ===== Contact ===== */
.contact { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact-label { font-size: 13px; color: var(--muted); }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px;
  background: var(--glass); border: 1px solid rgba(63,116,209,.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  direction: ltr;
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.contact-email svg { color: var(--blue-light); }
.contact-email:hover {
  transform: translateY(-2px);
  border-color: var(--blue-light);
  background: rgba(43,92,171,.18);
  box-shadow: 0 12px 30px -12px rgba(43,92,171,.8);
}

/* ===== Footer ===== */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 24px clamp(20px, 5vw, 64px);
  font-size: 13px; color: var(--muted);
  border-top: 1px solid rgba(195,200,207,.08);
}
.domain { letter-spacing: .08em; direction: ltr; }

/* ===== Responsive ===== */
@media (max-width: 560px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .site-footer { justify-content: center; text-align: center; }
  .logo-wrap { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
