/* =========================================================
   Naqleh — Landing page styles
   Design tokens + base + components + RTL + responsive
   ========================================================= */

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

html, body {
  font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #fff;
  color: #0D0D0D;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
body { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }

/* ---------- Tokens ---------- */
:root {
  --black: #0D0D0D;
  --gray-1: #FAFAFA;
  --gray-2: #F2F2F2;
  --gray-3: #ADADAD;
  --gray-4: #888;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #FFE066;
  --container: 1240px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
}

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.brand-ar {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-3);
  margin-inline-start: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: color .15s;
}
.nav-links a:hover { color: var(--black); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--gray-2);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: background .15s;
}
.lang-pill:hover { background: #e8e8e8; }

/* mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--gray-2);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
}
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #222; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--black); border: 1.5px solid var(--border); }
.btn-light:hover { background: var(--gray-1); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 15px; border-radius: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gray-2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -2.5px;
  font-weight: 900;
  margin-bottom: 22px;
}
.hero h1 .accent {
  display: inline-block;
  position: relative;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  inset-inline: -4px;
  bottom: 6px;
  height: 16px;
  background: var(--accent);
  z-index: -1;
  border-radius: 2px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--gray-4);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-4);
  font-weight: 500;
}
.hero-meta-item svg { flex-shrink: 0; color: var(--black); }

/* ---------- Phone mockup ---------- */
.phone-stage {
  position: relative;
  height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-stage::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 13, 13, 0.06) 0%, transparent 70%);
}

.phone {
  width: 300px;
  height: 610px;
  background: #0D0D0D;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0D0D0D;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}
.phone-content {
  padding: 50px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ph-logo {
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 6px;
}
.ph-logo-ar {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 30px;
}
.ph-truck {
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
}
.ph-cta {
  background: #fff;
  color: #0D0D0D;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}
.ph-cta-2 {
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

/* Floating cards around the phone */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
.float-1 { top: 60px;     left: -10px;  animation-delay: 0s; }
.float-2 { bottom: 110px; right: -20px; animation-delay: -3s; }
.float-3 { top: 280px;    right: -50px; animation-delay: -1.5s; }

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-icon.dark { background: #0D0D0D; }
.float-title { font-size: 13px; font-weight: 700; color: var(--black); }
.float-sub   { font-size: 11px; color: var(--gray-4); margin-top: 1px; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 900;
  margin-bottom: 18px;
  max-width: 720px;
}
.section-lead {
  font-size: 18px;
  color: var(--gray-4);
  line-height: 1.6;
  max-width: 600px;
}

/* ---------- How it works (diagonal-cut black band) ---------- */
.how {
  background: #0D0D0D;
  color: #fff;
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
  margin: 40px 0;
}
.how-inner { padding: 140px 0; }
.how .section-eyebrow { color: rgba(255, 255, 255, 0.45); }
.how .section-lead    { color: rgba(255, 255, 255, 0.6); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform .25s, background .25s;
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}
.step-num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: 24px;
}
.step h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.4px; }
.step p  { font-size: 15px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.feature {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
.feature p  { font-size: 15px; color: var(--gray-4); line-height: 1.6; }

/* ---------- Truck showcase ---------- */
.truck-showcase {
  background: var(--gray-1);
  border-radius: 32px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 30px;
}
.truck-name { font-size: 32px; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 14px; }
.truck-desc { font-size: 16px; color: var(--gray-4); line-height: 1.6; }
.truck-showcase .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.spec-card { background: #fff; border-radius: 16px; padding: 18px 20px; }
.spec-val   { font-size: 26px; font-weight: 900; color: var(--black); letter-spacing: -0.6px; }
.spec-label { font-size: 12px; color: var(--gray-4); margin-top: 4px; font-weight: 500; }
.truck-img  { display: flex; justify-content: center; align-items: center; }

/* ---------- Cities ---------- */
.cities { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.city-chip {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--gray-2);
  font-size: 14px;
  font-weight: 600;
}
.city-chip.live { background: var(--black); color: #fff; }
.city-chip.live::before {
  content: '●';
  margin-inline-end: 6px;
  color: #5ED687;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ---------- Download CTA ---------- */
.download-section { padding-top: 0; }
.download {
  background: #0D0D0D;
  color: #fff;
  border-radius: 36px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 0 100px;
}
.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}
.download > * { position: relative; }
.download h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 900;
  margin-bottom: 18px;
}
.download p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 36px;
  max-width: 560px;
}

.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0D0D0D;
  padding: 14px 22px;
  border-radius: 16px;
  transition: transform .15s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn .small { font-size: 11px; color: var(--gray-4); display: block; }
.store-btn .big   { font-size: 16px; font-weight: 800; line-height: 1.1; }

/* ---------- Footer ---------- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { margin-bottom: 6px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-4);
  margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--black); }
.footer-tag {
  font-size: 14px;
  color: var(--gray-4);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 280px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-3);
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .city-chip.live::before { animation: none; }
}

/* =========================================================
   RTL OVERRIDES
   ========================================================= */
[dir="rtl"] {
  font-family: 'Cairo', system-ui, sans-serif;
}

/* Make Arabic copy a touch larger to match visual weight of the Latin set */
[dir="rtl"] .hero h1   { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .section-title { letter-spacing: -0.5px; line-height: 1.3; }
[dir="rtl"] .download h2   { letter-spacing: -0.5px; line-height: 1.3; }

/* Mirror the truck illustrations so the cab leads the reading direction */
[dir="rtl"] .truck-svg,
[dir="rtl"] .truck-svg-detail {
  transform: scaleX(-1);
}

/* Mirror float-card positions around the phone */
[dir="rtl"] .float-1 { left: auto;  right: -10px; }
[dir="rtl"] .float-2 { right: auto; left: -20px; }
[dir="rtl"] .float-3 { right: auto; left: -50px; }

/* Hamburger menu rotation direction stays the same; nothing to flip there */

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .float-3   { display: none; }
}

@media (max-width: 960px) {
  .container { padding: 0 22px; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 22px 18px;
    transform: translateY(calc(-100% - 80px));
    transition: transform .25s ease, visibility .25s ease;
    visibility: hidden;
    z-index: 49;
  }
  .nav-links a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links.open { transform: translateY(0); visibility: visible; }

  .menu-toggle { display: inline-flex; }
  .hide-on-mobile { display: none; }

  .hero { padding: 56px 0 80px; }
  .hero-grid,
  .truck-showcase,
  .footer-grid,
  .features-grid,
  .how-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .truck-showcase, .download { padding: 40px; }
  section { padding: 60px 0; }
  .how-inner { padding: 100px 0; }
  .phone-stage { height: 540px; }
  .float-3 { display: none; }
  .hero p.lead { max-width: 100%; }
  .hero-meta { gap: 20px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 40px 0 60px; }
  .hero h1 { letter-spacing: -1px; margin-bottom: 18px; }
  [dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
  .hero-eyebrow { letter-spacing: 1px; padding: 5px 12px; }
  .btn-lg { height: 50px; font-size: 14px; padding: 0 22px; width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-meta { gap: 14px 24px; }

  .phone-stage { height: 520px; }
  .phone { width: 270px; height: 550px; }
  .float-card { padding: 12px 14px; }
  .float-1 { top: 30px; left: -4px; }
  .float-2 { bottom: 80px; right: -8px; }
  [dir="rtl"] .float-1 { left: auto; right: -4px; }
  [dir="rtl"] .float-2 { right: auto; left: -8px; }

  .truck-showcase { padding: 28px; border-radius: 24px; }
  .truck-showcase .specs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .spec-card { padding: 14px 16px; }
  .spec-val  { font-size: 22px; }

  .download { padding: 48px 24px; border-radius: 28px; margin-bottom: 60px; }
  .feature, .step { padding: 24px; }

  footer { padding: 40px 0 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .phone { width: 250px; height: 510px; }
  .float-1 { top: 16px; }
}
