/* صفحات HJ Team العامة (الخصوصية والدعم) — نفس هوية التطبيق.
   CSP البوابة: لا أنماط مضمّنة ولا خطوط خارجية ⇒ كل شيء من /site. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --green: #22cc4f; --green-soft: rgba(34, 204, 79, .12); --gold: #c9a227;
  --bg: #f5f6f8; --card: #ffffff; --fg: #111318; --muted: #5f6670; --line: #e5e7eb;
  --hero: #0f1115; --hero-2: #1a1d23; --hero-fg: #eceef1; --hero-muted: #a1a7b0;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d10; --card: #17191e; --fg: #eceef1; --muted: #a1a7b0; --line: #262a31;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d10; --card: #17191e; --fg: #eceef1; --muted: #a1a7b0; --line: #262a31;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.8 "IBM Plex Sans Arabic", -apple-system, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── الهيدر ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--hero-fg);
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(34,204,79,.22), transparent 60%),
    linear-gradient(160deg, var(--hero) 0%, #15181d 55%, var(--hero-2) 100%);
  padding: 22px 16px 88px;
}
.hero::before { /* شبكة خفيفة مثل لوحة القيادة */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero::after { /* خط أخضر يجري أسفل الهيدر */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.bar, .hero-body { position: relative; max-width: 860px; margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-fg); font-weight: 700; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.lang {
  display: inline-flex; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 3px;
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--hero-muted); background: none; border: 0;
  padding: 4px 14px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: var(--green); color: #0b0d10; }

.hero-body { display: flex; align-items: center; gap: 28px; margin-top: 44px; }
.mark { width: 112px; height: 112px; flex: none; filter: drop-shadow(0 10px 30px rgba(34,204,79,.25)); }
.mark path { fill: none; stroke-width: 50; stroke-linecap: butt; stroke-linejoin: miter; }
.mark .w { stroke: #fff; }
.mark .g { stroke: var(--green); }
.mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.6,0,.2,1) forwards; }
.mark path:nth-child(2) { animation-delay: .08s; } .mark path:nth-child(3) { animation-delay: .16s; }
.mark path:nth-child(4) { animation-delay: .24s; } .mark path:nth-child(5) { animation-delay: .32s; }
.mark path:nth-child(6) { animation-delay: .5s; animation-duration: 1.1s; }
.mark path:nth-child(7) { animation-delay: .62s; animation-duration: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--green);
  background: rgba(34,204,79,.1); border: 1px solid rgba(34,204,79,.25);
  padding: 2px 12px; border-radius: 999px; margin-bottom: 10px;
}
.hero h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.25; margin: 0; font-weight: 700; }
.hero p { color: var(--hero-muted); margin: 8px 0 0; }

/* ── المحتوى ─────────────────────────────────────────────── */
main { max-width: 860px; margin: -56px auto 0; padding: 0 16px 56px; position: relative; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px; margin-bottom: 14px;
}
.lead { font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid .card { margin: 0; }
.ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 10px;
}
.ico svg { width: 22px; height: 22px; }
.ico.no { background: rgba(239,68,68,.1); color: #ef4444; }
h2 { font-size: 19px; margin: 30px 4px 12px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--green); }
h3 { font-size: 16px; margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); }
.card.lead p { color: var(--fg); }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { position: relative; padding-inline-start: 30px; margin: 8px 0; color: var(--muted); }
ul.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(239,68,68,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* الدعم */
.contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.contact .who { color: var(--muted); font-size: 14px; }
.contact .mail { font-size: 20px; font-weight: 700; color: var(--fg); direction: ltr; unicode-bidi: embed; word-break: break-all; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600;
  background: var(--green); color: #0b0d10; border: 0; border-radius: 12px; padding: 10px 18px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(34,204,79,.3); transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(34,204,79,.38); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow); overflow: hidden;
}
summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; margin-inline-start: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-weight: 700; transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 40px; }
footer nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 6px; }

/* اللغة */
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }
html[lang="en"] body { font-family: "IBM Plex Sans Arabic", -apple-system, "Segoe UI", sans-serif; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hero-body { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 30px; }
  .mark { width: 84px; height: 84px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none; stroke-dashoffset: 0; }
  .hero::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
