:root {
  color-scheme: light;
  --orange: #ff6b1a;
  --orange-dark: #d94f07;
  --charcoal: #1f2426;
  --ink: #263238;
  --muted: #66737b;
  --line: #dce4e8;
  --surface: #ffffff;
  --soft: #f5f7f4;
  --mint: #dff3ea;
  --teal: #08756f;
  --shadow: 0 24px 70px rgba(31, 36, 38, 0.16);
  font-family: Tajawal, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  direction: ltr;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 228, 232, 0.8);
  backdrop-filter: blur(18px);
  direction: rtl;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--charcoal);
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--orange);
  font-size: 1.35rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a,
.header-cta,
.store-button {
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-links a:hover {
  color: var(--charcoal);
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 0 1rem;
  color: #ffffff;
  background: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

.header-cta:hover,
.store-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 36, 38, 0.92) 0%, rgba(31, 36, 38, 0.68) 42%, rgba(31, 36, 38, 0.18) 100%),
    linear-gradient(0deg, rgba(31, 36, 38, 0.38), rgba(31, 36, 38, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(760px, 100%);
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 7vw, 6rem);
  color: #ffffff;
  direction: rtl;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.store-button {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  font-weight: 900;
}

.store-button.primary {
  border-color: var(--orange);
  background: var(--orange);
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
}

.store-button.compact {
  min-height: 52px;
  box-shadow: none;
}

.store-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.store-icon::before,
.store-icon::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.store-icon::before {
  inset: 6px 7px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.store-icon::after {
  right: -4px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.store-icon.apple::before {
  inset: 5px 8px 7px;
  border-radius: 45% 45% 50% 50%;
  clip-path: none;
}

.store-icon.apple::after {
  top: 2px;
  right: 7px;
  bottom: auto;
  width: 6px;
  height: 8px;
  border-radius: 6px 0 6px 0;
  transform: rotate(28deg);
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 7vw, 6rem);
  color: #ffffff;
  background: var(--teal);
  direction: rtl;
}

.download-band > *,
.split-section > *,
.section-heading,
.feature-card,
.workflow-item > * {
  min-width: 0;
}

.download-band h2,
.cta-band h2,
.section-heading h2,
.split-copy h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.download-band h2,
.download-band .section-kicker,
.cta-band h2,
.cta-band .section-kicker {
  color: #ffffff;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 7vw, 6rem);
  background: var(--soft);
  direction: rtl;
}

.section-heading {
  display: grid;
  max-width: 860px;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(38, 50, 56, 0.06);
}

.feature-card h3 {
  margin: 1.2rem 0 0.65rem;
  color: var(--charcoal);
  font-size: 1.2rem;
}

.feature-card p,
.split-copy p,
.workflow-item span,
.site-footer {
  color: var(--muted);
  line-height: 1.65;
}

.feature-icon {
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--mint);
  position: relative;
}

.feature-icon::before,
.feature-icon::after {
  position: absolute;
  content: "";
}

.feature-icon.route::before {
  inset: 15px 12px;
  border: 3px solid var(--teal);
  border-top: 0;
  border-left: 0;
  transform: rotate(-22deg);
}

.feature-icon.route::after {
  right: 9px;
  bottom: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
}

.feature-icon.meal::before {
  left: 12px;
  top: 13px;
  width: 28px;
  height: 22px;
  border: 3px solid var(--teal);
  border-radius: 6px 6px 12px 12px;
}

.feature-icon.meal::after {
  left: 17px;
  bottom: 10px;
  width: 18px;
  height: 3px;
  background: var(--orange);
}

.feature-icon.payment::before {
  inset: 13px 10px;
  border: 3px solid var(--teal);
  border-radius: 7px;
}

.feature-icon.payment::after {
  left: 15px;
  top: 23px;
  width: 22px;
  height: 4px;
  background: var(--orange);
}

.feature-icon.notify::before {
  left: 15px;
  top: 12px;
  width: 22px;
  height: 28px;
  border: 3px solid var(--teal);
  border-radius: 14px 14px 8px 8px;
}

.feature-icon.notify::after {
  left: 22px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 7vw, 6rem);
  background: #ffffff;
  direction: rtl;
}

.workflow-list {
  display: grid;
  gap: 0.75rem;
}

.workflow-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.workflow-item strong {
  color: var(--charcoal);
}

.cta-band {
  display: grid;
  justify-items: start;
  gap: 1.2rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 7vw, 6rem);
  background: var(--charcoal);
  direction: rtl;
}

.header-cta.large {
  min-height: 54px;
  padding-inline: 1.25rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1rem, 7vw, 6rem);
  background: #ffffff;
  font-size: 0.95rem;
  direction: rtl;
}

@media (max-width: 980px) {
  .feature-grid,
  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .download-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow: hidden;
    direction: rtl;
  }

  .brand {
    justify-self: start;
  }

  .nav-links,
  .site-header .header-cta {
    display: none;
  }

  .hero {
    min-height: 80svh;
    max-width: 100vw;
  }

  .hero-image {
    object-position: 70% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(31, 36, 38, 0.95), rgba(31, 36, 38, 0.7)),
      linear-gradient(0deg, rgba(31, 36, 38, 0.46), rgba(31, 36, 38, 0.1));
  }

  .hero-content {
    direction: rtl;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    padding-inline: 2.2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.55rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .download-band h2,
  .section-heading h2,
  .split-copy h2,
  .cta-band h2 {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .download-band h2 {
    max-width: 100%;
  }

  .download-band,
  .cta-band {
    text-align: center;
  }

  .section,
  .split-section,
  .site-footer {
    text-align: right;
  }

  .download-band,
  .section,
  .split-section,
  .cta-band,
  .site-footer {
    direction: rtl;
    max-width: 100vw;
    overflow: hidden;
    padding-inline: 2.2rem;
  }

  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .workflow-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }
}
