/* صفحة التعريف — الألوان من رموز نظام وشائج (أدوات/تصميم/tokens.json)، ولا لون خارجها */
:root{
  --ink:#173d36;--deep:#0f2f29;--ink-hover:#235548;--ink-soft:#4d665f;--muted:#5f726c;
  --gold:#95602b;--brass:#b7834d;--gold-mid:#c18d55;--sand:#e3c7a1;--wash:#f6ede1;
  --paper:#f4f2ec;--card:#fffefb;--surface:#eeeae0;--line:rgba(23,61,54,.11);
  --on-dark:#dce8e4;
  --wrap:1480px;--gutter:clamp(18px,5vw,76px);
  --ease:cubic-bezier(.2,.8,.2,1);
  font-family:"IBM Plex Sans Arabic",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;
  color:var(--ink);background:var(--paper)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--paper);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;-webkit-tap-highlight-color:transparent}
img{max-width:100%}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
.landing{min-height:100vh;overflow:hidden;position:relative}
.eyebrow{margin:0 0 10px;color:var(--gold);font-size:14px;font-weight:700}
.i{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.skip{position:absolute;inset-inline-start:12px;top:-60px;z-index:20;padding:10px 16px;border-radius:12px;
  background:var(--card);color:var(--ink);font-weight:700;text-decoration:none;transition:top .2s}
.skip:focus{top:12px}

/* ── البطل: نقطة تركيزٍ واحدة، والنقش السلمانيّ خلفها ── */
.hero{position:relative;min-height:min(900px,100svh);overflow:hidden;color:#fff;
  padding:18px var(--gutter) clamp(58px,8vw,112px);
  background:
    linear-gradient(118deg,rgba(193,141,85,.12),transparent 34%),
    linear-gradient(304deg,rgba(47,111,96,.24),transparent 43%),
    linear-gradient(145deg,var(--deep) 0%,var(--ink) 62%,var(--ink-hover) 100%)}
.hero::before,.hero::after{content:"";position:absolute;pointer-events:none}
.hero::before{width:min(68vw,900px);aspect-ratio:960/680;inset:auto -5% -5% auto;
  background:url("./salmani-pattern.svg") center/contain no-repeat;opacity:.78}
.hero::after{width:min(27vw,360px);height:min(42vw,500px);inset:18% auto auto -10%;opacity:.22;
  background:url("./salmani-pattern.svg") 78% center/680px auto no-repeat}
.top{position:relative;z-index:5;display:flex;align-items:center;gap:18px;max-width:var(--wrap);margin:auto;
  min-height:74px;padding:10px 12px 10px 18px;border:1px solid rgba(255,255,255,.13);border-radius:24px;
  background:rgba(13,42,36,.52);backdrop-filter:blur(24px) saturate(145%);
  -webkit-backdrop-filter:blur(24px) saturate(145%);box-shadow:0 18px 48px rgba(0,0,0,.12)}
.brand{display:block;flex:none;border-radius:16px}
.brand img{display:block;width:226px;height:auto}
.top-links{display:flex;gap:4px;margin-inline-start:auto}
.top-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;
  color:var(--on-dark);text-decoration:none;font-size:15px;font-weight:600;transition:background .18s,color .18s}
.top-links a:hover{background:rgba(255,255,255,.08);color:#fff}
.top-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 18px;
  border-radius:14px;background:#fff;color:var(--deep);text-decoration:none;font-size:15px;font-weight:700;
  box-shadow:0 6px 20px rgba(0,0,0,.12);transition:transform .2s var(--ease),background .2s}
.top-cta:hover{background:var(--sand);transform:translateY(-1px)}
.top-cta:active{transform:scale(.97)}

.hero-grid{position:relative;z-index:2;max-width:var(--wrap);margin:clamp(64px,10vh,118px) auto 0;
  display:grid;grid-template-columns:minmax(0,1.32fr) minmax(310px,.68fr);gap:clamp(44px,8vw,124px);align-items:end}
.badge{display:inline-flex;align-items:center;gap:10px;margin:0 0 22px;padding:8px 16px 8px 14px;border-radius:99px;
  border:1px solid rgba(227,199,161,.3);background:rgba(227,199,161,.08);color:var(--sand);font-size:14px;font-weight:600}
.badge span{width:8px;height:8px;border-radius:50%;background:var(--sand);box-shadow:0 0 0 5px rgba(227,199,161,.16)}
h1{margin:0;max-width:930px;font-size:clamp(44px,6.2vw,90px);line-height:1.26;font-weight:700}
.lead{max-width:800px;margin:26px 0 0;color:var(--on-dark);font-size:clamp(17px,1.5vw,21px);line-height:1.9}
.hero-actions,.inst-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:34px}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;
  border-radius:15px;padding:0 22px;text-decoration:none;font-size:16px;font-weight:700;
  transition:transform .18s var(--ease),background .18s,border-color .18s}
.primary{background:#fff;color:var(--deep);box-shadow:0 12px 30px rgba(0,0,0,.12)}
.primary:hover{background:var(--sand);transform:translateY(-2px)}
.secondary{border:1px solid rgba(255,255,255,.24);color:#fff;background:rgba(255,255,255,.06)}
.secondary:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.38);transform:translateY(-2px)}
.primary:active,.secondary:active{transform:scale(.97)}

.proof{display:grid;gap:10px;margin:0;padding:12px;border:1px solid rgba(255,255,255,.15);border-radius:28px;
  background:rgba(255,255,255,.075);backdrop-filter:blur(24px) saturate(140%);
  -webkit-backdrop-filter:blur(24px) saturate(140%);box-shadow:0 26px 70px rgba(0,0,0,.14)}
.proof div{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;
  min-height:92px;padding:18px 22px;border-radius:18px;background:rgba(255,255,255,.075);overflow:hidden}
.proof div::after{content:"";position:absolute;inset-inline-end:16px;inset-block-start:0;width:54px;height:43px;
  background:rgba(229,196,155,.1);clip-path:polygon(50% 0,100% 100%,0 100%)}
.proof dt{position:relative;z-index:1;margin:0;color:var(--sand);font-size:clamp(38px,3.4vw,54px);font-weight:700;line-height:1;
  font-variant-numeric:tabular-nums}
.proof dd{position:relative;z-index:1;margin:0;max-width:150px;color:#edf4f1;font-size:15px;line-height:1.55;text-align:end}

/* ── الأقسام: رأسٌ ثابت (نبذة ← عنوان ← ملاحظة) ── */
.characters,.how,.explore{max-width:var(--wrap);margin:auto;padding:clamp(72px,9vw,128px) var(--gutter) 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:38px}
.section-head h2,.explore-head h2{margin:0;font-size:clamp(32px,4vw,56px);line-height:1.16}
.section-note{max-width:520px;margin:0;color:var(--ink-soft);font-size:17px;line-height:1.9}

/* الشخصيات */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.character{min-height:440px;position:relative;overflow:hidden;background:var(--card);
  border:1px solid rgba(255,255,255,.95);border-radius:30px;padding:28px;display:flex;flex-direction:column;
  box-shadow:0 1px 0 rgba(23,61,54,.06),0 20px 55px rgba(23,61,54,.07);
  transition:transform .38s var(--ease),box-shadow .38s var(--ease)}
.character:hover{transform:translateY(-6px);box-shadow:0 1px 0 rgba(23,61,54,.05),0 30px 75px rgba(23,61,54,.12)}
.character::before{content:"";position:absolute;width:245px;height:174px;inset:-28px -40px auto auto;
  background:url("./salmani-pattern.svg") 50% 23%/310px auto no-repeat;opacity:.2}
.portrait{width:78px;height:78px;border-radius:24px;display:grid;place-items:center;background:var(--ink);
  color:var(--sand);font-size:34px;font-weight:700;position:relative;z-index:1;box-shadow:0 14px 28px rgba(23,61,54,.18)}
.era{margin:28px 0 8px;color:var(--gold);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.character h3{margin:0;font-size:clamp(25px,2.3vw,34px);line-height:1.35}
.role{margin:8px 0 0;color:var(--ink-soft);font-size:15px;line-height:1.65}
.quote{margin:24px 0 28px;padding-block-start:20px;border-block-start:1px solid var(--line);color:var(--ink-soft);line-height:1.9;font-size:16px}
.talk{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;
  background:var(--ink);color:#fff;padding:0 18px;border-radius:15px;text-decoration:none;font-weight:700;font-size:15px;
  transition:transform .18s var(--ease),background .18s}
.talk:hover{background:var(--ink-hover);transform:translateY(-1px)}
.talk:active{transform:scale(.98)}

/* كيف يعمل: أربع خطواتٍ على خطٍّ واحد، من اليمين إلى اليسار */
.steps{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0;padding:0;list-style:none;counter-reset:step}
.steps::before{content:"";position:absolute;top:36px;inset-inline:12.5%;height:2px;background:var(--brass);opacity:.55}
.steps li{position:relative;counter-increment:step;text-align:center;padding:0 6px}
.step-badge{position:relative;z-index:1;display:grid;place-items:center;width:72px;height:72px;margin:0 auto 18px;border-radius:50%;
  background:var(--ink);color:var(--sand);box-shadow:0 0 0 8px var(--paper)}
.step-badge .i{width:32px;height:32px}
.steps li::before{content:counter(step,arabic-indic);display:block;margin-bottom:6px;color:var(--gold);font-size:14px;font-weight:700;order:2}
.steps h3{margin:0 0 8px;font-size:clamp(21px,1.8vw,25px);line-height:1.35}
.steps p{margin:0 auto;max-width:260px;color:var(--ink-soft);font-size:16px;line-height:1.8}
.steps li{display:flex;flex-direction:column}
.steps .step-badge{order:1}.steps h3{order:3}.steps p{order:4}

/* ثلاث طرقٍ للاستكشاف */
.explore-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:28px}
.explore-cta{flex:none;display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 22px;border-radius:15px;background:var(--ink);color:#fff;
  text-decoration:none;font-weight:700;font-size:16px;box-shadow:0 12px 26px rgba(23,61,54,.18);transition:transform .18s var(--ease),background .18s}
.explore-cta:hover{background:var(--ink-hover);transform:translateY(-2px)}
.views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.view{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:10px;min-height:230px;padding:28px;border-radius:26px;
  background:var(--wash);border:1px solid rgba(255,255,255,.85);text-decoration:none;color:var(--ink);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.view::after{content:"";position:absolute;width:300px;height:212px;inset:auto auto -70px -60px;
  background:url("./salmani-pattern.svg") center/contain no-repeat;opacity:.35}
.view:hover{transform:translateY(-5px);box-shadow:0 24px 60px rgba(57,43,24,.1)}
.view .i{width:34px;height:34px;color:var(--gold)}
.view h3{margin:6px 0 0;font-size:clamp(22px,2vw,28px)}
.view p{position:relative;z-index:1;margin:0;color:var(--ink-soft);font-size:16px;line-height:1.8;max-width:340px}

/* للجهات: قسمٌ داكن يقابل البطل */
.institutions{position:relative;overflow:hidden;max-width:var(--wrap);margin:clamp(72px,9vw,128px) auto 0;
  width:calc(100% - 2 * clamp(12px,2.4vw,40px));border-radius:36px;color:#fff;
  padding:clamp(40px,6vw,86px) clamp(24px,5vw,72px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:clamp(32px,6vw,96px);align-items:center;
  background:linear-gradient(150deg,var(--deep) 0%,var(--ink) 100%)}
.institutions::before{content:"";position:absolute;width:min(60vw,760px);aspect-ratio:960/680;inset:auto auto -18% -8%;
  background:url("./salmani-pattern.svg") center/contain no-repeat;opacity:.5;pointer-events:none}
.inst-copy,.audiences{position:relative;z-index:1}
.institutions .eyebrow{color:var(--sand)}
.institutions h2{margin:0;font-size:clamp(30px,3.7vw,52px);line-height:1.22}
.inst-copy>p:not(.eyebrow){max-width:620px;margin:22px 0 0;color:var(--on-dark);font-size:clamp(17px,1.4vw,20px);line-height:1.9}
.audiences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.audiences li{display:flex;flex-direction:column;gap:16px;min-height:150px;padding:22px;border-radius:22px;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06)}
.audiences .i{width:34px;height:34px;color:var(--sand)}
.audiences span{font-size:18px;font-weight:700;line-height:1.5}

/* التذييل */
.footer{max-width:var(--wrap);margin:auto;padding:clamp(48px,6vw,80px) var(--gutter) 40px;display:grid;
  grid-template-columns:1fr auto 1fr;align-items:center;gap:28px;color:var(--muted)}
.foot-brand img{display:block;width:180px;height:auto}
.foot-brand p{margin:10px 0 0;font-size:14px}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.foot-links a{padding:8px 12px;border-radius:10px;color:var(--ink-soft);text-decoration:none;font-size:15px;font-weight:600}
.foot-links a:hover{background:var(--surface);color:var(--ink)}
.foot-company{justify-self:end;display:inline-flex;align-items:center;gap:12px;padding:8px 12px;border-radius:14px;
  color:var(--muted);text-decoration:none;font-size:14px}
.foot-company:hover{background:var(--surface)}
.foot-company img{display:block;width:124px;height:auto;opacity:.86}

:where(a):focus-visible{outline:3px solid var(--gold-mid);outline-offset:4px;border-radius:12px}
.hero :where(a):focus-visible,.institutions :where(a):focus-visible{outline-color:var(--sand)}

@media(prefers-reduced-motion:no-preference){
  .top{animation:arrive .65s var(--ease) both}
  .hero-copy{animation:arrive .75s .08s var(--ease) both}
  .proof{animation:arrive .75s .16s var(--ease) both}
  @keyframes arrive{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
}
@media(prefers-reduced-transparency:reduce){
  .top{background:var(--deep);backdrop-filter:none}.proof{background:var(--ink-hover);backdrop-filter:none}
}
@media(prefers-contrast:more){
  .top,.proof,.character,.view,.audiences li{border-color:currentColor}.top-cta,.primary{outline:2px solid currentColor}
}
@media(max-width:1080px){
  .top-links{display:none}.top-cta{margin-inline-start:auto}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:44px}.steps::before{display:none}
  .institutions{grid-template-columns:1fr}
}
@media(max-width:940px){
  .hero{min-height:auto}.hero-grid{grid-template-columns:1fr;margin-top:64px}.proof{grid-template-columns:repeat(3,1fr)}
  .proof div{display:block;min-height:124px}.proof dd{margin-top:10px;text-align:start}
  .cards,.views{grid-template-columns:1fr}.character{min-height:360px}.view{min-height:0}
  .section-head,.explore-head{align-items:flex-start;flex-direction:column}.section-note{max-width:680px}
  .footer{grid-template-columns:1fr;justify-items:start}.foot-links{justify-content:flex-start}.foot-company{justify-self:start}
}
@media(max-width:620px){
  .hero{padding:10px 12px 64px}.top{min-height:64px;padding:8px 9px;border-radius:20px;gap:10px}.brand img{width:170px}
  .top-cta{min-height:42px;padding:0 13px;font-size:14px}
  .hero-grid{margin-top:48px;gap:34px}.badge{font-size:13px}.lead{font-size:17px;line-height:1.85}
  .hero-actions,.inst-actions{display:grid}.primary,.secondary{width:100%}
  .proof{grid-template-columns:1fr;gap:8px;padding:9px;border-radius:24px}
  .proof div{display:flex;min-height:80px;padding:15px 18px}.proof dd{margin:0;text-align:end}
  .characters,.how,.explore{padding-inline:14px}.section-head{margin-bottom:26px}.character{padding:23px;border-radius:25px}
  .steps{grid-template-columns:1fr;row-gap:36px}
  .explore-cta{width:100%;justify-content:center}.view{border-radius:22px;padding:24px}
  .institutions{width:calc(100% - 16px);border-radius:28px;padding:36px 20px}.audiences{grid-template-columns:1fr 1fr;gap:10px}
  .audiences li{min-height:128px;padding:18px}.audiences span{font-size:16px}
  .hero::before{width:760px;inset:auto -390px 7% auto;opacity:.5}.hero::after{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.top,.hero-copy,.proof{animation:none!important}
  .character,.view,.talk,.primary,.secondary,.top-cta,.explore-cta{transition:none}}

/* بعد المراجعة: صفحة ٤٠٤ تملأ الشاشة، ولمسٌ أرحب في التذييل، وجوالٌ أقصر */
.lost{min-height:100svh}
.foot-links a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:620px){
  .character{min-height:0}.quote{margin:18px 0 22px}
  .steps{row-gap:28px}.step-badge{margin-bottom:12px}
  .institutions h2{font-size:30px}
}
