/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --blue:   #1e3a6e;
  --blue2:  #1d4ed8;
  --green:  #16a34a;
  --green2: #22c55e;
  --teal:   #0d9488;
  --text:   #0f172a;
  --muted:  #475569;
  --light:  #94a3b8;
  --border: #e2e8f0;
  --bg:     #f8fafc;
  --white:  #ffffff;
  --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 10px;
  --sh-sm: 0 1px 3px rgba(0,0,0,.08);
  --sh:    0 4px 16px rgba(0,0,0,.08);
  --sh-lg: 0 12px 40px rgba(0,0,0,.12);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout helpers ────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ── Typography ────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green2); background: #f0fdf4;
  padding: 4px 14px; border-radius: 20px; border: 1px solid #bbf7d0; margin-bottom: 14px;
}
.section-title { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 16px; }
.section-sub   { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 0; line-height: 1.6; }
.section-sub.left { margin: 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: var(--r); font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .18s; white-space: nowrap;
  font-family: var(--font);
}
.btn-primary { background: var(--blue2); color: var(--white); }
.btn-primary:hover { background: #1e40af; transform: translateY(-1px); box-shadow: var(--sh); }
.btn-green  { background: var(--green); color: var(--white); }
.btn-green:hover { background: #15803d; transform: translateY(-1px); box-shadow: var(--sh); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--blue); border-color: var(--border); }
.btn-outline-dark:hover { border-color: var(--blue2); color: var(--blue2); }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-arrow::after { content: ' →'; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .2s, box-shadow .2s; padding: 0 24px;
}
#nav.scrolled { background: rgba(15,23,42,.95); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.2); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 7px 14px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; border-radius: 6px; transition: all .15s; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta { display: flex; gap: 10px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0c1a3a 0%, #0f3460 40%, #0d5c3a 100%);
  position: relative; overflow: hidden; padding-top: 64px;
}
/* Subtle grid overlay */
#hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* Glow orbs */
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.glow-1 { width: 500px; height: 500px; background: rgba(29,78,216,.25); top: -100px; right: -100px; }
.glow-2 { width: 400px; height: 400px; background: rgba(16,163,74,.18); bottom: -80px; left: -80px; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 80px 24px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; color: #86efac;
  font-weight: 500; margin-bottom: 24px;
}
.hero-eyebrow span { width: 6px; height: 6px; background: var(--green2); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-size: 52px; font-weight: 700; color: var(--white); line-height: 1.1;
  letter-spacing: -.5px; margin-bottom: 24px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 18px; color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; }
.mock-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 24px; backdrop-filter: blur(8px);
}
.mock-card.main { padding: 28px; }
.mock-label { font-size: 11px; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.mock-amount { font-size: 32px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.mock-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.mock-row { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.mock-row strong { color: var(--white); }
.mock-status { display: inline-flex; align-items: center; gap: 6px; background: rgba(22,163,74,.2); border: 1px solid rgba(22,163,74,.4); color: #86efac; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.mock-dot { width: 6px; height: 6px; background: var(--green2); border-radius: 50%; }
.mock-qr {
  width: 80px; height: 80px; border-radius: 8px; background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  float: right; margin-left: 16px;
}
.mock-float {
  position: absolute; right: -20px; bottom: -24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(8px);
}
.mock-float-icon { font-size: 20px; }
.mock-float-text { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 500; }
.mock-float-sub  { font-size: 11px; color: rgba(255,255,255,.4); }

/* ── Stats bar ─────────────────────────────────────────────────────────── */
#stats-bar { background: var(--blue); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,.12); padding: 8px 0; }
.stat-item:last-child { border-right: none; }
.stat-num  { font-size: 36px; font-weight: 700; color: var(--white); }
.stat-unit { font-size: 18px; color: #60a5fa; }
.stat-desc { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ── Features ──────────────────────────────────────────────────────────── */
#features { background: var(--bg); }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover { border-color: #93c5fd; box-shadow: var(--sh); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── How it works ──────────────────────────────────────────────────────── */
#how { background: var(--white); }
.how-tabs { display: flex; gap: 0; margin-bottom: 52px; border-bottom: 2px solid var(--border); }
.how-tab {
  padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s; font-family: var(--font);
}
.how-tab.active { color: var(--blue2); border-bottom-color: var(--blue2); }
.how-pane { display: none; }
.how-pane.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.how-step {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--r);
  transition: background .15s; margin-bottom: 4px;
}
.how-step:hover { background: var(--bg); }
.how-step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue2);
  color: var(--white); font-size: 13px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.how-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.how-step p  { font-size: 14px; color: var(--muted); line-height: 1.6; }
.how-visual {
  background: linear-gradient(135deg, #0f172a, #1e3a6e);
  border-radius: 16px; padding: 32px; position: sticky; top: 100px;
}

/* ── Channels ──────────────────────────────────────────────────────────── */
#channels { background: var(--bg); }
.channel-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 24px; text-align: center; transition: all .2s;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: #93c5fd; }
.channel-icon { font-size: 44px; margin-bottom: 16px; }
.channel-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.channel-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Partners / Participants ───────────────────────────────────────────── */
#participants { background: var(--white); }
.participant-list { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.participant-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
  font-weight: 500; color: var(--muted); background: var(--bg);
  transition: all .15s;
}
.participant-chip:hover { border-color: var(--blue2); color: var(--blue2); background: #eff6ff; }
.participant-chip .pip { font-size: 18px; }

/* ── CTA ───────────────────────────────────────────────────────────────── */
#cta {
  background: linear-gradient(135deg, #0c1a3a 0%, #0f3460 55%, #0d5c3a 100%);
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
#cta .container { position: relative; z-index: 1; }
#cta h2 { font-size: 42px; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: -.3px; }
#cta p  { font-size: 18px; color: rgba(255,255,255,.65); margin-bottom: 40px; }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; margin: 0 auto; }
.cta-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 32px; text-align: left; transition: all .2s;
}
.cta-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.cta-card-icon { font-size: 32px; margin-bottom: 12px; }
.cta-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cta-card p  { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 20px; line-height: 1.55; }
.cta-card .btn { width: 100%; justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────────────── */
#footer { background: #0c1a3a; padding: 48px 0 24px; }
.footer-inner { display: flex; gap: 48px; align-items: flex-start; margin-bottom: 40px; }
.footer-brand { flex: 1; }
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 260px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom span { font-size: 13px; color: rgba(255,255,255,.3); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 968px) {
  .hero-inner   { grid-template-columns: 1fr; padding: 60px 24px; }
  .hero-visual  { display: none; }
  .hero-title   { font-size: 38px; }
  .grid-2, .grid-3, .grid-4, .stats-grid, .cta-cards { grid-template-columns: 1fr 1fr; }
  .how-pane.active { grid-template-columns: 1fr; }
  .how-visual   { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .hero-title { font-size: 30px; }
  .grid-2, .grid-3, .grid-4, .stats-grid, .cta-cards { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
  .nav-links { display: none; }
  .footer-links { flex-direction: column; gap: 24px; }
}
