/* ============================================================
   Mantooq landing page — shared styles (RTL + LTR)
   ============================================================ */

:root {
  --green: #00a576;
  --green-dark: #00815d;
  --green-deep: #045e46;
  --mint: #36bf8d;
  --mint-soft: #e2f6ee;
  --ink: #10241c;
  --muted: #55665f;
  --bg: #ffffff;
  --bg-soft: #f3f9f6;
  --dark: #0b0f0d;
  --dark-2: #131a16;
  --line: #e3ece8;
  --gold: #f5b83d;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(16, 36, 28, 0.06);
  --shadow-md: 0 10px 34px rgba(16, 36, 28, 0.1);
  --shadow-lg: 0 24px 60px rgba(4, 94, 70, 0.22);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 0.5em;
  font-weight: 700;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

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

.brand img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 26px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 165, 118, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 165, 118, 0.4);
}

.btn-light {
  background: #fff;
  color: var(--green-deep);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-inline-start: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  margin-block: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(54, 191, 141, 0.5), transparent 60%),
    radial-gradient(700px 460px at 8% 110%, rgba(2, 70, 52, 0.65), transparent 62%),
    linear-gradient(155deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  /* faint sound-wave motif */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0 3px,
    transparent 3px 26px
  );
  mask-image: radial-gradient(700px 420px at 50% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 420px at 50% 45%, #000, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-block: 72px 0;
  min-height: 560px;
}

.hero-copy {
  padding-block-end: 88px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: #ffe9a8;
}

.hero-sub {
  font-size: 1.13rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 30px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badges img {
  height: 56px;
  width: auto;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.store-badges a:hover img {
  transform: translateY(-3px);
}

.hero-phone {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(340px, 78vw);
  margin-bottom: -6px;
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: auto -18% -8% -18%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent);
  filter: blur(30px);
  z-index: 0;
}

.hero-phone .phone-frame {
  position: relative;
  z-index: 1;
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ---------- stats strip ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -48px;
  margin-bottom: 8px;
}

.stats-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 12px;
}

.stat {
  text-align: center;
  padding-inline: 12px;
}

.stat + .stat {
  border-inline-start: 1px solid var(--line);
}

.stat .num {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat .num svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.stat .lbl {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 165, 118, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ============================================================
   App tour (dark)
   ============================================================ */
.tour {
  background: var(--dark);
  color: #fff;
}

.tour .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.tour .eyebrow {
  background: rgba(54, 191, 141, 0.16);
  color: var(--mint);
}

.tour-scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tour-scroller::-webkit-scrollbar {
  display: none;
}

.tour-shot {
  flex: 0 0 auto;
  width: min(290px, 74vw);
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tour-shot:hover {
  transform: translateY(-6px);
  border-color: rgba(54, 191, 141, 0.5);
}

.tour-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.tour-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tour-nav button:hover {
  background: rgba(54, 191, 141, 0.25);
  border-color: var(--mint);
}

.tour-nav svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Achievements strip
   ============================================================ */
.achieve {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(54, 191, 141, 0.35), transparent 60%),
    linear-gradient(140deg, var(--green-deep), var(--green-dark));
  color: #fff;
}

.achieve-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.achieve h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.achieve p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.achieve-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.achieve-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.achieve-list svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #ffe9a8;
  margin-top: 4px;
}

.achieve-shot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  justify-self: center;
  width: min(300px, 80vw);
}

/* ============================================================
   Premium
   ============================================================ */
.premium {
  background: var(--bg-soft);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.perk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.perk svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--green);
}

.premium-note {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 165, 118, 0.09), rgba(245, 184, 61, 0.12));
  border: 1px dashed rgba(0, 165, 118, 0.45);
  border-radius: var(--radius);
  padding: 22px 28px;
  color: var(--ink);
  font-size: 0.99rem;
}

/* ============================================================
   Testimonials
   ============================================================ */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.rating-summary .score {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.starline {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.starline svg {
  width: 22px;
  height: 22px;
}

.rating-summary .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-card .stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}

.quote-card .stars svg {
  width: 16px;
  height: 16px;
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
}

.quote-card cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================================
   Donation
   ============================================================ */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.donate-card {
  background:
    radial-gradient(600px 300px at 12% 120%, rgba(54, 191, 141, 0.4), transparent 60%),
    linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.5vw, 52px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.donate-card--support {
  background:
    radial-gradient(600px 300px at 88% 120%, rgba(245, 184, 61, 0.28), transparent 60%),
    linear-gradient(135deg, #12211c, #23443a);
}

.donate-card .donate-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.donate-card .donate-icon svg {
  width: 28px;
  height: 28px;
  color: #ffe9a8;
}

.donate-card .btn {
  justify-self: start;
}

.donate-card h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 10px;
}

.donate-card p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
  max-width: 560px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--bg-soft);
}

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
}

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

.faq-item summary svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--green);
  transition: transform 0.3s ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============================================================
   Final CTA + footer
   ============================================================ */
.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.cta-final .tagline {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 26px;
}

.cta-final .store-badges {
  justify-content: center;
}

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 52px;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 300px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.socials a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    min-height: 0;
  }

  .hero-copy {
    padding-block-end: 0;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-phone {
    margin-top: 36px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achieve-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .donate-grid {
    grid-template-columns: 1fr;
  }

  .achieve-list li {
    text-align: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding-block: 64px;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 20px;
  }

  .nav.open .nav-links a {
    padding-block: 10px;
    width: 100%;
  }

  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .stats-card {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .stat:nth-child(3) {
    border-inline-start: none;
  }

  .features-grid,
  .quotes-grid,
  .premium-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
