:root {
  --ink: #14213d;
  --ink-2: #24314f;
  --ink-3: #5b6478;
  --line: #e6e3dc;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --amber: #f2a900;
  --amber-strong: #c98400;
  --amber-soft: #fff4d6;
  --route: #2f6fed;
  --live: #0f9d6e;
  --live-soft: #dbf4e9;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.07);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.22);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Manrope', system-ui, Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--route); outline-offset: 2px;
}
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(242, 169, 0, .35); }
.btn-primary:hover { background: #ffb915; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 33, 61, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; font-weight: 600; direction: ltr; }
.brand b { font-weight: 800; color: var(--amber-strong); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding: 8px 12px; border-radius: 10px;
}
.nav a:not(.btn):hover { background: rgba(20, 33, 61, .06); }
.nav-cta { margin-inline-start: 8px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .8rem;
  color: var(--ink-3); padding: 6px 10px; border-radius: 999px; cursor: pointer; min-width: 36px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: 64px 0 80px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(242, 169, 0, .22), transparent 70%);
  pointer-events: none;
}
html[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(15, 157, 110, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(15, 157, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 157, 110, 0); } }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 800; }
.hl { color: var(--amber-strong); display: block; }
.lead { font-size: 1.12rem; color: var(--ink-3); max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.hero-points li::before { content: "✓"; color: var(--live); font-weight: 800; margin-inline-end: 8px; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  width: 330px; background: #fff; border-radius: 34px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; z-index: 1;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 12px; direction: ltr; }
.phone-title { font-weight: 800; font-size: .95rem; }
.pill-live { background: var(--live-soft); color: var(--live); font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.map { border-radius: 22px; width: 100%; height: auto; }
.stop circle:first-child { fill: #fff; stroke: #14213d; stroke-width: 3; }
.stop.mine circle:first-child { fill: var(--amber); stroke: #fff; stroke-width: 4; }
.eta-card {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 16px;
}
.eta-card small { display: block; color: #b9c2d6; font-size: .78rem; font-weight: 600; }
.eta-card strong { font-size: 1.05rem; }
.eta-time { background: var(--amber); color: var(--ink); font-weight: 800; padding: 6px 12px; border-radius: 12px; direction: ltr; }

.toast {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); min-width: 230px; max-width: 260px;
  animation: float 6s ease-in-out infinite;
}
.toast b { display: block; font-size: .9rem; }
.toast span:not(.ico) { display: block; font-size: .8rem; color: var(--ink-3); }
.ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; }
.ico-amber { background: var(--amber-soft); }
.ico-green { background: var(--live-soft); color: var(--live); font-weight: 800; }
.ico-blue { background: #e3ecff; }
.t1 { top: 40px; inset-inline-start: -10px; }
.t2 { top: 46%; inset-inline-end: -20px; animation-delay: -2s; }
.t3 { bottom: 30px; inset-inline-start: 0; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-grid div { display: flex; flex-direction: column; gap: 2px; }
.stats-grid strong { font-size: 2.2rem; font-weight: 800; color: var(--amber); line-height: 1.1; }
.stats-grid span { color: #c7cedd; font-weight: 500; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head.left { text-align: start; margin: 0; }
.section-head h2, .panel h2, .contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--amber-strong); margin-bottom: 12px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.app-card {
  grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.app-card:nth-child(4), .app-card:nth-child(5) { grid-column: span 3; }
.app-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.app-card.featured p { color: #c7cedd; }
.app-ico { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--amber-soft); border-radius: 16px; margin-bottom: 18px; }
.app-card h3 { font-size: 1.25rem; }
.app-card p { color: var(--ink-3); flex: 1; }
.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 8px; }
.tags li { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.featured .tags li { background: rgba(255, 255, 255, .12); color: #fff; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feat-ico { font-size: 1.5rem; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); margin-bottom: 16px; }
.feat h3 { font-size: 1.1rem; }
.feat p { color: var(--ink-3); margin: 0; }

/* Safety */
.section.dark { background: linear-gradient(160deg, #14213d 0%, #1d2d52 100%); color: #fff; }
.section.dark .lead { color: #c7cedd; }
.section.dark .eyebrow { color: var(--amber); }
.safety-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.alerts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alerts li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
}
.a-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(242, 169, 0, .16); font-size: 1.1rem; }
.alerts b { display: block; margin-bottom: 2px; }
.alerts span:not(.a-ico) { color: #c7cedd; font-size: .92rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-3); margin: 0; }

/* Privacy / languages */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-inline-start: 34px; color: var(--ink-2); }
.checks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--live-soft); color: var(--live); font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}
.lang-panel { background: var(--amber-soft); border-color: #f5dc9c; }
.lang-panel p { color: var(--ink-2); }
.lang-samples { display: grid; gap: 10px; margin-top: 20px; }
.lang-samples div { background: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.lang-samples div[lang="ar"] { font-family: var(--font-ar); }
.lang-samples small { font-family: var(--font); font-weight: 800; font-size: .72rem; color: var(--amber-strong); background: var(--amber-soft); border-radius: 8px; padding: 2px 8px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 600; color: var(--amber-strong); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-3); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-mail { font-weight: 600; }
.contact-mail a { color: var(--route); }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.form input, .form textarea {
  font: inherit; font-weight: 500; padding: 12px 14px; border-radius: 12px; border: 1px solid #d6d2c8; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--route); }
.form [aria-invalid="true"] { border-color: #d64545; }
.form-note { font-size: .82rem; color: var(--ink-3); margin: 0; }
.form-error { color: #d64545; font-weight: 700; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c7cedd; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: .9rem; }
.site-footer .brand { color: #fff; font-size: 1.1rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .safety-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 10px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card, .app-card:nth-child(4), .app-card:nth-child(5) { grid-column: span 1; }
  .app-card.featured { grid-column: span 2; }
}
@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 10px;
  }
  .menu-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-tools { margin-inline-start: auto; }
  .nav {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none;
    box-shadow: 0 20px 30px rgba(20, 33, 61, .08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .alerts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 60px; }
  .feat-grid, .steps, .apps-grid, .form .row { grid-template-columns: 1fr; }
  .app-card.featured { grid-column: span 1; }
  .phone { width: 290px; }
  .toast { min-width: 0; max-width: 210px; padding: 8px 10px; }
  .t1 { inset-inline-start: -4px; top: 10px; }
  .t2 { inset-inline-end: -4px; }
  .t3 { display: none; }
  .panel, .form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
