/* MADAR Network — الموقع الرسمي. الخطوط محفوظة داخل الموقع فقط (سياسة الأمان تمنع الخطوط الخارجية). */
/* الخط العربي (IBM Plex Sans Arabic, OFL) — للحروف العربية فقط؛ الإنجليزي يبقى بخط النظام. */
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:root {
  /* أسود وفضي بلمسة ذهبية من كرة الشعار (اعتمده المالك 2026-10-10) */
  --bg: #050506;
  --bg-2: #09090b;
  --panel: rgba(16, 16, 19, 0.78);
  --panel-solid: #0d0d0f;
  --line: rgba(215, 220, 230, 0.11);
  --line-2: rgba(215, 220, 230, 0.24);
  --text: #f1f2f4;
  --muted: #9b9ea6;
  --teal: #ffd98a;
  --blue: #ffc857;
  --indigo: #8f939c;
  --gold: #ffc857;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --grad: linear-gradient(120deg, #fff1c7, #ffc857 50%, #e9a23b);
  --gold-btn: linear-gradient(180deg, #ffe7a8 0%, #ffc857 50%, #e9a23b 100%);
  --silver: linear-gradient(180deg, #f7f8fa 0%, #d7dae0 45%, #a9adb6 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Madar Arabic", "Segoe UI", system-ui, -apple-system, "Tahoma", "Noto Sans Arabic", "Geeza Pro", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; word-break: break-all; }

/* خلفية: وهج ومدارات خفيفة */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 200, 87, 0.10), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(230, 233, 240, 0.05), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(255, 200, 87, 0.05), transparent 60%),
    var(--bg); }
.sky::before, .sky::after { content: ""; position: absolute; border: 1px solid rgba(225, 230, 240, 0.10); border-radius: 50%; }
.sky::before { width: 1100px; height: 420px; top: 60px; right: -320px; transform: rotate(-18deg); }
.sky::after { width: 1500px; height: 560px; top: 20px; right: -520px; transform: rotate(-18deg); border-color: rgba(230, 233, 240, 0.06); }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

/* الترويسة */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(12, 12, 14, 0.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.brand img { height: 34px; width: auto; }
nav.main { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-dl { padding: 9px 16px; border-radius: 11px; background: var(--gold-btn); color: #1a1205; font-weight: 700; font-size: 14.5px; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.lang-btn:hover { color: var(--text); }
.lang-menu { position: absolute; inset-inline-end: 0; top: 46px; min-width: 160px; padding: 6px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.lang-menu button { display: block; width: 100%; text-align: start; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.lang-menu button:hover, .lang-menu button.active { background: rgba(230, 233, 240, 0.14); }
.menu-btn { display: none; }

/* البطل */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 13px; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -0.5px; }
h1 .grad, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--gold-btn); color: #1a1205; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 36px rgba(0, 0, 0, 0.45); }
.btn.ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn svg { width: 20px; height: 20px; }
.cta-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.cta-note a { color: var(--blue); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-art::before { content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 40%, rgba(255, 200, 87, 0.12), rgba(3, 4, 7, 0) 68%); }
.hero-logo { position: relative; width: min(480px, 96%); animation: float 7s ease-in-out infinite; }
.hero-logo img { display: block; width: 100%; filter: drop-shadow(0 24px 60px rgba(225, 230, 240, 0.12)); }
.hero-logo .orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit .sun-still { display: none; }
@media (prefers-reduced-motion: reduce) { .orbit .sun-move { display: none; } .orbit .sun-still { display: inline; } }
@keyframes float { 50% { transform: translateY(-12px); } }

/* الأقسام */
section.block { padding: 30px 0 70px; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin: 8px 0 14px; }
.section-lead { color: var(--muted); max-width: 700px; margin: 0 0 34px; font-size: 17px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(230, 233, 240, 0.14); color: var(--blue); font-weight: 800; }
.step h3, .feature h3 { margin: 14px 0 6px; font-size: 18.5px; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(230, 233, 240, 0.12); }
.feature .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* الأسئلة */
details.qa summary { cursor: pointer; list-style: none; }
details.qa summary::-webkit-details-marker { display: none; }
.faq { display: grid; gap: 12px; max-width: 860px; }
details.qa { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
details.qa summary { font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
details.qa summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
details.qa[open] summary::after { content: "−"; }
details.qa p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* التواصل والتذييل */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact p { margin: 0; color: var(--muted); }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn.social { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(230, 233, 240, 0.08); color: var(--text); }
.btn.social:hover { border-color: var(--blue); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* رأس الصفحات الداخلية */
.status-hero { padding: 56px 0 26px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-art { min-height: 220px; order: -1; }
  .hero-logo { width: min(340px, 90%); }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  nav.main .nav-link { display: none; }
}
@media (max-width: 600px) {
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .top .wrap { height: 62px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== الخدمات ===== */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 10px; }
.service { display: flex; flex-direction: column; gap: 10px; }
.service h3 { margin: 4px 0 0; font-size: 22px; }
.service p { margin: 0 0 8px; color: var(--muted); flex: 1; }
.service .btn { align-self: flex-start; padding: 11px 20px; font-size: 15px; }
.sv-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(230, 233, 240, 0.12); color: var(--blue); }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* services page: compact cards, three per row */
.services { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.services .service { padding: 18px; gap: 8px; }
.services .sv-ico { width: 38px; height: 38px; border-radius: 10px; }
.services .sv-ico svg { width: 20px; height: 20px; }
.services .service h3 { font-size: 17px; margin: 2px 0 0; }
.services .service p { font-size: 14px; line-height: 1.6; }
.services .service .btn { padding: 8px 16px; font-size: 14px; }
.sv-dev { display: inline-block; margin-inline-end: 4px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #ffd98a; background: rgba(255, 200, 87, .12); vertical-align: 1px; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* ---- gold-touch refresh (owner 2026-10-10) for services and help: gold icons and tabs, cards that
   light up on hover; hashes and numbers stay silver to read easily ---- */
.sv-ico, .feature .ic { background: rgba(255, 200, 87, .1); color: #ffd98a; box-shadow: inset 0 0 0 1px rgba(255, 200, 87, .22); }
.feature .ic svg { stroke: #ffd98a; }
.step .n { background: var(--gold-btn); color: #1a1205; }
.card { transition: border-color .2s; }
.card:hover { border-color: rgba(255, 200, 87, .28); }
.eyebrow { color: #ffd98a; }

/* قائمة الجوال (19 أكتوبر): زر ☰ ولوحة الروابط تحت 980px */
.mobile-menu { position: absolute; inset-inline: 12px; top: calc(100% + 6px); z-index: 60; display: grid; padding: 8px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.mobile-menu[hidden] { display: none; }
.mm-link { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); font-size: 15px; }
.mm-link:hover, .mm-link:focus { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 980px) {
  .top .wrap { position: relative; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
}

/* زر «احصل على محفظة مدار» على الجوال (2026-10-25): الكرة الأرضية وحدها بدل اسم اللغة، فيتسع الشريط للزر وزر القائمة */
@media (max-width: 520px) {
  .top .wrap { gap: 10px; }
  nav.main { gap: 6px; }
  #langName { display: none; }
  .lang-btn { padding: 0 9px; }
  .nav-dl { padding: 9px 12px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 360px) { .brand img { height: 28px; } .nav-dl { padding: 8px 10px; font-size: 13px; } }
