:root {
  --brand: #14595b;
  --brand-2: #1d7a7c;
  --brand-dark: #0b3536;
  --brand-soft: #e3f1f1;
  --gold: #e3a535;
  --gold-soft: #fdf2dc;
  --ink: #15201f;
  --muted: #566664;
  --line: #dde7e6;
  --paper: #ffffff;
  --page: #f4f8f8;
  --shadow: 0 10px 30px rgba(11, 53, 54, 0.10);
  --shadow-lg: 0 28px 70px rgba(5, 30, 31, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fc3c4;
    --brand-2: #39a9aa;
    --brand-soft: #132e2f;
    --gold-soft: #33291a;
    --ink: #e6efee;
    --muted: #a2b3b1;
    --line: #243433;
    --paper: #121b1b;
    --page: #0b1212;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
html[dir="ltr"] body { font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 22px; height: 22px; flex: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.ltr-num { direction: ltr; unicode-bidi: isolate; }
.section { padding: 84px 20px; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 38px); text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 680px; margin: 12px auto 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; font-size: 16px;
}
.btn:hover { transform: translateY(-2px); }
.btn.big { padding: 15px 28px; font-size: 18px; }
.btn.primary { background: var(--gold); color: #2a1c02; box-shadow: 0 10px 24px rgba(227, 165, 53, .35); }
.btn.primary:hover { box-shadow: 0 14px 30px rgba(227, 165, 53, .45); }
.btn.light { background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.35); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, #082b2c 0%, #14595b 50%, #1d7a7c 100%);
  padding: 22px 0 96px;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.g1 { width: 620px; height: 620px; inset-inline-end: -180px; top: -200px; background: radial-gradient(circle, rgba(227,165,53,.22), transparent 65%); }
.g2 { width: 520px; height: 520px; inset-inline-start: -200px; bottom: -260px; background: radial-gradient(circle, rgba(79,195,196,.25), transparent 65%); }
.nav { position: relative; display: flex; align-items: center; gap: 24px; margin-bottom: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { text-decoration: none; opacity: .85; font-weight: 600; }
.links a:hover { opacity: 1; }
.lang { text-decoration: none; padding: 5px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 15px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(227,165,53,.25); }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 18px 0 14px; font-weight: 800; }
html[dir="ltr"] .hero h1 { font-size: clamp(30px, 3.8vw, 44px); }
.lead { font-size: 19px; opacity: .9; margin: 0 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 15px; opacity: .85; }
.meta.soft { margin-top: 4px; opacity: .7; }
.meta svg { width: 18px; height: 18px; }
.frame { background: #0e2223; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.frame .bar { display: flex; gap: 6px; padding: 10px 12px; background: #183334; }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hero .frame { transform: perspective(1400px) rotateY(-6deg); }
html[dir="ltr"] .hero .frame { transform: perspective(1400px) rotateY(6deg); }

/* ---------- Stats ---------- */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.stat svg { color: var(--brand); width: 28px; height: 28px; }
.stat b { display: block; font-size: 16px; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feat h3 { font-size: 19px; margin: 14px 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Tour ---------- */
.tour { background: linear-gradient(180deg, var(--brand-soft), var(--page)); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.frame.big { max-width: 1040px; margin: 0 auto; }
.shots { position: relative; }
.shot { display: none; }
.shot.on { display: block; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.plan.popular { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.pop { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
html[dir="ltr"] .pop { transform: translateX(-50%); }
.plan h3 { font-size: 21px; }
.price { margin: 10px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 36px; color: var(--brand); direction: ltr; unicode-bidi: isolate; }
.price span { color: var(--muted); font-size: 15px; }
.limits { color: var(--muted); font-size: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0; font-size: 15.5px; }
.plan li svg, .offers svg, .reqs svg { width: 18px; height: 18px; color: var(--brand); margin-top: 5px; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.extras > * { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 0; }
.extras h3 { font-size: 18px; margin-bottom: 8px; }
.addons { list-style: none; padding: 0; margin: 0; }
.addons li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.addons li:last-child { border-bottom: 0; }
.offers { list-style: none; background: var(--gold-soft) !important; border-color: transparent !important; }
.offers li { display: flex; gap: 8px; margin: 8px 0; font-weight: 600; }

/* ---------- Install ---------- */
.install { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 19px; }
.steps h3 { font-size: 18px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.reqs { text-align: center; }
.reqs h3 { font-size: 18px; }
.reqs ul { list-style: none; padding: 0; margin: 12px 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.reqs li { display: flex; gap: 6px; color: var(--muted); }

/* ---------- FAQ ---------- */
#faq h2 { margin-bottom: 32px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--brand); font-size: 22px; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* ---------- Contact & footer ---------- */
.contact { background: linear-gradient(140deg, #082b2c, #14595b); color: #fff; text-align: center; }
.contact .sub { color: rgba(255,255,255,.8); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer { padding: 26px 0 90px; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Download bar on phones once the hero's button is out of sight. */
.sticky { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 10; display: none; }
@media (max-width: 760px) { .sticky.show { display: flex; } }

/* ---------- Privacy page ---------- */
.doc .section { padding-top: 40px; }
.doc h1 { font-size: 30px; margin: 18px 0 8px; }
.doc h2 { text-align: start; font-size: 21px; margin-top: 28px; }
.doc p { color: var(--muted); }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--brand); text-decoration: none; font-weight: 700; }
html[dir="ltr"] .back svg { transform: scaleX(-1); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; }
html:not(.no-js) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html:not(.no-js) .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feat { transition: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .frame, html[dir="ltr"] .hero .frame { transform: none; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .links { display: none; }
  .lang { margin-inline-start: auto; }
  .nav { margin-bottom: 34px; }
  .wrap { padding: 0 16px; }
  .section, .wrap.section { padding: 60px 16px; }
  .feats, .plans, .steps, .extras { grid-template-columns: 1fr; }
  .stat { padding: 14px; flex-direction: column; gap: 6px; }
  .cta .btn { flex: 1 1 100%; }
  .plan.popular { margin-top: 10px; }
}

/* ---------- AI assistant ---------- */
.ai { background: linear-gradient(160deg, var(--brand-dark), var(--brand)); color: #fff; }
.ai-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.ai h2 { color: #fff; text-align: start; margin-top: 14px; }
.ai-text > p { color: rgba(255,255,255,.82); font-size: 17px; }
.ai-qs { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.ai-qs li { align-self: flex-start; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 16px 16px 16px 4px; font-weight: 700; }
html[dir="rtl"] .ai-qs li { border-radius: 16px 16px 4px 16px; }
.ai-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: rgba(255,255,255,.88); }
.ai-points li { display: flex; gap: 8px; align-items: flex-start; }
.ai-points svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 3px; }
.ai figure { margin: 0; }
.ai figure img { display: block; width: 100%; height: auto; }
.ai figcaption { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.7); text-align: center; }
@media (max-width: 980px) { .ai-grid { grid-template-columns: 1fr; } }
