@font-face {
  font-family: 'Naskh Local';
  src: url('/fonts/noto-naskh-arabic-v44-arabic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* نفس ألوان شاشة الدخول والأقسام، لا هوية تسويقية منفصلة. */
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --text: #243247;
  --muted: #606e80;
  --gold: #365c86;
  --line: #dce3ec;
  --wash: #e7edf5;
  --button: #274c77;
  --button-hover: #1b395d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: radial-gradient(ellipse at 85% 0, var(--wash), transparent 55%), var(--bg); color: var(--text); font: 18px/1.9 'Naskh Local', Tahoma, serif; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.5; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 22px; font-weight: 500; }
h1 span { display: block; color: var(--gold); font-size: .74em; margin-top: 16px; line-height: 1.7; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 26px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-bottom: 16px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.seal { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 1px solid #819fc2; color: var(--gold); border-radius: 15px 15px 15px 3px; }
.seal svg { width: 30px; height: 30px; }
/* الشعار الجديد (المالك 16 نوفمبر 2026) */
.seal.has-logo { overflow: hidden; border-color: transparent; background: #021633; }
.seal.has-logo .brand-logo { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand strong { display: block; font-size: 1.35rem; }
.brand small { display: block; font: 10px/1.8 Arial, sans-serif; letter-spacing: 1.6px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
nav a { text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 10px 25px; border: 1px solid var(--button); border-radius: 10px; background: var(--button); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--button-hover); color: #fff; }
.button-small { font-size: 1rem; padding: 8px 18px; }
.button-outline { background: transparent; color: var(--gold); }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 56px; }
.eyebrow { color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.23rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-note, .diagram-note { color: var(--muted); font-size: .95rem; margin: 20px 0 0; }
.journey { --muted: #b8c6d9; --gold: #adc7e8; --line: #ffffff26; padding: 32px; border: 1px solid #364b65; border-radius: 20px; color: #eff4fa; background: linear-gradient(145deg, #294769, #14273f); }
.journey h2 { font-size: 1.8rem; }
.journey ol { list-style: none; margin: 0; padding: 0; }
.journey li { display: flex; gap: 16px; padding-block: 17px; border-bottom: 1px solid var(--line); }
.journey li p { color: var(--muted); margin: 0; font-size: 1rem; }
.step-number { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); }
.section { padding-block: 48px; }
.mission { padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--wash); }
.mission h2 { margin-bottom: 10px; }
.mission p:last-child { max-width: 54em; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--panel); }
.card-index { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--wash); color: var(--gold); font: 13px/2 Arial, sans-serif; margin-bottom: 18px; }
.card p, .vaults p, .instructions p, .muted { color: var(--muted); }
.card p { margin-bottom: 0; }
.workspace-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.portfolio { background: var(--wash); }
.portfolio .card-index { background: var(--panel); }
.card .tool-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem; }
.coming-soon { display: flex; align-items: baseline; gap: 18px; margin-top: 22px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: 14px; }
.coming-soon h3 { margin-bottom: 6px; }
.coming-soon p { margin: 0; color: var(--muted); }
.badge { flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; font-size: .9rem; color: var(--gold); background: var(--wash); }
.vault-section { border-block: 1px solid var(--line); background: var(--wash); }
.vaults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin-bottom: 0; gap: 16px; }
.vaults li { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 22px; }
.vaults h3 { font-size: 1.1rem; }
.vaults p { font-size: 1rem; margin: 0; }
.how-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
.instructions { margin: 0; padding-inline-start: 24px; }
.instructions li { padding: 0 12px 20px 0; }
.instructions li::marker { color: var(--gold); font-weight: 700; }
.social-panel { background: var(--panel); padding: 38px; border: 1px solid var(--line); border-radius: 22px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.social-panel h2 { margin-bottom: 10px; }
.social-panel p:last-child { margin: 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer p { color: var(--muted); margin: 4px 0 0; }
.skip-link { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 10; padding: 10px 18px; background: var(--gold); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero { gap: 32px; }
  .site-header { flex-wrap: wrap; }
  .vaults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .how-section { gap: 32px; }
  .social-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-block: 18px; }
  .site-header nav { width: 100%; gap: 16px; font-size: .95rem; }
  .site-header .button { padding-inline: 12px; }
  .hero, .how-section, .workspace-tools { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero { padding-block: 48px; }
  .section { padding-block: 42px; }
  .journey, .card, .social-panel, .mission { padding: 24px; }
  .vaults { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .coming-soon { flex-direction: column; gap: 10px; padding: 22px; }
  .site-footer nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}