/* ============================================================
   موقع Mr.System و Mr.Station — نظام التصميم المشترك
   ============================================================ */

@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Plex Arabic'; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Plex Arabic'; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Plex Arabic'; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  /* أسطح */
  --bg: #050a18;
  --bg-2: #081026;
  --surface: #0d1631;
  --surface-2: #121d3d;
  --glass: rgb(255 255 255 / .045);
  --glass-2: rgb(255 255 255 / .07);
  --line: rgb(255 255 255 / .09);
  --line-2: rgb(255 255 255 / .16);
  /* نصوص */
  --text: #eef2fb;
  --muted: #9aa8c7;
  --dim: #6c7a9a;
  /* ألوان النظامين */
  --sys: #2f8bff;
  --sys-2: #22d3ee;
  --sys-deep: #1d4ed8;
  --st: #ff8a00;
  --st-2: #ffc21a;
  --st-deep: #c2410c;
  --ok: #22c55e;
  /* اللون الحالي للصفحة (يتغير حسب النظام) */
  --accent: var(--sys);
  --accent-2: var(--sys-2);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --grad-both: linear-gradient(100deg, var(--sys-2), var(--sys) 38%, var(--st) 62%, var(--st-2));
  /* أشكال */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / .7);
  --glow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
.theme-station {
  --accent: var(--st); --accent-2: var(--st-2);
  --grad: linear-gradient(120deg, var(--st), var(--st-2));
  --glow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 80px -30px color-mix(in srgb, var(--st) 60%, transparent);
}
.home .topbar .btn-primary { background: var(--grad-both); color: #08101f; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plex Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- خلفيات زخرفية ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after, .aurora i {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.aurora::before { width: 620px; height: 620px; background: var(--sys); inset-inline-end: -160px; top: -200px; animation: drift 18s ease-in-out infinite alternate; }
.aurora::after { width: 560px; height: 560px; background: var(--st); inset-inline-start: -200px; top: 80px; opacity: .38; animation: drift 22s ease-in-out infinite alternate-reverse; }
.aurora i { width: 420px; height: 420px; background: var(--sys-2); inset-inline-start: 30%; top: 45%; opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
.theme-system .aurora::after { background: var(--sys-deep); opacity: .45; }
.theme-station .aurora::before { background: var(--st); opacity: .42; }
.theme-station .aurora::after { background: var(--sys-deep); opacity: .5; }
.theme-station .aurora i { background: var(--st-2); opacity: .16; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.noise::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(5 10 24 / .62);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-color: var(--line); background: rgb(5 10 24 / .85); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-marks { display: flex; }
.brand-marks img { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 2px var(--bg); }
.brand-marks img + img { margin-inline-start: -10px; }
.brand b { font-weight: 700; }
.brand .sys { color: #7cc4ff; }
.brand .st { color: var(--st-2); }
.brand small { color: var(--dim); font-weight: 500; margin-inline: 2px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.topbar .btn { margin-inline-start: 6px; }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic { width: 22px; height: 22px; }

/* ---------- الأزرار ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 14px; border: 0;
  font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px var(--accent); }
.theme-station .btn-primary { color: #1a0d00; }
.btn-primary:hover { box-shadow: 0 18px 40px -12px var(--accent); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--glass-2); border-color: rgb(255 255 255 / .28); }
.btn-wa { background: #1fae54; color: #fff; box-shadow: 0 12px 30px -14px #1fae54; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .92rem; border-radius: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-2); }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(-4px); }

/* زر تحميل بطاقة: أيقونة + نصين */
.dl {
  --c1: var(--sys); --c2: var(--sys-2);
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; min-height: 64px; border-radius: 16px;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
              linear-gradient(120deg, color-mix(in srgb, var(--c1) 70%, transparent), rgb(255 255 255 / .08) 55%) border-box;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s;
  isolation: isolate; overflow: hidden;
}
.dl::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120% 140% at 100% 0, color-mix(in srgb, var(--c1) 35%, transparent), transparent 60%);
}
.dl:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px var(--c1); }
.dl:hover::before { opacity: 1; }
.dl.st { --c1: var(--st); --c2: var(--st-2); }
.dl-ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
}
.dl.st .dl-ic { color: #2a1400; }
.dl-ic .ic { width: 22px; height: 22px; }
.dl-txt { display: grid; line-height: 1.35; min-width: 0; }
.dl-txt small { color: var(--muted); font-size: .78rem; }
.dl-txt b { font-size: 1rem; font-weight: 700; }
.dl-meta { margin-inline-start: auto; text-align: end; color: var(--dim); font-size: .76rem; line-height: 1.4; direction: ltr; }
.dl-arrow { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); flex: none; transition: background .25s; }
.dl:hover .dl-arrow { background: var(--c1); color: #fff; }
.dl-arrow .ic { width: 18px; height: 18px; }

/* ---------- البطل (الرئيسية) ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 100px); isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 500;
}
.eyebrow .pill { padding: 2px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: .78rem; }
.home .eyebrow .pill { background: var(--grad-both); color: #08101f; }
.theme-station .eyebrow .pill { color: #2a1400; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); margin-top: 22px; line-height: 1.18; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .grad-text { background: var(--grad-both); -webkit-background-clip: text; background-clip: text; }
.hero .lead { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--ok); width: 18px; height: 18px; }

/* منصة التحميل في البطل */
.dl-hub {
  position: relative; margin-top: 34px; padding: 18px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02));
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.dl-hub-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; color: var(--muted); font-size: .9rem; }
.dl-hub-head .ic { color: var(--ok); }
.dl-hub-head b { color: var(--text); }
.dl-row { display: grid; gap: 10px; }
.dl-row + .dl-row { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.dl-row-title { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-inline: 4px; }
.dl-row-title img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.dl-row-title small { color: var(--dim); font-weight: 500; font-size: .82rem; }
.dl-row-title a { margin-inline-start: auto; font-size: .85rem; }
.dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-hub .dl { min-height: 60px; padding: 10px 12px; }
.dl-hub .dl-ic { width: 38px; height: 38px; }
.dl-hub-foot { margin-top: 14px; padding-inline: 4px; color: var(--dim); font-size: .82rem; }
.dl-hub-foot a { color: var(--accent-2); font-weight: 600; }

/* مشهد الهواتف */
.stage { position: relative; height: clamp(440px, 52vw, 620px); }
.stage .phone { position: absolute; width: clamp(190px, 21vw, 270px); }
.stage .p1 { inset-inline-end: 4%; top: 2%; transform: rotate(-7deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.stage .p2 { inset-inline-start: 6%; top: 14%; transform: rotate(6deg); z-index: 1; animation: float 8s ease-in-out -2s infinite; }
.stage .orb { position: absolute; inset: 18% 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 65%); filter: blur(30px); }
.home .stage .orb { background: radial-gradient(circle at 70% 40%, rgb(47 139 255 / .55), transparent 55%), radial-gradient(circle at 30% 60%, rgb(255 138 0 / .45), transparent 55%); }
@keyframes float { 50% { translate: 0 -14px; } }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgb(13 22 49 / .78); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); font-size: .85rem; line-height: 1.35; white-space: nowrap;
  animation: float 6s ease-in-out -1s infinite;
}
.chip b { display: block; font-size: 1rem; }
.chip small { color: var(--muted); }
.chip .ci { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.chip.st .ci { background: linear-gradient(135deg, var(--st), var(--st-2)); color: #2a1400; }
.chip.sys .ci { background: linear-gradient(135deg, var(--sys), var(--sys-2)); }
.chip .ci .ic { width: 20px; height: 20px; }

/* إطار الهاتف */
.phone {
  aspect-ratio: 560 / 1244; border-radius: clamp(26px, 3vw, 38px); padding: 7px;
  background: linear-gradient(145deg, #2a3555, #0b1226 40%, #1c2645);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 80px -30px rgb(0 0 0 / .8), 0 30px 90px -40px var(--accent);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(20px, 2.5vw, 31px); background: #0b1226; }
.phone::after { content: ''; position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 26%; height: 16px; border-radius: 999px; background: #05070f; }

/* إطار الكمبيوتر */
.window { border-radius: 16px; overflow: hidden; background: #0b1226; border: 1px solid var(--line-2); box-shadow: var(--glow), var(--shadow); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 14px; background: #0e1730; border-bottom: 1px solid var(--line); direction: ltr; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-inline: auto; color: var(--dim); font-size: .78rem; }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ---------- شريط الأرقام ---------- */
.stats { position: relative; z-index: 1; margin-top: -36px; }
.stats ul {
  display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); overflow: hidden;
  background: var(--line); gap: 1px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stats li { background: var(--bg-2); padding: 22px 20px; display: flex; gap: 14px; align-items: center; }
.stats .si { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-2); color: var(--accent-2); flex: none; }
.home .stats li:nth-child(even) .si { color: var(--st-2); }
.stats b { display: block; font-size: 1.05rem; }
.stats small { color: var(--muted); font-size: .86rem; line-height: 1.5; display: block; }

/* ---------- الأقسام ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section > .wrap { position: relative; z-index: 1; }
.head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.head.start { margin-inline: 0; text-align: start; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 600; font-size: .92rem; letter-spacing: .02em; }
.kicker .ic { width: 16px; height: 16px; }
.home .kicker { color: #8fb8ff; }
.head h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-top: 10px; }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* بطاقات النظامين */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  --c1: var(--sys); --c2: var(--sys-2);
  position: relative; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 16%, var(--surface)) , var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--c1) 30%, var(--line));
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.product.st { --c1: var(--st); --c2: var(--st-2); }
.product::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; inset-inline-end: -120px; top: -140px; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px var(--c1); }
.product-top { display: flex; align-items: center; gap: 16px; }
.product-top img { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; box-shadow: 0 12px 30px -10px var(--c1); }
.product-top h3 { font-size: 1.6rem; direction: ltr; text-align: end; }
.product-top p { color: var(--muted); font-size: .95rem; }
.product .tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--c1) 18%, transparent); color: var(--c2); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); }
.product > p { color: #c8d2e8; font-size: 1.05rem; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #d3dbee; font-size: .95rem; line-height: 1.6; }
.ticks .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--c2, var(--accent-2)); background: color-mix(in srgb, var(--c1, var(--accent)) 18%, transparent); border-radius: 6px; padding: 3px; }
.product-shots { display: flex; gap: 12px; justify-content: center; margin-block: 6px; }
.product-shots .phone { width: 30%; max-width: 150px; padding: 5px; border-radius: 22px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .8); }
.product-shots .phone img { border-radius: 17px; }
.product-shots .phone::after { display: none; }
.product-shots .phone:nth-child(2) { translate: 0 -14px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.product .btn-primary { background: linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px -12px var(--c1); }
.product.st .btn-primary { color: #2a1400; }

/* شبكة المزايا */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 26px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s; overflow: hidden;
}
.feature::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.feature:hover::after { opacity: 1; }
.fi {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-2);
}
.fi .ic { width: 26px; height: 26px; }
.feature.st .fi { --accent: var(--st); --accent-2: var(--st-2); }
.feature.sys .fi { --accent: var(--sys); --accent-2: var(--sys-2); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature .both { position: absolute; top: 18px; inset-inline-end: 18px; display: flex; gap: 4px; }
.feature .both i { width: 8px; height: 8px; border-radius: 50%; background: var(--sys); }
.feature .both i + i { background: var(--st); }

/* بنتو (عرض مميز) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .xl { grid-column: span 4; }

/* شريط الشاشات المتحرك */
.marquee { position: relative; overflow: hidden; padding-block: 20px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .phone { width: 200px; flex: none; }
.marquee figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.marquee figcaption { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.marquee figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--sys); }
.marquee figcaption i.st { background: var(--st); }
@keyframes scroll { to { transform: translateX(50%); } }

/* معرض أفقي */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gallery figure { margin: 0; flex: none; width: clamp(200px, 22vw, 250px); scroll-snap-align: start; display: grid; gap: 14px; }
.gallery figcaption b { display: block; font-size: 1rem; }
.gallery figcaption small { color: var(--muted); font-size: .88rem; line-height: 1.55; display: block; }
.gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -8px; margin-bottom: 18px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.gallery-nav button:hover { background: var(--glass-2); }
.gallery-nav .prev .ic { transform: rotate(180deg); }

/* صف عرض جانبي (نص + صورة) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 110px); }
.split.rev .split-media { order: -1; }
.split h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: 10px; }
.split p.lead2 { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.split .ticks { grid-template-columns: 1fr; margin-top: 22px; }
.split-media { position: relative; display: flex; justify-content: center; gap: 18px; }
.split-media::before { content: ''; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%); filter: blur(40px); z-index: 0; }
.split-media > * { position: relative; z-index: 1; }
.split-media .phone { width: min(44%, 250px); }
.split-media .phone + .phone { margin-top: 60px; }

/* جولة الكمبيوتر */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tour-tabs button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); cursor: pointer; font-weight: 500; transition: all .25s; }
.tour-tabs button[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px var(--accent); }
.tour-stage { max-width: 1000px; margin-inline: auto; }
.tour-stage .window img { transition: opacity .35s; }
.tour-caption { text-align: center; color: var(--muted); margin-top: 18px; min-height: 1.75em; }
.desk-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.desk-feats .feature { padding: 20px; }
.desk-feats .fi { width: 44px; height: 44px; margin-bottom: 12px; }

/* خطوات */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 26px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1.15rem; box-shadow: 0 10px 24px -10px var(--accent);
}
.theme-station .step::before { color: #2a1400; }
.home .step::before { background: var(--grad-both); color: #08101f; }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }

/* الأسعار */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans.four { grid-template-columns: repeat(4, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.plan.best { background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--glow); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 24px; padding: 4px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 700; }
.theme-station .plan .badge { color: #2a1400; }
.plan h3 { font-size: 1.2rem; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 2.6rem; line-height: 1; direction: ltr; }
.price span { color: var(--muted); }
.plan ul { display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: #d3dbee; font-size: .95rem; }
.plan li .ic { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .95rem; }

/* الأسئلة */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--glass-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-inline-start: auto; width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p + p, .faq .ans ul { margin-top: 10px; }
.faq .ans ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; }
.faq code { font-size: .74rem; word-break: break-all; color: #c8d2e8; direction: ltr; display: block; text-align: left; background: rgb(0 0 0 / .3); padding: 8px 10px; border-radius: 8px; margin-top: 6px; }

/* لوحة التحميل الكبيرة */
.dl-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(150deg, #0f1c44, #0a1229 55%, #1b1208);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.theme-system .dl-panel { background: linear-gradient(150deg, #0f2459, #0a1229 70%); }
.theme-station .dl-panel { background: linear-gradient(150deg, #3a1d02, #0a1229 70%); }
.dl-panel .aurora::before, .dl-panel .aurora::after { opacity: .3; }
.dl-panel-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.dl-panel h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.dl-panel p { color: #c3cde6; margin-top: 14px; font-size: 1.05rem; }
.dl-panel .contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dl-cards { display: grid; gap: 12px; }
.dl-cards .group-title { font-weight: 700; color: var(--muted); font-size: .9rem; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.dl-cards .group-title img { width: 24px; height: 24px; border-radius: 7px; }

/* بطل صفحة النظام */
.p-hero .hero-grid { grid-template-columns: 1fr 1fr; }
.p-hero .brand-big { display: flex; align-items: center; gap: 16px; }
.p-hero .brand-big img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 14px 34px -12px var(--accent); }
.p-hero .brand-big b { font-size: 1.5rem; direction: ltr; display: block; }
.p-hero .brand-big small { color: var(--muted); }
.p-hero .dl-pair { margin-top: 30px; max-width: 560px; }
.sha-note { margin-top: 14px; color: var(--dim); font-size: .85rem; }
.sha-note a { color: var(--accent-2); font-weight: 600; }

/* شريط مقارنة / لماذا */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.why-card .fi { margin: 0; flex: none; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* شريط المساعد الذكي */
.ai-providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.ai-providers span { padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: #c8d2e8; font-size: .9rem; direction: ltr; }

/* التذييل */
.footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 28px; background: #040814; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--muted); font-size: .94rem; margin-top: 14px; max-width: 40ch; }
.footer h4 { font-size: .95rem; margin-bottom: 14px; color: #c8d2e8; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--muted); font-size: .94rem; transition: color .2s; }
.footer li a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--dim); font-size: .86rem; }

/* زر واتساب العائم */
.fab-wa {
  position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1fae54; color: #fff; box-shadow: 0 14px 30px -8px rgb(31 174 84 / .7);
  transition: transform .25s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa .ic { width: 30px; height: 30px; }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fae54; animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* نافذة بعد التحميل */
.dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(520px, calc(100% - 32px)); width: 100%; }
.dialog::backdrop { background: rgb(2 5 14 / .72); backdrop-filter: blur(6px); }
.dialog-box { border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); padding: 28px; box-shadow: var(--shadow); }
.dialog-box .ok { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgb(34 197 94 / .15); color: var(--ok); margin-bottom: 16px; }
.dialog-box .ok .ic { width: 30px; height: 30px; }
.dialog-box h2 { font-size: 1.35rem; }
.dialog-box ol { margin: 16px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; color: #c8d2e8; }
.dialog-box .muted { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.dialog-box .muted a { color: var(--accent-2); font-weight: 600; }
.dialog-box .btn { width: 100%; margin-top: 20px; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- التجاوب ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .desk-feats { grid-template-columns: repeat(2, 1fr); }
  .plans.four { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .wide, .bento .xl { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nav, .topbar .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; inset-inline: 0; padding: 12px var(--gutter) 20px;
    background: rgb(5 10 24 / .97); border-bottom: 1px solid var(--line); gap: 4px;
  }
  .topbar.open .nav a { padding: 12px 16px; font-size: 1.05rem; }
  .hero-grid, .p-hero .hero-grid, .split, .dl-panel-grid, .products { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .stage { height: 460px; max-width: 520px; margin-inline: auto; width: 100%; }
  .stage .phone { width: 200px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { text-align: start; }
}
@media (max-width: 600px) {
  .features, .steps, .steps.three, .desk-feats, .plans.four, .stats ul, .ticks { grid-template-columns: 1fr; }
  .bento > *, .bento .wide, .bento .xl { grid-column: span 6; }
  .dl-pair { grid-template-columns: 1fr; }
  .dl-meta { display: none; }
  .stage { height: 400px; }
  .stage .phone { width: 168px; }
  .stage .chip { font-size: .78rem; padding: 8px 10px; }
  .chip .ci { width: 30px; height: 30px; }
  .marquee .phone { width: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .brand { font-size: .9rem; gap: 8px; }
  .topbar .brand-marks img { width: 30px; height: 30px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .product-top h3 { font-size: 1.35rem; }
  .split-media .phone { width: 46%; }
  .split-media .phone + .phone { margin-top: 40px; }
  .dl-row-title a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
