@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/plex-ar-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/plex-ar-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/plex-ar-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #fdf8ef;
  --surface: #ffffff;
  --line: #e2dccf;
  --line-soft: #efeadf;
  --ink: #12242f;
  --muted: #4a5f6b;
  --primary: #024970;
  --primary-ink: #ffffff;
  --accent: #1f6f59;
  --sun: #8a5a09;
  --shadow: 0 1px 2px rgba(2, 40, 62, .06), 0 8px 24px rgba(2, 40, 62, .05);

  --gap: 1.25rem;
  --radius: 14px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08171f;
    --surface: #102532;
    --line: #21404f;
    --line-soft: #17303e;
    --ink: #e6eef3;
    --muted: #9db2be;
    --primary: #7cc4e8;
    --primary-ink: #08171f;
    --accent: #5ccba6;
    --sun: #f0b866;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plex Arabic", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* ⛔ ولا انزلاقَ أفقيّاً في أضيق شاشة */
html, body { overflow-x: clip; }

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow { max-width: var(--measure); }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  inset-inline-start: -9999px;
}
.skip:focus {
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--surface);
  padding: .6rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

h1, h2, h3 {
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

/* اللاتينيّ داخل جملة عربيّة: يُعزل وحده */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ــــــ الرأس ــــــ */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line-soft);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  flex-wrap: wrap;
}

.mark {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
}
.mark img { width: 34px; height: 34px; display: block; }

.top nav {
  margin-inline-start: auto;
  display: flex;
  gap: 1.35rem;
  font-size: .95rem;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* ــــــ الواجهة ــــــ */

.hero {
  padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2rem, 6vw, 3.5rem);
}

.hero h1 {
  font-size: clamp(2rem, 6.2vw, 3.35rem);
  line-height: 1.28;
  letter-spacing: -.015em;
  max-width: 18ch;
}

.hero p {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 40ch;
  margin: 1.35rem 0 0;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 2rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .95rem;
  box-shadow: var(--shadow);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ــــــ الأرقام ــــــ */

section { padding-block: clamp(2.5rem, 7vw, 4rem); }

.head { margin-bottom: 2rem; }
.head h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  letter-spacing: -.01em;
}
.head p {
  color: var(--muted);
  margin: .6rem 0 0;
  max-width: 46ch;
}

.counts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.counts li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.counts b {
  display: block;
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.counts span {
  display: block;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
  margin-top: .2rem;
}

.note {
  color: var(--muted);
  font-size: .93rem;
  margin: 1.15rem 0 0;
  max-width: 52ch;
}

/* ــــــ المزايا ــــــ */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: .5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

/* ــــــ الصدق ــــــ */

.truth {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.truth h2 { font-size: clamp(1.35rem, 3.2vw, 1.75rem); }

.truth > p {
  color: var(--muted);
  max-width: 48ch;
  margin: .8rem 0 1.8rem;
}

.rows {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.rows h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: .35rem;
}
.rows p {
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
}

/* ــــــ سطرُ الحقيقة ــــــ */

.claim {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  background: var(--bg);
  max-width: 30rem;
}
.claim .value {
  font-size: 1.15rem;
  font-weight: 600;
}
.claim .src {
  margin: .45rem 0 0;
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ــــــ الذيل ــــــ */

footer {
  border-block-start: 1px solid var(--line-soft);
  margin-block-start: 2rem;
  padding-block: 2.5rem 3rem;
  font-size: .95rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

.sign {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
  max-width: 48ch;
}

/* ــــــ الصفحاتُ النصّيّة ــــــ */

.doc {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}
.doc h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  letter-spacing: -.015em;
}
.doc .lede {
  color: var(--muted);
  margin: .9rem 0 0;
  max-width: 46ch;
}
.doc article {
  max-width: 38rem;
  margin-block-start: 2.5rem;
}
.doc article h2 {
  font-size: 1.3rem;
  margin-block: 2.6rem .8rem;
  padding-block-end: .55rem;
  border-block-end: 1px solid var(--line-soft);
}
.doc article h3 {
  font-size: 1.06rem;
  margin-block: 1.8rem .6rem;
  color: var(--accent);
}
.doc article p { margin: 0 0 1.1rem; }
.doc article ul {
  margin: 0 0 1.1rem;
  padding-inline-start: 1.25rem;
}
.doc article li { margin-bottom: .5rem; }
.doc article strong { font-weight: 600; }

.stamp {
  margin-block-start: 3rem;
  padding-block-start: 1.2rem;
  border-block-start: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .92rem;
}

/* ــــــ الدعم ــــــ */

.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-block-start: 2.2rem;
  max-width: 46rem;
}
.contact .card p { margin-bottom: .6rem; }
.contact .card p:last-child { margin-bottom: 0; }
.mail {
  font-weight: 600;
  font-size: 1.05rem;
}

html[dir="ltr"] body { text-align: start; }
