:root {
  --bg-1: #0a0a0e; /* Deep black blue */
  --bg-2: #0f0f15; /* Slightly lifted */
  --text: #e9e9ef; /* Soft white */
  --muted: #a0a3ad; /* Muted gray */
  --brand: #5c9884; /* Requested green */
  --accent: #8fc3b3; /* Harmonious lighter accent */
  --card: #111118; /* Card surface */
  --border: rgba(255, 255, 255, 0.06);
  --font-latin: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, Arial;
  --font-body: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans Arabic', 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  --font-display: 'Tajawal', 'Cairo', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  letter-spacing: 0.1px;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.bg-gradient {
  position: absolute;
  inset: -20%;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(92, 152, 132, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(143, 195, 179, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0b0f 0%, #0a0a0e 40%, #0f0f15 100%);
  filter: saturate(105%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.035"/></svg>');
  mix-blend-mode: overlay;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.15;
}

.glow-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 50% 50%, var(--brand), transparent 60%);
  right: 6%;
  top: 12%;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 60%);
  left: -8%;
  bottom: -6%;
}

.container {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  place-items: center;
  gap: 32px;
  padding: 32px 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 20px);
  letter-spacing: 1.4px;
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(6px);
}

.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand-text {
  font-family: var(--font-latin);
}

/* Prefer Latin font automatically for English content */
:lang(en) {
  font-family: var(--font-latin);
  letter-spacing: 0.2px;
}

.hero {
  text-align: center;
  max-width: 880px;
  padding: 0 12px;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff, #d7f1e8 60%, #a7d3c5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

.card {
  width: min(780px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}

.countdown {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 18px);
}

.time {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 10px;
  min-width: 92px;
}

.digits {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on, "ss01" on;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1;
}

.time small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.separator {
  opacity: 0.28;
  font-size: 22px;
}

.note {
  text-align: center;
  color: var(--muted);
  margin: 14px 8px 0;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social {
  color: #d5d6e2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  transition: transform 140ms ease, background 200ms ease, color 200ms ease;
}

.social:hover {
  transform: translateY(-2px);
  color: var(--brand);
}

.footer {
  color: var(--muted);
}

.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;
}

@media (max-width: 560px) {
  .container { gap: 24px; padding: 24px 16px 18px; }
  .time { min-width: 68px; padding: 12px 12px 8px; }
  .brand { letter-spacing: 1px; padding: 7px 10px; }
  .social { width: 38px; height: 38px; }
}


