/* ===========================================================================
   صفحة المجموعة (xfab.ae) — ثلاث بطاقات زجاجية على خلفية ليلية.
   مستقلّة تمامًا عن site.css: صفحة واحدة، بلا جافاسكربت، بأقل وزن ممكن.
   =========================================================================== */

@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/alexandria-var.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-arabic-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-arabic-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}

:root{
  --navy:#062b5c; --orange:#ff6600; --ink:#0b1b33;
  --soft:#b9cbe4; --dim:#8fa9c9;
  --display:'Alexandria','Plex Arabic',system-ui,sans-serif;
  --body:'Plex Arabic',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; font-family:var(--body); font-size:16px; line-height:1.6; color:#fff;
  min-height:100vh; display:flex; flex-direction:column; position:relative; overflow-x:hidden;
  background:
    radial-gradient(1100px 700px at 78% -12%, rgba(255,102,0,.30), transparent 62%),
    radial-gradient(900px 620px at 8% 108%, rgba(23,105,210,.34), transparent 60%),
    linear-gradient(170deg,#04203f 0%, #062b5c 46%, #04172f 100%);
  background-color:#04203f;
}
/* شبكة هندسية خفيفة — نفس روح ترويسة موقع الطباعة */
body::before{
  content:""; position:fixed; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(ellipse 85% 70% at 50% 35%,#000 35%,transparent 100%);
          mask-image:radial-gradient(ellipse 85% 70% at 50% 35%,#000 35%,transparent 100%);
}
h1,h2{font-family:var(--display); margin:0; font-weight:700}
a{text-decoration:none; color:inherit}
img{max-width:100%; height:auto}

.wrap{width:100%; max-width:1240px; margin-inline:auto; padding-inline:40px; position:relative; z-index:1}

/* ─── الترويسة ─────────────────────────────────────────────────────────── */
.hub-head{padding:38px 0 0}
.hub-head__row{display:flex; align-items:center; justify-content:space-between; gap:1rem}
.hub-logo{height:38px; width:auto; display:block}
.hub-lang{
  font-family:var(--body); font-size:.82rem; letter-spacing:.04em; color:var(--soft);
  border:1px solid rgba(255,255,255,.22); padding:.4rem .85rem; border-radius:999px;
  transition:border-color .18s ease, color .18s ease;
}
.hub-lang:hover,.hub-lang:focus-visible{color:#fff; border-color:rgba(255,255,255,.5)}

/* ─── المقدّمة ─────────────────────────────────────────────────────────── */
main{flex:1; display:flex; flex-direction:column; justify-content:center; padding:54px 0 70px}
.intro{text-align:center; max-width:720px; margin:0 auto 54px}
.kicker{
  display:inline-flex; align-items:center; gap:.5rem; font-size:.78rem; font-weight:600;
  letter-spacing:.14em; color:#ffb37a; text-transform:uppercase; margin-bottom:1.1rem;
}
.kicker::before,.kicker::after{content:""; width:28px; height:1px}
.kicker::before{background:linear-gradient(90deg,transparent,#ff8a3d)}
.kicker::after{background:linear-gradient(90deg,#ff8a3d,transparent)}
.intro h1{font-size:3.1rem; line-height:1.18; letter-spacing:-.01em; margin-bottom:.9rem}
.intro h1 em{font-style:normal; color:#ff8a3d}
.lead{font-size:1.06rem; line-height:1.85; color:var(--soft); margin:0}

/* ─── البطاقات ─────────────────────────────────────────────────────────── */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.card{
  position:relative; display:flex; flex-direction:column; min-height:384px;
  padding:34px 30px 28px; border-radius:22px; overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(160deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.055) 42%, rgba(255,255,255,.03) 100%);
  -webkit-backdrop-filter:blur(26px) saturate(140%);
          backdrop-filter:blur(26px) saturate(140%);
  box-shadow:0 26px 60px -24px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.26);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
/* لمعة زجاجية مائلة */
.card::after{
  content:""; position:absolute; top:-55%; inset-inline-start:-35%; width:70%; height:200%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent);
  transform:rotate(18deg); transition:inset-inline-start .5s ease;
}
.card:hover,.card:focus-visible{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.34);
  box-shadow:0 34px 70px -26px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.34);
}
.card:hover::after{inset-inline-start:85%}
.card:focus-visible{outline:2px solid #ff8a3d; outline-offset:3px}
.card > *{position:relative; z-index:1}

.card__ic{
  width:56px; height:56px; border-radius:15px; display:grid; place-items:center; margin-bottom:22px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
}
.card__ic svg{width:28px; height:28px; stroke:#fff; fill:none; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round}
.card h2{font-size:1.52rem; margin-bottom:.5rem}
.card__en{font-size:.74rem; letter-spacing:.18em; color:var(--dim); text-transform:uppercase;
  margin-bottom:1rem; direction:ltr}
html[dir="rtl"] .card__en{text-align:right}
.card p{font-size:.95rem; line-height:1.8; color:#c3d3e8; margin:0}
.tags{display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.1rem; list-style:none; padding:0}
.tags li{font-size:.75rem; color:#cfe0f5; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.14); padding:.25rem .6rem; border-radius:7px}
.go{margin-top:auto; padding-top:24px; display:flex; align-items:center; justify-content:space-between;
  gap:1rem; border-top:1px solid rgba(255,255,255,.12)}
.go b{font-size:.95rem; font-weight:600; color:#fff}
.arrow{width:38px; height:38px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto;
  background:var(--orange); color:var(--ink)}
.arrow svg{width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2.4;
  stroke-linecap:round; stroke-linejoin:round}
html[dir="ltr"] .arrow svg{transform:scaleX(-1)}

.card--3d{border-color:rgba(255,138,61,.4)}
.card--3d .card__ic{background:rgba(255,102,0,.2); border-color:rgba(255,138,61,.45)}
.card--soon{opacity:.88}
.card--soon .arrow{background:rgba(255,255,255,.16); color:#fff}
.badge{position:absolute; top:22px; inset-inline-end:22px; z-index:2; font-size:.72rem;
  font-weight:600; color:#0b1b33; background:#ffd0a8; padding:.25rem .6rem; border-radius:999px}

footer{padding:0 0 34px; text-align:center; color:#7d96b5; font-size:.84rem; line-height:2}
footer b{color:var(--soft); font-weight:600}
footer a{color:var(--soft); border-bottom:1px solid rgba(169,194,228,.3)}
footer a:hover{color:#fff}
.fnum{font-variant-numeric:tabular-nums; direction:ltr; unicode-bidi:isolate}

/* ─── صفحة «قريبًا» للصفائح المعدنية ──────────────────────────────────── */
.soon{max-width:660px; margin-inline:auto; text-align:center}
.soon__ic{
  width:84px; height:84px; margin:0 auto 28px; border-radius:24px; display:grid; place-items:center;
  background:linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 20px 44px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.26);
}
.soon__ic svg{width:40px; height:40px; stroke:#ffb37a; fill:none; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round}
.soon h1{font-size:2.6rem; line-height:1.2; margin-bottom:1rem}
.soon h1 em{font-style:normal; color:#ff8a3d}
.soon .lead{margin-bottom:34px}
.plan{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0 0 34px; padding:0; list-style:none;
}
.plan li{
  padding:18px 16px; border-radius:16px; font-size:.9rem; color:#cfe0f5;
  background:linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
}
.plan b{display:block; font-family:var(--display); font-size:1rem; color:#fff; margin-bottom:.3rem}
.btns{display:flex; flex-wrap:wrap; gap:12px; justify-content:center}
.btn{
  display:inline-flex; align-items:center; gap:.5rem; padding:.85rem 1.5rem; border-radius:12px;
  font-weight:600; font-size:.95rem; border:1px solid transparent; transition:transform .18s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn--primary{background:var(--orange); color:var(--ink)}
.btn--ghost{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); color:#fff}
.btn svg{width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round}

@media (max-width:980px){
  .wrap{padding-inline:20px}
  .hub-head{padding-top:24px}
  .intro h1{font-size:2.1rem}
  .cards{grid-template-columns:1fr; gap:18px}
  .card{min-height:0; padding:26px 22px 22px}
  main{padding:34px 0 40px}
  .intro{margin-bottom:34px}
  .soon h1{font-size:1.9rem}
  .plan{grid-template-columns:1fr; gap:10px}
}
@media (prefers-reduced-motion:reduce){
  .card,.card::after,.btn{transition:none}
  .card:hover{transform:none}
}

/* روابط داخل الفقرات — لا بدّ أن تبدو قابلة للضغط */
.lead a{color:#ff9d4d; border-bottom:1px solid rgba(255,157,77,.45)}
.lead a:hover,.lead a:focus-visible{color:#fff; border-color:#fff}
