/* عالندهة — v3 landing page. Warm cream/ink/orange identity, Cairo, RTL. */
:root {
  color-scheme: light;
  --cream: #fbefda;
  --cream-2: #f3e8d3;
  --line: #ebdfc8;
  --ink: #1f1f1f;
  --orange: #ff7a1a;
  --orange-dark: #e0660a;
  --orange-soft: #ffe0c2;
  --orange-deep: #a05a1f;
  --muted: #94897a;
  --faint: #b0a48f;
  --white: #ffffff;
  --success: #2f7d4f;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow-sm: 0 2px 10px rgba(31, 31, 31, 0.06);
  --shadow: 0 18px 44px rgba(31, 31, 31, 0.12);
  --shadow-orange: 0 12px 26px rgba(255, 122, 26, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Cairo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -100px; /* park off the top edge (no horizontal overflow in RTL) */
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 150ms var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { transform: translateY(-2px); background: var(--orange-dark); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.75rem);
  background: rgba(251, 239, 218, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-name { font-size: 1.35rem; font-weight: 900; }
.brand-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.brand-tile.sm { width: 36px; height: 36px; border-radius: 11px; }
.nav-links { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.nav-links a { font-weight: 700; color: var(--ink); opacity: 0.82; transition: opacity 150ms, color 150ms; }
.nav-links a:hover { opacity: 1; color: var(--orange-deep); }
.header-cta { height: 44px; }

/* ---------- Speed-lines motif ---------- */
.speed-lines {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background:
    linear-gradient(var(--orange), var(--orange)) 100% 0 / 120px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 60% 22px / 190px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 88% 44px / 90px 10px no-repeat;
  width: 210px;
  height: 60px;
  border-radius: var(--pill);
}
.speed-lines--a { top: 120px; inset-inline-start: -40px; }
.speed-lines--b { bottom: 60px; inset-inline-end: -30px; transform: scaleX(-1); }
.speed-lines--cta { top: 26px; inset-inline-end: 8%; opacity: 0.4; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.75rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
/* Grid/flex children must be allowed to shrink below content size, or long
   Arabic headlines force the column wider than the viewport. */
.hero-copy,
.hero-visual { min-width: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 0.32rem 0.9rem;
  border-radius: var(--pill);
  margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 900; }
.hero h1 .accent { color: var(--orange); }
.lede { margin-top: 1.1rem; max-width: 34ch; font-size: 1.12rem; color: #4a463f; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.15rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.store-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-button.on-dark { background: var(--cream); color: var(--ink); }
.store-copy { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-copy small { font-size: 0.66rem; opacity: 0.8; font-weight: 600; }
.store-copy b { font-size: 1.02rem; font-weight: 800; }
.store-icon { width: 24px; height: 24px; flex: none; background: currentColor; }
.store-icon.apple { -webkit-mask: var(--apple) center/contain no-repeat; mask: var(--apple) center/contain no-repeat; }
.store-icon.google { -webkit-mask: var(--play) center/contain no-repeat; mask: var(--play) center/contain no-repeat; }

.hero-stats {
  display: flex;
  gap: 1.8rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.hero-stats span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* Phone mockups */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.phone {
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink);
  border: 6px solid var(--ink);
  box-shadow: var(--shadow);
}
.phone img { border-radius: 28px; }
.phone--front {
  position: relative;
  z-index: 2;
  width: min(270px, 72%);
  transform: rotate(-3deg);
  animation: float 6s var(--ease) infinite;
}
.phone--back {
  position: absolute;
  z-index: 1;
  width: min(240px, 64%);
  inset-inline-start: 6%;
  top: 8%;
  transform: rotate(6deg);
  opacity: 0.96;
  animation: float 6s var(--ease) infinite reverse;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 2.75rem); }
.section--soft { background: var(--cream-2); }
.section-heading { max-width: var(--wrap); margin: 0 auto clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.section-kicker { font-size: 0.85rem; font-weight: 800; color: var(--orange-deep); letter-spacing: 0.02em; }
.section-kicker.light { color: var(--orange-soft); }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; margin-top: 0.5rem; }

/* Services + Features */
.service-grid, .feature-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.service-card, .feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.service-card:hover, .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card.is-live { border-color: rgba(255, 122, 26, 0.35); box-shadow: 0 10px 28px rgba(255, 122, 26, 0.12); }
.service-card h3, .feature-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0.9rem 0 0.4rem; }
.service-card p, .feature-card p { color: var(--muted); font-size: 0.98rem; }
.service-badge {
  position: absolute;
  inset-block-start: 1.1rem;
  inset-inline-start: 1.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.7rem;
  border-radius: var(--pill);
}
.service-badge.live { background: #e3f0e7; color: var(--success); }
.service-badge.soon { background: var(--cream-2); color: var(--muted); }

/* icons */
.service-icon, .feature-icon, .wi-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--orange-soft);
}
.service-icon::after, .feature-icon::after, .wi-icon::after {
  content: "";
  width: 28px;
  height: 28px;
  background: var(--orange-deep);
}
.service-icon.meal::after { -webkit-mask: var(--i-meal) center/contain no-repeat; mask: var(--i-meal) center/contain no-repeat; }
.service-icon.delivery::after { -webkit-mask: var(--i-box) center/contain no-repeat; mask: var(--i-box) center/contain no-repeat; }
.service-icon.taxi::after { -webkit-mask: var(--i-car) center/contain no-repeat; mask: var(--i-car) center/contain no-repeat; }
.feature-icon.route::after { -webkit-mask: var(--i-pin) center/contain no-repeat; mask: var(--i-pin) center/contain no-repeat; }
.feature-icon.discover::after { -webkit-mask: var(--i-search) center/contain no-repeat; mask: var(--i-search) center/contain no-repeat; }
.feature-icon.wallet::after { -webkit-mask: var(--i-wallet) center/contain no-repeat; mask: var(--i-wallet) center/contain no-repeat; }
.feature-icon.bell::after { -webkit-mask: var(--i-bell) center/contain no-repeat; mask: var(--i-bell) center/contain no-repeat; }

/* Steps */
.steps {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 0.8rem;
  border-radius: var(--pill);
  background: var(--orange);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: var(--shadow-orange);
}
.step h3 { font-size: 1.15rem; font-weight: 800; }
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* Partners split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 2.75rem);
}
.split-section > * { max-width: 560px; }
.split-copy { margin-inline-start: auto; }
.split-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 900; margin: 0.5rem 0 0.9rem; }
.split-copy > p { color: #4a463f; margin-bottom: 1.4rem; }
.workflow-list { display: grid; gap: 0.9rem; }
.workflow-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.workflow-item strong { display: block; font-weight: 800; }
.workflow-item span { color: var(--muted); font-size: 0.95rem; }
.wi-icon { width: 44px; height: 44px; flex: none; }
.wi-icon::after { width: 22px; height: 22px; }
.wi-icon.rest::after { -webkit-mask: var(--i-box) center/contain no-repeat; mask: var(--i-box) center/contain no-repeat; }
.wi-icon.cap::after { -webkit-mask: var(--i-car) center/contain no-repeat; mask: var(--i-car) center/contain no-repeat; }
.wi-icon.adm::after { -webkit-mask: var(--i-chart) center/contain no-repeat; mask: var(--i-chart) center/contain no-repeat; }

/* Download band */
.download-band {
  position: relative;
  overflow: hidden;
  margin: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.75rem);
  border-radius: 32px;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}
.download-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; text-align: center; }
.download-icon { margin: 0 auto 1rem; border-radius: 18px; box-shadow: var(--shadow); }
.download-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; margin: 0.4rem 0 1.6rem; }
.download-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer p { color: var(--muted); }
.site-footer small { color: var(--faint); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .lede, .split-copy > p { max-width: none; margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: 1; min-height: 340px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; text-align: center; }
  .split-section > * { max-width: none; margin-inline: auto; }
  .workflow-item { text-align: start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .service-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.4rem); }
  .hero h1 br { display: none; } /* let the long headline wrap naturally */
  .lede { font-size: 1.02rem; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero-stats strong { font-size: 1.2rem; }
  .store-button { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Inline SVG icon masks ---------- */
:root {
  --apple: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M16.4 12.8c0-2 1.6-3 1.7-3.1-1-1.4-2.4-1.6-2.9-1.6-1.2-.1-2.4.7-3 .7s-1.6-.7-2.6-.7c-1.3 0-2.6.8-3.3 2-1.4 2.4-.4 6 1 8 .7 1 1.5 2.1 2.5 2 1-.1 1.4-.6 2.6-.6s1.5.6 2.6.6 1.7-1 2.4-2c.7-1.1 1-2.1 1-2.2-.1 0-2-.8-2-3.1zM14.6 6.3c.5-.7.9-1.6.8-2.5-.8 0-1.7.5-2.3 1.2-.5.6-.9 1.5-.8 2.4.9.1 1.8-.4 2.3-1.1z"/></svg>');
  --play: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M3.6 2.2c-.3.2-.5.6-.5 1.1v17.4c0 .5.2.9.5 1.1l9.6-9.8zM14.5 13.3l2.7 2.7-11 6.3zM18.3 9.5l2.8 1.6c.7.4.7 1.4 0 1.8l-2.8 1.6-3-3zM14.5 10.7l-8.3-9 11 6.3z"/></svg>');
  --i-meal: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 3v7a2 2 0 0 0 2 2V3M6 3v18M18 3c-1.5 0-3 1.5-3 5s1.5 4 3 4v9"/></svg>');
  --i-box: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8l-9-5-9 5v8l9 5 9-5z"/><path d="M3 8l9 5 9-5M12 13v8"/></svg>');
  --i-car: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l1.5-4.5A2 2 0 0 1 8.4 7h7.2a2 2 0 0 1 1.9 1.5L19 13M5 13h14v4H5z"/><circle cx="7.5" cy="17.5" r="1.5"/><circle cx="16.5" cy="17.5" r="1.5"/></svg>');
  --i-pin: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21s7-6 7-11a7 7 0 0 0-14 0c0 5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></svg>');
  --i-search: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>');
  --i-wallet: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a2 2 0 0 1 2-2h13a1 1 0 0 1 1 1v2M3 7v10a2 2 0 0 0 2 2h14a1 1 0 0 0 1-1v-3M3 7h16"/><circle cx="17" cy="13" r="1.4"/></svg>');
  --i-bell: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 0 1-3.4 0"/></svg>');
  --i-chart: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20V10M10 20V4M16 20v-7M20 20H3"/></svg>');
}
