/* Motorak marketing site — shared AR (RTL) / EN (LTR) stylesheet.
   Brand tokens mirror motorak-app/src/theme/tokens.ts. Logical properties
   keep one sheet working for both directions. */

:root {
  --indigo: #1B1E54;
  --indigo2: #2A2E78;
  --indigo-tint: rgba(27, 30, 84, 0.06);
  --indigo-tint2: rgba(27, 30, 84, 0.12);
  --amber: #FF9D2E;
  --amber-tint: #FFF4E5;
  --amber-dark: #B36A00;
  --mint: #3FE0A8;
  --mint-tint: #EEFBF4;
  --mint-dark: #0F6E56;
  --charcoal: #1A1A1A;
  --slate: #6B7280;
  --slate2: #9AA1AD;
  --bg: #F8F9FB;
  --bg2: #F1F2F6;
  --card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --border2: rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

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

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

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 251, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled { border-bottom-color: var(--border2); }

.nav { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--indigo); }

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.brand .ar-name { color: var(--amber-dark); font-weight: 600; }

.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 500; color: var(--slate); }

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

.lang-switch {
  border: 1px solid var(--border2);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  white-space: nowrap;
}

.lang-switch:hover { border-color: var(--indigo-tint2); background: var(--indigo-tint); }

/* ---------- Hero ---------- */

.hero { padding-block: 64px 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-tint);
  color: var(--indigo);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.hero h1 {
  margin-top: 20px;
  color: var(--indigo);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero h1 .mark {
  background-image: linear-gradient(transparent 68%, rgba(255, 157, 46, 0.4) 68%);
  border-radius: 4px;
}

.hero h1 .sub-line { display: inline-block; margin-top: 8px; font-size: 0.6em; }

.hero .lead-emph { margin-top: 22px; color: var(--indigo); font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.6; }

.hero .lead-emph + .lead { margin-top: 8px; }

.hero .lead { margin-top: 20px; color: var(--slate); font-size: 19px; line-height: 1.85; max-width: 34em; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--indigo);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px;
  cursor: default;
}

.store-badge svg { width: 24px; height: 24px; flex: none; }

.store-badge .lines { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }

.store-badge .small { font-size: 11px; opacity: 0.75; font-weight: 500; }

.store-badge .big { font-size: 16.5px; font-weight: 600; }

.store-badge.light { background: #fff; color: var(--indigo); }

.tagline {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--slate2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tagline .sep { color: var(--amber); }

/* Phone mockups */

.phone-wrap { position: relative; display: grid; place-items: center; }

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 6% 10%;
  background:
    radial-gradient(45% 45% at 25% 30%, rgba(255, 157, 46, 0.22), transparent 70%),
    radial-gradient(50% 50% at 78% 70%, rgba(63, 224, 168, 0.20), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgba(27, 30, 84, 0.10), transparent 72%);
  filter: blur(28px);
  border-radius: 50%;
}

.phone {
  position: relative;
  width: min(310px, 76vw);
  border-radius: 44px;
  background: linear-gradient(160deg, #23264F, #101235);
  padding: 11px;
  box-shadow:
    0 34px 70px -24px rgba(27, 30, 84, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone .screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 9 / 19.2;
}

.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */

.section { padding-block: 88px; }

.section.on-white { background: var(--card); }

.section.on-amber { background: var(--amber-tint); }

.sec-head { max-width: 740px; margin-inline: auto; text-align: center; margin-bottom: 52px; }

.sec-head h2 {
  color: var(--indigo);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.sec-head .sub { margin-top: 14px; color: var(--slate); font-size: 17.5px; line-height: 1.8; }

/* Pain cards */

.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.pain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 2px rgba(27, 30, 84, 0.04);
}

.pain-card .q-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--amber-tint);
  color: var(--amber-dark);
  margin-bottom: 14px;
}

.pain-card .q-icon svg { width: 20px; height: 20px; }

.pain-card p { font-size: 16.5px; font-weight: 600; color: var(--indigo); line-height: 1.55; }

.pain-closer {
  margin-top: 40px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: var(--indigo);
}

.pain-closer .mark {
  background-image: linear-gradient(transparent 68%, rgba(255, 157, 46, 0.4) 68%);
  border-radius: 4px;
}

/* Pillars */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px;
}

.pillar .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--indigo-tint);
  color: var(--indigo);
  margin-bottom: 18px;
}

.pillar .icon svg { width: 24px; height: 24px; }

.pillar.ai .icon { background: var(--mint-tint); color: var(--mint-dark); }

.pillar h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--indigo); font-size: 18.5px; font-weight: 700; margin-bottom: 10px; }

.soon-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber-dark);
  background: var(--amber-tint);
  border: 1px solid rgba(255, 157, 46, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pillar p { color: var(--slate); font-size: 15.5px; line-height: 1.8; }

/* Screenshots */

.shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.shot { text-align: center; }

.shot .phone { width: 100%; border-radius: 34px; padding: 8px; box-shadow: 0 22px 44px -20px rgba(27, 30, 84, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }

.shot .screen { border-radius: 27px; }

.shot .cap { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--slate); }

/* Save money */

.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.money-card {
  background: var(--card);
  border: 1px solid rgba(255, 157, 46, 0.22);
  border-radius: 18px;
  padding: 26px 24px;
}

.money-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--amber-tint);
  color: var(--amber-dark);
  margin-bottom: 16px;
}

.money-card .icon svg { width: 22px; height: 22px; }

.money-card p { color: var(--charcoal); font-size: 16px; line-height: 1.8; }

.money-card p strong { color: var(--indigo); }

/* FAQ */

.faq { max-width: 760px; margin-inline: auto; }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--indigo);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--amber);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
  flex: none;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin-top: 12px; color: var(--slate); font-size: 15.5px; line-height: 1.85; }

/* Final CTA */

.cta { background: linear-gradient(135deg, #1B1E54 0%, #2A2E78 100%); color: #fff; text-align: center; }

.cta img.mark { width: 64px; height: 64px; border-radius: 16px; margin-inline: auto; margin-bottom: 24px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); }

.cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.35; }

.cta .sub { margin-top: 14px; font-size: 17px; opacity: 0.82; }

.cta .badges { justify-content: center; margin-top: 34px; }

/* Footer */

.site-footer { background: var(--card); border-top: 1px solid var(--border); padding-block: 34px; }

.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--slate); }

.footer-row .brand { font-size: 16px; }

.footer-row .brand img { width: 28px; height: 28px; border-radius: 7px; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a:hover { color: var(--indigo); }

/* App Store / Play review both check that the site names the legal entity
   behind the app. The full company name goes on its own line so it does not
   stretch the footer row out of shape. */
.footer-entity { text-align: end; line-height: 1.55; }

.footer-entity .co { display: block; font-size: 12.5px; }

/* ---------- Reveal animation (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
  .money-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-block: 48px 40px; }
  .nav-links { display: none; }
  .nav { gap: 14px; }
  .nav .lang-switch { margin-inline-start: auto; }
  .section { padding-block: 64px; }
}

@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { letter-spacing: 0; }
}

@media (max-width: 420px) {
  .pain-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .store-badge { width: 100%; justify-content: center; }
}
