/* DARB — shared site styles. Brand tokens match packages/design-system/src/tokens/palette.ts */
:root {
  --ink: #0a0a10;
  --ink-2: #0d0e16;
  --surface: #14151f;
  --surface-2: #191b28;
  --border: #272a3d;
  --border-bright: #3a3e5c;
  --violet: #5b3df5;
  --violet-soft: #8c78fb;
  --lime: #c8ff3d;
  --text: #f5f5f8;
  --text-muted: #a3a4bd;
  --text-faint: #6a6b85;
  --max: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.latin { font-family: 'Archivo Black', 'IBM Plex Sans Arabic', sans-serif; direction: ltr; unicode-bidi: isolate; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- decorative atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lime); font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--lime); display: inline-block; }

.corner-mark {
  position: absolute; width: 22px; height: 22px; opacity: 0.6;
}
.corner-mark.tl { top: 28px; right: 24px; border-top: 2px solid var(--violet-soft); border-right: 2px solid var(--violet-soft); }
.corner-mark.br { bottom: 10px; left: 24px; border-bottom: 2px solid var(--violet-soft); border-left: 2px solid var(--violet-soft); }

.badge-dot {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted);
}
.badge-dot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px 2px rgba(200,255,61,0.6); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 19px; display: block; }
.brand-latin { font-size: 9px; letter-spacing: 3px; color: var(--text-faint); }

.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--text-muted); }
.nav-links a { position: relative; padding-bottom: 2px; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: none; cursor: pointer; white-space: nowrap; transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-lime { background: var(--lime); color: #0e1208; box-shadow: 0 8px 24px -8px rgba(200,255,61,0.45); }
.btn-lime:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border-bright); }
.btn-ghost:hover { border-color: var(--violet-soft); }

.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 35% 25%, rgba(91,61,245,0.38), transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(200,255,61,0.10), transparent 50%);
  filter: blur(10px);
}
.hero-topbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.5px;
  padding: 18px 0 54px; position: relative; z-index: 1;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: center;
  padding-bottom: 40px;
}
.hero-copy { position: relative; }
.hero-scroll-rail {
  position: absolute; top: -10px; left: -54px; writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: 3px; color: var(--text-faint);
  display: flex; align-items: center; gap: 10px; height: 220px;
}
.hero-scroll-rail::after { content: ""; width: 1px; flex: 1; background: linear-gradient(var(--text-faint), transparent); }

.hero-title {
  font-size: clamp(54px, 8.4vw, 108px);
  line-height: 0.92; font-weight: 800; margin: 0 0 22px; letter-spacing: -1px;
}
.hero-title .line2 { color: var(--lime); display: block; }
.hero-title .scribble { display: block; width: 110px; height: 14px; margin: 10px 0 2px; }

.hero-copy p.lede {
  color: var(--text-muted); font-size: 18px; max-width: 46ch; margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; color: var(--text-faint); font-size: 13px; }

.hero-tags {
  position: absolute; bottom: -10px; right: 0; display: flex; gap: 10px;
  font-size: 11px; color: var(--text-faint);
}

/* phone stage */
.phone-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone-ring {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  border: 1px dashed rgba(140,120,251,0.3);
}
.phone-ring.r2 { width: 340px; height: 340px; border-style: solid; border-color: rgba(200,255,61,0.12); }
.phone-badge {
  position: absolute; top: 30px; right: -4px;
  background: var(--surface-2); border: 1px solid var(--border-bright); border-radius: 999px;
  padding: 8px 14px; font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.phone-badge strong { color: var(--lime); }

.phone {
  width: 270px; aspect-ratio: 9 / 19.3; border-radius: 40px;
  border: 9px solid #1a1b28; background: #08090d;
  box-shadow: 0 40px 90px -24px rgba(91,61,245,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative; overflow: hidden; transform: rotate(-3deg);
  z-index: 2;
}
.phone::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(91,61,245,0.22), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 26px);
}
.phone-statusbar { position: absolute; top: 10px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 10.5px; color: #9a9bb3; z-index: 2; }
.phone-search { position: absolute; top: 32px; left: 13px; right: 13px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 9px 12px; font-size: 10.5px; color: #9a9bb3; display: flex; justify-content: space-between; z-index: 2; }
.phone-route-svg { position: absolute; inset: 0; }
.phone-banner { position: absolute; top: 76px; left: 13px; right: 13px; background: #171827; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 10px 12px; z-index: 2; }
.phone-banner-row { display: flex; align-items: center; justify-content: space-between; }
.phone-banner-dist { font-weight: 700; font-size: 12.5px; }
.phone-banner-sub { color: #9a9bb3; font-size: 10.5px; margin-top: 2px; }
.phone-turn-icon { width: 25px; height: 25px; border-radius: 8px; background: var(--lime); display: flex; align-items: center; justify-content: center; color: #10140a; font-weight: 800; font-size: 13px; }
.phone-puck { position: absolute; width: 20px; height: 20px; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 2; }
.phone-bottom { position: absolute; bottom: 13px; left: 13px; right: 13px; display: flex; justify-content: space-between; align-items: center; background: #171827; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 9px 11px; font-size: 10px; color: #c9cad8; z-index: 2; }

/* ---------- stats bar ---------- */
.stats-section { padding: 0 0 90px; position: relative; z-index: 1; }
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell { background: var(--surface); padding: 30px 22px; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--lime); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-quote {
  background: linear-gradient(135deg, var(--lime), #9fe02e);
  color: #0e1208; padding: 26px 26px; display: flex; align-items: center;
  font-weight: 700; font-size: 16px; line-height: 1.6;
}

/* ---------- route / features ---------- */
.route-section { padding: 30px 0 70px; position: relative; z-index: 1; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 0; max-width: 20ch; }
.section-sub { color: var(--text-muted); font-size: 15px; max-width: 40ch; margin: 10px 0 0; }

.route { position: relative; display: grid; gap: 22px; }
.route-line-svg { position: absolute; top: 8px; bottom: 8px; right: 27px; width: 4px; height: calc(100% - 16px); z-index: 0; }

.waypoint {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.waypoint:hover { border-color: var(--border-bright); transform: translateX(-2px); }
.waypoint-pin {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--surface-2); border: 1.5px solid var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--lime); font-size: 16px; position: relative; z-index: 2;
  box-shadow: 0 0 0 6px var(--ink);
}
.waypoint-body { display: flex; flex-direction: column; justify-content: center; }
.waypoint-body h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.waypoint-body p { margin: 0; color: var(--text-muted); font-size: 14.5px; max-width: 58ch; }

/* ---------- process ---------- */
.process-section { padding: 40px 0 90px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; position: relative;
}
.process-num { font-family: 'Archivo Black', sans-serif; font-size: 13px; color: var(--violet-soft); letter-spacing: 1px; margin-bottom: 18px; }
.process-card h4 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.process-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ---------- about ---------- */
.plain-section { padding: 70px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.two-col { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 56px; align-items: center; }
.about-graphic { position: relative; height: 280px; }
.about-text { color: var(--text-muted); font-size: 16px; }
.about-text strong { color: var(--text); }
.about-text p { margin: 0 0 18px; }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 16.5px; gap: 16px; }
.faq-q .chevron { color: var(--text-faint); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-a { color: var(--text-muted); font-size: 15px; margin-top: 10px; max-width: 64ch; display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- download cta ---------- */
.cta-section { padding: 60px 0 100px; position: relative; z-index: 1; }
.cta-card {
  border: 1px solid var(--border-bright);
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 70%);
  border-radius: 28px; padding: 60px 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr auto 0.7fr; align-items: center; gap: 36px;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 85% 20%, rgba(91,61,245,0.3), transparent 55%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 12px; font-weight: 800; }
.cta-card p { color: var(--text-muted); margin: 0 0 26px; font-size: 15.5px; max-width: 42ch; }
.cta-meta { color: var(--text-faint); font-size: 12px; margin-top: 14px; }
.cta-qr {
  background: #fff; border-radius: 16px; padding: 14px; width: 128px; text-align: center;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6);
}
.cta-qr img, .cta-qr svg { width: 100px; height: 100px; margin: 0 auto; }
.cta-qr span { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; color: #0e1208; }
.iraq-pins { opacity: 0.95; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand-block .brand { margin-bottom: 14px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; max-width: 36ch; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.footer-contact a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-faint);
}
.footer-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

.marquee {
  background: var(--violet); color: #0e1208; padding: 13px 0; overflow: hidden;
  white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
}
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- legal pages ---------- */
.legal-header { padding: 54px 0 18px; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; font-weight: 800; }
.legal-updated { color: var(--text-faint); font-size: 13px; }
.legal-body { padding: 48px 0 100px; max-width: 760px; }
.legal-body h2 { font-size: 20px; margin: 44px 0 12px; font-weight: 700; color: var(--text); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: 15.5px; line-height: 1.9; }
.legal-body ul { padding-inline-start: 22px; margin: 10px 0; }
.legal-body li { margin-bottom: 9px; }
.legal-note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 22px 0; font-size: 14px; color: var(--text-muted); }
.back-link { color: var(--lime); font-size: 14px; font-weight: 700; display: inline-block; margin-bottom: 22px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--border-bright); border-radius: 12px;
  padding: 14px 20px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all 0.25s ease; z-index: 100; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 2; text-align: center; }
  .hero-copy .eyebrow, .hero-ctas { justify-content: center; }
  .hero-copy p.lede { margin-inline: auto; }
  .hero-scroll-rail { display: none; }
  .phone-stage { order: 1; min-height: 460px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-quote { grid-column: span 2; }
  .two-col { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 44px 26px; }
  .cta-card .hero-ctas { justify-content: center; }
  .cta-qr { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-contact { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
