/* GZ — موقع التطبيقات. نفس هوية مقاطع تيك توك: جدار جص أبيض، حبر داكن، ونحاسي (انظر video/remotion/src/wall.tsx). */
/* الخطوط محفوظة داخل الموقع نفسه (رخصة OFL) — بدون أي اتصال بجهات خارجية */
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-arabic-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-latin-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-arabic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-latin-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-arabic-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-latin-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Readex Pro'; src: url(fonts/readex-arabic.woff2) format('woff2'); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Readex Pro'; src: url(fonts/readex-latin.woff2) format('woff2'); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  /* هوية GZ الموحّدة (نفس WALL في مقاطع تيك توك) */
  --bg: #f3efe7;        /* جص */
  --bg2: #fbf8f2;       /* بطاقة فاتحة */
  --card: #fffdf8;
  --line: #e6dccb;
  --text: #1b1c1e;      /* حبر */
  --soft: #4a463f;
  --muted: #7b7368;
  --brass: #b0813c;     /* نحاسي */
  --brass2: #8d6428;
  --teal: #1d6f66;      /* روابط */
  --shadow: 0 18px 50px rgba(40, 30, 20, .12);
  --radius: 20px;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; font-size: 15.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* ضوء شباك ناعم على الجدار */
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 249, 236, .75) 30%, transparent 46%) fixed,
    linear-gradient(180deg, #f3efe7 0%, #efe9df 100%) fixed;
}
h1, h2, h3, .brand { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif; line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* الشريط العلوي */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 239, 231, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
/* شعار GZ: بلاطة حبر، G جص و Z نحاسي */
.gz { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; letter-spacing: -.02em; font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 14px; color: var(--bg);
  background: var(--text); box-shadow: 0 6px 18px rgba(27, 28, 30, .25); direction: ltr; }
.gz b { color: var(--brass); font-weight: 700; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(27, 28, 30, .06); }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  background: var(--text); color: var(--bg); box-shadow: 0 8px 22px rgba(27, 28, 30, .2); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 253, 248, .7); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brass); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* البطل */
.hero { padding: 44px 0 30px; text-align: center; }
.hero .gz { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; margin: 0 auto 16px; box-shadow: 0 14px 36px rgba(27, 28, 30, .25); }
.hero h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
.hero p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 10px auto 20px; }
.hero .btns { justify-content: center; }

section { padding: 30px 0; }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-title h2 { font-size: 22px; }
.sec-title p { color: var(--muted); }

/* بطاقات التطبيقات */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; box-shadow: var(--shadow); }
.app:hover { border-color: var(--brass); transform: translateY(-3px); }
.app .shot { aspect-ratio: 16 / 8.6; overflow: hidden; border-bottom: 1px solid var(--line); background: #141517; }
.app .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app .head { display: flex; align-items: center; gap: 14px; }
.icon { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; }
.icon.car { background: linear-gradient(135deg, #22408f, #040a1c); border: 1px solid rgba(127, 166, 255, .25); }
.icon.niz { background: linear-gradient(135deg, #5b82ff, #1a3ab8); }
.app h3 { font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; }
.app .desc { color: var(--soft); font-size: 14.5px; }
.app .btns { margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(176, 129, 60, .12); color: var(--brass2); }

/* تدوينات */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.post { padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.post:hover { border-color: var(--brass); }
.post h3 { font-size: 16.5px; }
.post .excerpt { color: var(--muted); font-size: 15px; }

/* صفحة تطبيق */
.app-hero { padding: 32px 0 10px; }
.app-hero .grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: center; }
.app-hero .head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.app-hero .icon { width: 58px; height: 58px; border-radius: 16px; }
.app-hero .icon svg { width: 34px; height: 34px; }
.app-hero h1 { font-size: clamp(24px, 3vw, 32px); }
.app-hero .lead { color: var(--soft); font-size: 15.5px; margin-bottom: 16px; }
/* الصورة مثل تلفزيون معلّق على الجدار */
.app-hero .frame { border-radius: 16px; overflow: hidden; border: 12px solid #141517; box-shadow: 0 34px 80px rgba(40, 30, 20, .3); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.feature { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.feature h3 { font-size: 15.5px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.feature h3 span { font-size: 18px; }
.feature p { color: var(--muted); font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.gallery figcaption { padding: 10px 16px; color: var(--muted); font-size: 14px; }

.note { padding: 12px 16px; border-radius: 14px; background: #f7ecd6; border: 1px solid #e5cf9f; color: #6b4f1f; font-size: 14px; }
.note.dev { margin-top: 14px; background: #f9e6d8; border-color: #e8b892; color: #7d3f16; line-height: 1.8; }
.btn.off { background: transparent; border: 1px dashed #d39a6a; color: #9a5527; box-shadow: none; cursor: not-allowed; }
.btn.off:hover { transform: none; }
.note.blue { background: #e4efec; border-color: #b7d3cd; color: #164e48; }

/* خطوات التثبيت */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.step::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: 'Readex Pro', sans-serif; font-weight: 700; font-size: 17px;
  background: var(--text); color: var(--brass); }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p, .step li { color: var(--soft); font-size: 14.5px; }
.step ul { margin: 6px 0 0; padding-inline-start: 20px; }
.kbd { display: inline-block; padding: 0 8px; border-radius: 6px; background: #efe7da; border: 1px solid var(--line); font-size: 14px; color: var(--text); }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brass); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--soft); margin-top: 10px; }

.hash { font-family: ui-monospace, monospace; font-size: 12px; color: var(--teal); direction: ltr; text-align: left; word-break: break-all; }

/* المقال */
.article { max-width: 720px; margin-inline: auto; padding: 32px 0; }
.article h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.article .meta { margin-bottom: 30px; }
.article h2 { font-size: 19px; margin: 26px 0 8px; }
.article p, .article li { color: #33302b; font-size: 16px; line-height: 1.85; }
.article p + p { margin-top: 14px; }
.article ul { padding-inline-start: 22px; }
.article a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article figure { margin: 26px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.article figcaption { padding: 10px 16px; color: var(--muted); font-size: 14px; background: var(--card); }

footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: 13px; margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }

@media (max-width: 820px) {
  .app-hero .grid { grid-template-columns: 1fr; }
  .top .wrap { gap: 12px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 8px 9px; font-size: 13.5px; white-space: nowrap; }
  .top .brand span:not(.gz) { display: none; }
  section { padding: 40px 0; }
  .step { grid-template-columns: 1fr; }
}

/* التواصل: كل أيقونة بلون تطبيقها */
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.social a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.social a:hover { border-color: var(--brass); }
.si { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; font-style: normal; }
.si svg { width: 22px; height: 22px; }
.si.tt { background: #000; border: 1px solid rgba(255, 255, 255, .12); }
.si.sc { background: #FFFC00; }
.si.ml { background: #EA4335; }
.social span { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; }
.social small { color: var(--muted); font-weight: 400; font-size: 13px; direction: ltr; text-align: right; }
.mini { display: flex; gap: 8px; }
.mini a { display: block; }
.mini .si { width: 34px; height: 34px; border-radius: 10px; }
.mini .si svg { width: 18px; height: 18px; }
.mini span { display: none; }

/* كل تطبيق بلون أيقونته */
.btn.car { background: linear-gradient(135deg, #2b4fae, #0a1430); color: #fff; border: 1px solid rgba(127, 166, 255, .3); box-shadow: 0 8px 22px rgba(34, 64, 143, .3); }
.btn.niz { background: linear-gradient(135deg, #5b82ff, #1a3ab8); color: #fff; }
.icon.car { box-shadow: 0 6px 18px rgba(34, 64, 143, .3); }
.icon.niz { box-shadow: 0 6px 18px rgba(91, 130, 255, .3); }

/* شاشة البيت (التلفزيون): أخضر الروابط مع نحاسي */
.icon.tv { background: linear-gradient(135deg, #13504c, #0b2424); border: 1px solid rgba(214, 178, 96, .3); box-shadow: 0 6px 18px rgba(19, 80, 76, .3); }
.btn.tv { background: var(--teal); color: #fbf8f2; box-shadow: 0 8px 22px rgba(29, 111, 102, .3); }
.btn.tv.lg { background: #a50034; color: #fff; box-shadow: 0 8px 22px rgba(165, 0, 52, .25); }
.subh { font-size: 18px; margin: 26px 0 12px; }
.subh small { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 400; font-size: 14px; color: var(--muted); margin-right: 8px; }
