/* ── Google Fonts ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ── Design Tokens ───────────────────────────── */
:root {
  --cyan:          #00d4ff;
  --cyan-dim:      rgba(0, 212, 255, 0.15);
  --blue:          #0060ff;
  --purple:        #7b5cf0;
  --purple-light:  #c084fc;
  --purple-dim:    rgba(123, 92, 240, 0.15);

  --bg:            #050508;
  --bg-card:       #0d0d1a;
  --bg-card-hover: #111122;
  --surface:       #13131f;
  --surface-2:     #1a1a2e;
  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 212, 255, 0.25);

  --text:          #e8e8f0;
  --text-muted:    #7070a0;
  --text-faint:    #3a3a5a;
  --white:         #ffffff;

  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 40%, var(--purple) 80%, var(--purple-light) 100%);
  --gradient-hero:  linear-gradient(135deg, #000010 0%, #060018 50%, #090022 100%);
  --gradient-card:  linear-gradient(135deg, #0d0d1a, #12122a);

  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --shadow-glow-cyan:   0 0 40px rgba(0, 212, 255, 0.2);
  --shadow-glow-purple: 0 0 40px rgba(123, 92, 240, 0.2);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ──────────────────────────────── */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}
html[dir="rtl"] .eyebrow { flex-direction: row-reverse; }
html[dir="rtl"] .eyebrow::before { display: none; }
html[dir="rtl"] .eyebrow::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}

h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.15; color: var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

html[lang="ar"] h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; }
html[lang="ar"] h2 { font-size: clamp(2rem, 4vw, 3rem);       font-weight: 900; }

/* ── Layout Utilities ────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
html[dir="rtl"] .section-header         { text-align: right; }
html[dir="rtl"] .section-header.center  { text-align: center; }

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 540px;
  line-height: 1.7;
}
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ── Page Hero Banner ────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: 10%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(123,92,240,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-bottom: 0.5rem; }
.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
}
html[dir="rtl"] .page-hero { text-align: right; }
html[dir="rtl"] .page-hero-subtitle { max-width: 100%; }

/* ── Stats Bar ───────────────────────────────── */
.stats-bar {
  display: flex;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
html[dir="rtl"] .stat-item       { border-right: none; border-left: 1px solid var(--border); }
html[dir="rtl"] .stat-item:last-child { border-left: none; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Marquee Strip ───────────────────────────── */
.marquee-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee-inner {
  display: inline-block;
  animation: marquee-scroll 24s linear infinite;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.marquee-inner .dot { color: var(--cyan); margin: 0 14px; font-size: 0.6rem; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CTA Banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(123,92,240,0.1) 100%);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(123,92,240,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .cta-inner { position: relative; z-index: 1; }
.cta-banner h2          { margin-bottom: 1rem; }
.cta-banner p           { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group  { justify-content: center; }

/* ── Divider ─────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Visibility helpers ──────────────────────── */
.lang-en { display: block; }
.lang-ar { display: none;  }
html[lang="ar"] .lang-en { display: none;  }
html[lang="ar"] .lang-ar { display: block; }

span.lang-en, a.lang-en, li.lang-en { display: inline; }
span.lang-ar, a.lang-ar, li.lang-ar { display: none;   }
html[lang="ar"] span.lang-en,
html[lang="ar"] a.lang-en,
html[lang="ar"] li.lang-en { display: none;   }
html[lang="ar"] span.lang-ar,
html[lang="ar"] a.lang-ar,
html[lang="ar"] li.lang-ar { display: inline; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .container  { padding: 0 1.25rem; }

  .stats-bar  { flex-wrap: wrap; }
  .stat-item  { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  html[dir="rtl"] .stat-item:nth-child(odd) { border-right: none; border-left: 1px solid var(--border); }

  .cta-banner { padding: 64px 0; }
  .page-hero  { padding: calc(var(--nav-h) + 48px) 0 56px; }
}
