/* =========================================================
   اکسو — Exo Landing Page
   Design tokens derived from Figma
   ========================================================= */

/* ---- Font (Vazirmatn as a free stand-in for Yekan Bakh) ---- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --navy:        #022060;
  --navy-700:    #021d56;
  --navy-600:    #4e6697;
  --green:       #13ea8e;
  --green-soft:  #e7fdf3;

  /* Neutrals */
  --text-900:    #101828;
  --text-700:    #344054;
  --text-500:    #667085;
  --white:       #ffffff;
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --border:      #eaecf0;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 8px -2px rgba(16,24,40,.10), 0 2px 4px -2px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 8px -4px rgba(16,24,40,.06);

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------------- Reset ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  color: var(--text-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm),
              inset 0 0 0 1px rgba(255,255,255,.12),
              inset 0 -2px 0 rgba(16,24,40,.12);
}
.btn--primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn--secondary {
  background: var(--white);
  color: var(--navy-700);
  border-color: var(--navy-600);
}
.btn--secondary:hover { background: var(--bg-soft); transform: translateY(-1px); }

/* ---------------- Logo ---------------- */
.logo {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1px;
  font-family: system-ui, sans-serif;
  direction: ltr;
}
.logo__ex { color: var(--navy); }
.logo__o  { color: var(--green); }
.logo--light .logo__ex { color: var(--white); }

/* ---------------- Badge ---------------- */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--green-soft);
  border: 1px solid #c6f5df;
  padding: 5px 12px;
  border-radius: var(--r-full);
}

/* ---------------- Section head ---------------- */
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; max-width: 640px; }
.section-head__lead {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.4;
}

/* ---------------- Real images sizing ---------------- */
.hero__img { width: 100%; height: auto; object-fit: contain; }
.phone { object-fit: contain; background: transparent; box-shadow: none; border: 0; }
.service__icon { object-fit: contain; background: transparent; border: 0; }
.features__hero { width: 100%; height: auto; object-fit: contain; }
.partners__map .map { width: 100%; height: auto; object-fit: contain; }
.avatar { object-fit: cover; }

/* ---------------- Image placeholders ---------------- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, #f1f4f9 0 12px, #e8edf5 12px 24px);
  border: 1px dashed #cdd6e4;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-500);
  font-size: 13px;
  font-weight: 500;
  min-height: 40px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-900);
}
.nav a { position: relative; }
.nav a:hover { color: var(--navy); }
.nav a::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: -6px; height: 2px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.header__burger span { width: 24px; height: 2px; background: var(--text-900); border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; background: radial-gradient(120% 90% at 50% 0%, var(--green-soft) 0%, #fff 55%); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  max-width: 860px;
}
.hero__title .accent { color: var(--green); }
.hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-700);
  max-width: 580px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__media { width: 100%; margin-top: 24px; }
.hero__img { height: clamp(280px, 40vw, 560px); border-radius: var(--r-xl); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-soft); }
.how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 48px;
}
.how__phones { position: relative; height: 640px; }
.phone {
  filter: drop-shadow(0 20px 40px rgba(16,24,40,.18));
  width: auto;
}
.how__phones .phone--back  { position: absolute; inset-inline-end: 6%;  top: 0;    height: 88%; }
.how__phones .phone--front { position: absolute; inset-inline-start: 6%; bottom: 0; height: 100%; z-index: 2; }

.how__steps { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; align-items: flex-start; gap: 20px; }
.step__num {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700; font-size: 20px;
  border-radius: var(--r-md);
}
.step__text h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.step__text p { color: var(--text-700); }

/* ---- Stats ---- */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 64px;
  padding: 40px clamp(24px, 5vw, 64px);
  background: var(--navy);
  border-radius: var(--r-xl);
  color: var(--white);
}
.stats__item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats__num { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.stats__label { font-size: clamp(16px, 2vw, 20px); font-weight: 600; }
.stats__divider { width: 1px; height: 48px; background: rgba(255,255,255,.25); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: clamp(56px, 8vw, 96px) 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px) 16px;
  margin-top: 48px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px;
  transition: transform .15s ease;
}
.service:hover { transform: translateY(-4px); }
.service__icon {
  width: 160px; height: 160px;
  max-width: 100%;
}
.service__name { font-size: 18px; font-weight: 700; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-soft); }
.features__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}
.features__col { display: flex; flex-direction: column; gap: 40px; }
.feature { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feature__body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature__body p { color: var(--text-700); font-size: 15px; }
.feature__icon {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--green-soft);
  color: var(--navy);
}
.feature__icon svg { width: 32px; height: 32px; }
.features__hero { height: 480px; border-radius: var(--r-xl); }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download { padding: clamp(56px, 8vw, 96px) 0; }
.download__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-badge { width: 130px; height: 44px; border-radius: var(--r-sm); }
.download__phones { position: relative; height: 640px; }
.download__phones .phone--back  { position: absolute; inset-inline-start: 6%; top: 0;    height: 88%; }
.download__phones .phone--front { position: absolute; inset-inline-end: 6%;  bottom: 0; height: 100%; z-index: 2; }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-soft); }
.partners__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.partners__form { display: flex; flex-direction: column; gap: 16px; }
.partners__form .section-head { margin-bottom: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partners__form input,
.partners__form select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text-900);
}
.partners__form input:focus,
.partners__form select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.partners__form .btn { align-self: flex-start; }
.partners__map .map { height: 520px; border-radius: var(--r-xl); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: clamp(56px, 8vw, 96px) 0; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.review:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: var(--r-full); flex: 0 0 auto; }
.review__meta strong { display: block; font-size: 16px; }
.review__meta span { font-size: 14px; color: var(--text-500); }
.review__stars { color: #f5b800; letter-spacing: 3px; font-size: 18px; }
.review__quote { color: var(--text-700); line-height: 1.8; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-soft); }
.faq__list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 8px;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--navy);
  font-size: 22px; font-weight: 400;
  transition: transform .2s ease;
}
.faq__item[open] summary::before { content: "–"; }
.faq__item p {
  padding: 0 56px 22px 16px;
  color: var(--text-700);
  line-height: 1.9;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: var(--white); padding-top: 80px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(32px, 5vw, 64px);
}
.footer__col h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.footer__col h4 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer__newsletter p { color: rgba(255,255,255,.75); margin-bottom: 24px; max-width: 44ch; }
.footer .stores .store-badge {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}
.footer__qr { display: flex; gap: 16px; margin-top: 24px; }
.footer__qr .qr {
  width: 92px; height: 116px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.9); color: var(--navy);
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: rgba(255,255,255,.8); }
.footer__links a:hover { color: var(--green); }
.footer__contact .logo { margin-bottom: 8px; }
.footer__block { margin-bottom: 20px; }
.footer__block p { color: rgba(255,255,255,.75); }
.footer__social { display: flex; gap: 16px; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: background .15s ease;
}
.footer__social a:hover { background: var(--green); color: var(--navy); }
.footer__social svg { width: 20px; height: 20px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 64px; padding: 24px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  gap: 16px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .features__inner { grid-template-columns: 1fr; }
  .features__center { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav, .header .btn--primary { display: none; }
  .header__burger { display: flex; }
  body.nav-open .nav {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; inset-inline: 0;
    background: var(--white); padding: 24px var(--gutter);
    box-shadow: var(--shadow-md); gap: 18px;
  }
  .how__grid,
  .download__inner,
  .partners__inner { grid-template-columns: 1fr; }
  .how__phones, .download__phones { height: 520px; max-width: 360px; margin-inline: auto; }
  .stats { flex-direction: column; gap: 28px; }
  .stats__divider { width: 60%; height: 1px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service__icon { width: 120px; height: 120px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .partners__map { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
