/* DZ View — تصميم الموقع كله (تولّده firebase-site/src/build.py مع الصفحات) */
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/cairo-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/fonts/cairo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #07040d; --bg2: #110a20; --card: #1a1030; --card2: #221540; --line: rgba(150, 100, 255, .22);
  --accent: #a855f7; --accent2: #7c3aed; --hot: #f472b6; --text: #f4efff; --muted: #a497c4; --on: #12061f;
  --radius: 18px; --shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Cairo", system-ui, sans-serif; line-height: 1.75;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---- الشريط العلوي ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 4, 13, .78); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: .3px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { color: var(--accent); }
.menu { display: flex; align-items: center; gap: 4px; margin-inline-start: 18px; }
.menu a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; transition: .15s; }
.menu a:hover, .menu a.on { color: var(--text); background: rgba(168, 85, 247, .12); }
.menu a.on { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 10px 10px 4px 4px; }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 800; font-size: 17px; padding: 13px 26px; border-radius: 14px; border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 10px 30px rgba(124, 58, 237, .35); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.btn svg { width: 21px; height: 21px; }
.btn.sm { font-size: 14px; padding: 8px 16px; border-radius: 11px; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; color: var(--text); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* ---- البطل ---- */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 500px at 85% -10%, rgba(168, 85, 247, .35), transparent 65%),
              radial-gradient(700px 420px at 0% 30%, rgba(244, 114, 182, .14), transparent 70%),
              linear-gradient(180deg, #160b2c 0, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; font-size: 15px;
  background: rgba(168, 85, 247, .12); border: 1px solid var(--line); padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: 52px; line-height: 1.22; margin: 0 0 16px; font-weight: 900; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ver { display: block; margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chips span { border: 1px solid var(--line); background: rgba(255, 255, 255, .02); border-radius: 999px; padding: 4px 14px; font-size: 13.5px; color: var(--muted); }

/* إطار الهاتف ولقطاته تتعاقب */
.phone { position: relative; width: min(330px, 100%); margin: 0 auto; aspect-ratio: 540 / 1082; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2b1d4a, #0d0818); box-shadow: var(--shadow), 0 0 0 1px rgba(168, 85, 247, .35), 0 0 80px rgba(168, 85, 247, .18); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0d0818; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.phone img.on { opacity: 1; }
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .25); cursor: pointer; transition: .3s; }
.dots button.on { width: 24px; background: var(--accent); }

/* ---- الأقسام ---- */
section { padding: 70px 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.head h2 { font-size: 34px; line-height: 1.3; margin: 0 0 8px; font-weight: 900; }
.head p { color: var(--muted); margin: 0; font-size: 17px; }
.alt { background: linear-gradient(180deg, transparent, rgba(26, 16, 48, .6), transparent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -10px; }
.stat { text-align: center; padding: 20px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 16, 48, .55); }
.stat b { display: block; font-size: 30px; font-weight: 900; background: linear-gradient(90deg, var(--accent), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* بطاقات الأقسام الكبيرة (مثل صفوف المواقع الكبيرة) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--card); min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-4px); border-color: var(--accent); }
/* من اللقطة: وسطها حيث الأغلفة، لا رأسها (عنوان التطبيق كان يظهر خلف عنوان البطاقة) */
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: .75;
  transform: scale(1.12); transition: opacity .3s, transform .4s; }
.tile:hover img { opacity: .9; transform: scale(1.16); }
.tile .in { position: relative; padding: 70px 22px 22px; background: linear-gradient(0deg, rgba(7, 4, 13, 1) 45%, rgba(7, 4, 13, .85) 70%, rgba(7, 4, 13, 0)); }
.tile h3 { margin: 0 0 4px; font-size: 23px; font-weight: 900; }
.tile p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.tile .more { color: var(--accent); font-weight: 800; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(168, 85, 247, .14); margin-bottom: 12px; }
.card .ic svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 18.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* صفحة قسم: نصّ ولقطة جنباً إلى جنب */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(168, 85, 247, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.list li b { color: var(--text); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px 22px 22px; position: relative; background: rgba(26, 16, 48, .4); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -17px; inset-inline-start: 20px; width: 34px; height: 34px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: grid; place-items: center; font-weight: 900; }
.step h3 { margin: 4px 0 4px; font-size: 17.5px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; font-size: 16.5px; }
details[open] summary { color: var(--accent); }
details p { color: var(--muted); margin: 8px 0 0; }

.cta { text-align: center; background: radial-gradient(600px 240px at 50% 0%, rgba(168, 85, 247, .3), transparent 70%), var(--card);
  border: 1px solid var(--line); border-radius: 26px; padding: 48px 22px; }
.cta h2 { font-size: 32px; margin: 0 0 6px; font-weight: 900; }
/* عدد التنزيلات تحت زرّ صفحة التحميل */
.dlcount { display: block; margin-top: 6px; color: var(--text); font-weight: 700; font-size: 15px; }
.dlcount b { color: var(--accent); }
/* رمز QR: للكمبيوتر وحده — على الهاتف لا معنى لمسحه */
.qr-card, .qr-sec { display: none; }
.qr { background: #fff; border-radius: 18px; padding: 10px; line-height: 0; flex: none;
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px -12px rgba(168, 85, 247, .55); }
.qr svg { display: block; border-radius: 8px; }
.qr-card p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.qr-card.big { gap: 40px; padding: 34px 40px; border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(520px 260px at 85% 50%, rgba(168, 85, 247, .22), transparent 70%), var(--card); }
.qr-card.big h2 { font-size: 30px; font-weight: 900; margin: 0 0 6px; }
.qr-card.big p { font-size: 16.5px; max-width: 520px; }
.qr-card.big .eyebrow { margin-bottom: 10px; }
.qr-url { display: inline-block; margin-top: 14px; direction: ltr; font-weight: 800; color: var(--accent);
  border: 1px dashed var(--line); border-radius: 10px; padding: 4px 12px; font-size: 14.5px; }
/* رمز الرئيسية: على كل الأجهزة */
.qr-hero { display: flex; align-items: center; gap: 18px; margin-top: 22px; max-width: 520px; padding: 14px;
  border: 1px solid var(--line); border-radius: 22px; background: rgba(26, 16, 48, .55); }
.qr-hero .qr { padding: 8px; border-radius: 14px; }
.qr-hero b { font-size: 17px; }
.qr-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.qr-hero .on-desk { display: none; }
@media (max-width: 600px) { .qr-hero { flex-direction: column; text-align: center; margin: 22px auto 0; gap: 10px; padding: 18px 16px; } }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .qr-hero .on-desk { display: block; }
  .qr-hero .on-phone { display: none; }
  .qr-sec { display: block; padding-top: 34px; }
  .qr-card { display: flex; align-items: center; gap: 18px; text-align: start; }
  .cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; text-align: start; padding: 40px 48px; }
  .cta-main { text-align: start; }
  .cta .qr-card { max-width: 380px; border-inline-start: 1px solid var(--line); padding-inline-start: 30px; }
}
.cta p { color: var(--muted); margin: 0 0 24px; }

.page-hero { padding: 56px 0 30px; text-align: center; background: radial-gradient(700px 320px at 50% -20%, rgba(168, 85, 247, .3), transparent 70%); }
.page-hero h1 { font-size: 42px; margin: 0 0 8px; font-weight: 900; }
.page-hero p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 680px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 23px; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose b { color: var(--text); }
.note { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: rgba(168, 85, 247, .07); color: var(--muted); }
.note b { color: var(--text); }
.whatsnew { white-space: pre-line; }

/* ---- التذييل ---- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 28px; background: #05030a; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
footer h4 { margin: 0 0 10px; font-size: 15px; }
footer a { display: block; color: var(--muted); font-size: 14.5px; padding: 3px 0; }
footer a:hover { color: var(--text); }
footer .about { color: var(--muted); font-size: 14.5px; max-width: 320px; }
footer .base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.flag { display: inline-block; width: 24px; height: 16px; vertical-align: middle; border-radius: 2px; margin-inline-start: 6px; }

/* ---- الهاتف ---- */
@media (max-width: 960px) {
  .menu { display: none; position: absolute; top: 66px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #0b0616; border-bottom: 1px solid var(--line); padding: 8px 14px 14px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px; font-size: 16px; }
  .menu a.on { box-shadow: none; }
  .burger { display: grid; place-items: center; }
  .top .end .btn { display: none; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 34px; }
  .split.rev > :first-child { order: 0; }
  .hero { padding-top: 40px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .actions, .chips { justify-content: center; }
  .hero h1 { font-size: 36px; }
  .tiles, .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .tile { min-height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 32px; }
  .head h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
