:root {
  --primary: #22C55E;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e6e8ef;
  --radius: 18px;
  --max: 980px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #151922;
    --text: #eef1f7;
    --muted: #9aa3b5;
    --border: #252b37;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[dir="rtl"] body, body[dir="rtl"] { font-family: "Cairo", "Inter", system-ui, sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #ffffff));
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
nav.links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); text-decoration: none; }
.lang {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer;
}

.hero { padding: 88px 0 56px; text-align: center; }
.hero .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; margin: 18px 0 14px; letter-spacing: -0.02em; }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.store:hover { text-decoration: none; opacity: .9; }
.store small { display: block; font-size: 11px; opacity: .75; font-weight: 500; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 72px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .icon { font-size: 26px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.doc { padding: 56px 0 80px; max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.callout { background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--primary); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; margin: 14px 0; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
}
.button {
  display: inline-block; background: var(--primary); color: #fff; padding: 12px 22px;
  border-radius: 12px; font-weight: 600; margin-top: 8px;
}
.button:hover { text-decoration: none; opacity: .92; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="ar"] [data-lang="ar"] { display: revert; }

@media (max-width: 640px) {
  nav.links a.hide-sm { display: none; }
  .hero { padding: 56px 0 40px; }
}
