/* الخطوط محفوظة داخل الموقع بدل Google Fonts (أسرع، ولا تعلق إن حُجبت خوادم Google) */
/* Alexandria — arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/alexandria-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Alexandria — latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/alexandria-latin-1.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;
}
/* Alexandria — arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/alexandria-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Alexandria — latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/alexandria-latin-1.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;
}
/* Alexandria — arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alexandria-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Alexandria — latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alexandria-latin-1.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;
}
/* Alexandria — arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/alexandria-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Alexandria — latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/alexandria-latin-1.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;
}
/* Alexandria — arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/alexandria-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Alexandria — latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/alexandria-latin-1.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;
}
/* Alexandria — arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/alexandria-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Alexandria — latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/alexandria-latin-1.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;
}
/* IBM Plex Sans Arabic — arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-arabic-1.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* IBM Plex Sans Arabic — latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-latin-1.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;
}
/* IBM Plex Sans Arabic — arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-arabic-2.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* IBM Plex Sans Arabic — latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-latin-2.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;
}
/* IBM Plex Sans Arabic — arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-arabic-3.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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* IBM Plex Sans Arabic — latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-latin-3.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;
}
/* ============================================================
   وارِف — التصميم العام
   فكرته: مساحة فاتحة دافئة، خط عربي كبير، ولون واحد يتبدّل مع كل مشروع
   ============================================================ */

@view-transition { navigation: auto; }

:root {
  --ink: #f6f3ed;            /* الخلفية: كريمي دافئ */
  --ink-2: #ece7de;
  --card: rgba(255, 255, 255, 0.55);
  --line: rgba(28, 24, 20, 0.10);
  --line-2: rgba(28, 24, 20, 0.18);
  --text: #18161a;
  --muted: #5a5650;
  --faint: #8b867e;
  --accent: #2f6b4f;          /* لون القسم الحالي، يتغير مع التمرير */
  --accent-soft: rgba(47, 107, 79, 0.16);
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* صفحات المشاريع تبدأ بلونها مباشرة */
:root:has(body[data-accent="orange"]) { --accent: #f26b0f; --accent-soft: rgba(242, 107, 15, 0.18); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- الخلفية الحيّة (WebGL) والحبيبات ---------- */
#bg {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none;
  width: 200%; height: 200%;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- المؤشر المخصّص (للحاسوب فقط): ورقة شجر رأسها عند موضع الفأرة ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 26px; height: 26px; transform-origin: 1px 1px; will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(20, 30, 20, .18));
}
.cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cursor .leaf { fill: var(--accent); transition: fill .8s; }
.cursor .vein { stroke: #f6f3ed; stroke-width: 1.3; stroke-linecap: round; fill: none; opacity: .75; }
/* يختفي مؤشر النظام حين تعمل الورقة، فلا يظهران فوق بعضهما (ويبقى مؤشر الكتابة في الحقول) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- الشريط العلوي ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding .5s var(--ease), background .5s var(--ease), backdrop-filter .5s;
}
.nav.scrolled {
  padding-block: 14px;
  background: rgba(246, 243, 237, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
/* الشعار الكتابي «وارِف»: بقع ضوء خضراء تتحرك داخل الحروف، كضوء الشمس بين أغصان الشجرة */
.logo {
  font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -0.01em;
  display: inline-block; line-height: 1.3;
  /* مساحة للكسرة تحت الراء: القصّ على النص لا يرسم خارج صندوق العنصر */
  padding-bottom: .3em; margin-bottom: -.3em;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image:
    radial-gradient(circle at 15% 55%, #4f9b74 0 10%, transparent 22%),
    radial-gradient(circle at 55% 35%, #2f6b4f 0 9%, transparent 20%),
    radial-gradient(circle at 85% 60%, #4f9b74 0 8%, transparent 18%),
    linear-gradient(var(--text), var(--text));
  background-size: 220% 100%, 260% 100%, 200% 100%, 100% 100%;
  animation: logo-dapple 2.8s ease-in-out infinite alternate;
}
@keyframes logo-dapple {
  from { background-position: 0% 0, 100% 0, 30% 0, 0 0; }
  to   { background-position: 100% 0, 0% 0, 90% 0, 0 0; }
}
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- عام ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; }
.eyebrow {
  font-size: 15px; letter-spacing: 0.02em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
/* ورقة شجر صغيرة قبل العناوين الصغيرة بدل الخط (بلون الهوية) */
.eyebrow::before {
  content: ""; width: 1em; height: 1em; flex: none;
  background: var(--accent); transition: background .8s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Cpath d='M3.5 3.5L19 19M7.5 7.5L7.8 12M7.5 7.5L12 7.8M11.5 11.5L11.8 16.2M11.5 11.5L16.2 11.8M15.3 15.3L15.5 18.6M15.3 15.3L18.6 15.5' stroke='black' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Cpath d='M1 1C14 1 23 8 21 21C8 23 1 14 1 1Z' mask='url%28%23m%29'/%3E%3Cpath d='M20.3 20.3L23.4 23.4' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Cpath d='M3.5 3.5L19 19M7.5 7.5L7.8 12M7.5 7.5L12 7.8M11.5 11.5L11.8 16.2M11.5 11.5L16.2 11.8M15.3 15.3L15.5 18.6M15.3 15.3L18.6 15.5' stroke='black' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Cpath d='M1 1C14 1 23 8 21 21C8 23 1 14 1 1Z' mask='url%28%23m%29'/%3E%3Cpath d='M20.3 20.3L23.4 23.4' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.library .eyebrow { font-size: 21px; }
.library .section-head h2 { margin-top: 32px; line-height: 1.3; }
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); }
/* مساحة تحت السطر لذيول الحروف العربية (ر، ب، ي...) حتى لا يقصّها القناع، دون تغيير المسافات */
.line-mask { display: block; overflow: hidden; padding-block: 0.1em 0.34em; margin-block: -0.04em -0.28em; }
.line-mask > span { display: inline-block; will-change: transform; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 15px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease);
}
.btn-solid { background: var(--text); color: var(--ink); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn-solid:hover::before { transform: translateY(0); }
.btn-solid:hover { color: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn .apple-logo { width: 17px; height: 17px; margin-top: -3px; }
.btn:hover .apple-logo { transform: translateY(-2px); }
.btn .win-logo { width: 16px; height: 16px; }
.btn:hover .win-logo { transform: translateY(-2px); }
/* زرّا التنزيل متساويان جنبًا إلى جنب، وتحتهما طريقة التثبيت */
.dl-pair { justify-content: center; }
.dl-pair .btn { min-width: 210px; justify-content: center; white-space: nowrap; }
.dl-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; }
.btn-small { height: 42px; padding: 0 20px; font-size: 14px; }
.arm-link { font-size: 13px; color: var(--faint); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.arm-link:hover { color: var(--text); }
.alt-dl { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.alt-dl a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.alt-dl a:hover { text-decoration-color: var(--accent); }

/* ---------- الواجهة ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 140px 9vh;
}
/* ظلال أغصان شجرة وارفة: طبقتان تتمايلان بإيقاعين مختلفين، كأن الريح تحرك الشجرة والشمس خلفها */
/* تخرج من الحافة اليسرى وتتلاشى قبل أن تصل إلى العنوان (يمين الصفحة) */
.canopy {
  position: absolute; z-index: -1; pointer-events: none;
  top: 40px; left: calc(50% - 50vw);
  width: min(60vw, 1000px); aspect-ratio: 1000 / 900;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 92%), linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 45%, transparent 92%), linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
          mask-composite: intersect;
}
.cl { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 0 0; mix-blend-mode: multiply; }
.cl-back  { opacity: .14; filter: blur(5px);   animation: sway-a 9s ease-in-out infinite alternate; }
.cl-front { opacity: .17; filter: blur(2.5px); animation: sway-b 6.5s ease-in-out infinite alternate; }
@keyframes sway-a { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg) translate(10px, 6px); } }
@keyframes sway-b { from { transform: rotate(1deg) skewX(-1deg); } to { transform: rotate(-1.6deg) skewX(1.5deg) translate(-8px, 4px); } }

/* كرة زجاجية تطفو (لم تعد مستعملة، بقيت لاحتمال الرجوع إليها) */
.orb {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(200px, 23vw, 380px); aspect-ratio: 1;
  left: 5%; top: 24%;
  animation: float 9s ease-in-out infinite;
}
.orb::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 24%),
    radial-gradient(circle at 70% 75%, var(--accent), transparent 64%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,.7), rgba(255,255,255,.25) 60%);
  box-shadow: inset 0 0 50px rgba(255,255,255,.6), inset -20px -30px 70px rgba(40,30,20,.14), 0 40px 80px -30px rgba(40,30,20,.25);
  opacity: .9; transition: background .8s;
}
.orb::after {
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(40px); z-index: -1;
}
.orb i {
  position: absolute; inset: -14%; border-radius: 50%;
  border: 1px solid var(--line-2);
  animation: spin 40s linear infinite;
}
.orb i::before {
  content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--text); box-shadow: 0 0 14px var(--text);
}
@keyframes float { 50% { transform: translateY(-18px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero h1 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(46px, 10.5vw, 168px);
  line-height: 1.2; letter-spacing: -0.035em;
  margin: 26px 0 0;
}
.hero h1 strong { font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); transition: color .8s; }
.hero-foot {
  margin-top: clamp(36px, 7vh, 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero-foot p { margin: 0; flex: 0 0 530px; color: var(--muted); font-size: 20px; text-align: center; }
/* الركائز الثلاث بجانب شرح المعنى في أسفل الواجهة */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 480px; }
.pillar { border-top: 1px solid var(--line-2); padding-top: 14px; }
.pillar .n { font-family: var(--display); font-weight: 200; font-size: 30px; line-height: 1; color: var(--accent); transition: color .8s; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 10px 0 4px; }
.pillar p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.scroll-cue {
  display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted);
}
.scroll-cue span {
  width: 1px; height: 56px; background: var(--line-2); position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ""; position: absolute; inset: 0; background: var(--text);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- الشريط المتحرك ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; direction: ltr;
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; gap: 46px; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 200; font-size: clamp(26px, 4vw, 52px);
  color: var(--faint); letter-spacing: 0.02em;
}
.marquee-track span.on { color: var(--text); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- المشروع المميّز ---------- */
.feature { padding-block: clamp(90px, 16vh, 180px); }
.feature-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center;
}
.feature-num {
  font-family: var(--display); font-weight: 300; font-size: 18px; color: var(--muted);
  display: flex; gap: 14px; align-items: center;
}
.feature-num b { font-weight: 300; font-size: 44px; line-height: 1; color: var(--accent); }
.feature h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(54px, 9vw, 132px); line-height: 1.15; letter-spacing: -0.04em;
  margin: 22px 0 18px;
}
.feature .lead { font-size: clamp(19px, 1.7vw, 23px); color: var(--text); max-width: 470px; margin: 0 0 14px; font-weight: 300; }
.feature .sub { color: var(--muted); max-width: 440px; margin: 0 0 34px; }
.kbd {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 8px;
  font-family: var(--display); font-size: 14px; color: var(--text); vertical-align: middle; margin-inline: 2px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta { margin-top: 18px; font-size: 14px; color: var(--faint); }

/* الدائرة الحقيقية: إطارات مصوّرة من التطبيق */
.wheel-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.wheel-glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  filter: blur(30px); transform: scale(1.25);
}
.wheel { position: absolute; inset: 0; }
.wheel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .12s linear;
  user-select: none; -webkit-user-drag: none;
}
.wheel img.on { opacity: 1; }
.wheel-hint {
  position: absolute; bottom: -6px; inset-inline: 0; text-align: center;
  font-size: 13px; color: var(--faint);
}

/* ---------- المكتبة ---------- */
.library { padding-block: clamp(80px, 14vh, 160px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(30px, 5vh, 54px);
}
.section-head h2 {
  font-family: var(--display); font-weight: 300; font-size: clamp(38px, 5.6vw, 76px);
  letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 0;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); color: var(--muted);
  transition: all .35s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--text); color: var(--ink); border-color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  min-height: 380px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .5s, transform .6s var(--ease), opacity .5s;
  transform-style: preserve-3d;
}
.card:hover { border-color: var(--line-2); }
.card .type { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
/* شعارا آبل وويندوز بدل كتابة اسميهما في بطاقة التطبيق */
.type-os { display: inline-flex; align-items: center; gap: 10px; }
.type-os .os-logo { width: 15px; height: 15px; }
.card-feature h3 { font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card-feature p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.card .art {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  transition: transform 1s var(--ease);
}
.card:hover .art { transform: scale(1.06); }
.card-feature { grid-column: span 2; min-height: 460px; }
.cards > .card:only-child { grid-column: 1 / -1; }   /* عنصر واحد في المكتبة: يأخذ العرض كله */
.card-feature .art {
  background:
    radial-gradient(60% 70% at 15% 30%, rgba(255, 140, 50, 0.30), transparent 70%),
    radial-gradient(40% 50% at 80% 90%, rgba(255, 190, 90, 0.22), transparent 70%);
}
.card-feature .icon {
  position: absolute; top: 50%; left: 9%; width: 42%; max-width: 230px;
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 30px 50px rgba(230, 100, 20, 0.30));
  transition: transform 1s var(--ease);
}
.card-feature:hover .icon { transform: translateY(-54%) rotate(-2deg) scale(1.04); }
/* الأيقونة تتمايل وتطفو باستمرار، كثمرة معلّقة يحرّكها الهواء */
.card-feature .icon { animation: icon-sway 5s ease-in-out infinite; }
@keyframes icon-sway {
  0%, 100% { rotate: -4deg; translate: 0 0; }
  50%      { rotate: 5deg;  translate: 0 -12px; }
}
.card-feature .bottom { max-width: 52%; }
.card .go {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-top: 22px;
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.card:hover .go { background: var(--text); color: var(--ink); transform: rotate(-45deg); }
.card .go svg { width: 18px; height: 18px; }
.card.soon { border-style: dashed; }
.card.soon h3 { color: var(--faint); font-weight: 300; }
.card.soon .dots { display: flex; gap: 6px; }
.card.soon .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: pulse 1.6s infinite; }
.card.soon .dots i:nth-child(2) { animation-delay: .2s; } .card.soon .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.card.hide { display: none; }

/* ---------- النشرة البريدية ---------- */
.news { padding-block: clamp(90px, 16vh, 180px); text-align: center; }
.news h2 {
  font-family: var(--display); font-weight: 300; font-size: clamp(44px, 8vw, 116px);
  line-height: 1; letter-spacing: -0.04em; margin: 18px 0 18px;
}
.news h2 strong { font-weight: 700; }
.news p { color: var(--muted); margin: 0 auto 38px; max-width: 420px; }
.news form {
  margin: 0 auto; max-width: 480px; display: flex; gap: 6px; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.6);
  transition: border-color .4s;
}
.news form:focus-within { border-color: var(--text); }
.news input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: 16px; padding: 0 18px; direction: ltr; text-align: right;
}
.news input::placeholder { color: var(--faint); direction: rtl; }
.news .btn { height: 48px; }
.news .note { margin-top: 16px; font-size: 14px; color: var(--faint); }
.news .done { display: none; font-family: var(--display); font-size: 20px; }
.news.sent form { display: none; }
.news.sent .done { display: block; }

/* ---------- التذييل ---------- */
footer { border-top: 1px solid var(--line); padding-block: 60px 40px; }
.foot-big {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.05em; line-height: .85;
  font-size: clamp(80px, 22vw, 330px); color: rgba(28, 24, 20, 0.05);
  margin: 0 0 40px; user-select: none;
}
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 22px; }
.socials a:hover { color: var(--text); }

/* ============================================================
   صفحة المشروع
   ============================================================ */
.p-hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: 130px 80px; }
.p-hero .app-icon {
  width: clamp(110px, 16vw, 168px); margin: 0 auto 30px;
  filter: drop-shadow(0 30px 60px rgba(230, 100, 20, .32));
}
.p-hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(64px, 13vw, 190px);
  line-height: .95; letter-spacing: -0.045em; margin: 0;
}
.p-hero .tag { font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; margin: 18px 0 40px; color: var(--muted); }
.p-hero .tag b { color: var(--text); font-weight: 400; }
.p-hero .actions { justify-content: center; }
.mobile-note {
  display: none; margin: 0 auto; max-width: 360px; padding: 18px 20px; border-radius: 20px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 15px; color: var(--muted);
}
.mobile-note b { color: var(--text); font-weight: 500; }
.mobile-note .btn { margin-top: 14px; width: 100%; justify-content: center; }

.demo { padding-block: clamp(60px, 12vh, 140px); }
.demo .wheel-stage { max-width: 620px; margin: 0 auto; }

.steps { padding-block: clamp(70px, 12vh, 140px); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.step { border-top: 1px solid var(--line-2); padding-top: 26px; }
.step .n { font-family: var(--display); font-weight: 200; font-size: 64px; line-height: 1; color: var(--accent); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* معنى الاسم في الصفحة الرئيسية */
.name-story .section-head { margin-bottom: 18px; flex-wrap: nowrap; gap: 48px; }
.name-story .section-head > div { flex: 0 0 auto; }
.name-story .name-lead { flex: 1 1 260px; max-width: 380px; }
/* الشدّة والتنوين فوق «ظلٌّ» و«نفعٌ» ترتفع كثيرًا، فنزيد المسافة فوق العنوان وبين سطريه حتى لا تلامس ما فوقها */
.name-story .section-head h2 { margin-top: 0.5em; line-height: 1.3; font-size: clamp(28px, 3.6vw, 50px); }
/* شرح المعنى بجانب الجملة لا تحتها، بخط عمودي يفصل بينهما، حتى لا تطول الصفحة */
.name-lead {
  font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); margin: 0;
  max-width: 400px; padding-inline-start: 22px; border-inline-start: 1px solid var(--line-2);
}
.name-story .steps-grid { margin-top: 40px; }

.abilities { padding-block: clamp(70px, 12vh, 140px); }
.ab-list { margin-top: 40px; border-top: 1px solid var(--line); }
.ab {
  display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: baseline;
  padding-block: 28px; border-bottom: 1px solid var(--line);
}
.ab h3 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0; }
.ab .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ab .pills span {
  font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  transition: all .3s;
}
.ab:hover .pills span { border-color: var(--line-2); color: var(--text); }

.privacy { padding-block: clamp(90px, 16vh, 180px); text-align: center; }
.privacy h2 {
  font-family: var(--display); font-weight: 300; font-size: clamp(40px, 7vw, 100px);
  line-height: 1.05; letter-spacing: -0.035em; margin: 0 auto; max-width: 15ch;
}
.privacy h2 strong { font-weight: 700; color: var(--accent); }
.privacy p { color: var(--muted); max-width: 460px; margin: 26px auto 0; }

.guide { padding-block: clamp(70px, 12vh, 140px); }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.guide-grid.three { grid-template-columns: repeat(3, 1fr); }
.guide[data-os="mac"] [data-os-panel="win"], .guide[data-os="win"] [data-os-panel="mac"] { display: none; }
.os-tabs { display: inline-flex; gap: 4px; margin-top: 40px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.os-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: background .4s, color .4s; }
.os-tabs button svg { width: 15px; height: 15px; }
.guide[data-os="mac"] [data-os-tab="mac"], .guide[data-os="win"] [data-os-tab="win"] { background: var(--text); color: var(--ink); }
.g-step {
  border-radius: 24px; border: 1px solid var(--line); background: var(--card);
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
}
.g-step .mock {
  aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -18px rgba(40,30,20,.3);
  display: grid; place-items: center; padding: 14px; text-align: center; font-size: 13px; color: var(--muted);
}
.g-step .mock .pill-btn {
  display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 8px;
  background: #2f6df6; color: #fff; font-size: 12px; direction: ltr;
}
.g-step .mock .path { direction: ltr; font-size: 12px; color: var(--text); line-height: 1.9; }
.g-step .mock .path i { color: var(--faint); font-style: normal; margin-inline: 4px; }
.g-step b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.g-step span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.g-step code { direction: ltr; unicode-bidi: isolate; font-family: inherit; color: var(--text); }

.faq { padding-block: clamp(70px, 12vh, 140px); }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); max-width: 860px; }
.q { border-bottom: 1px solid var(--line); }
.q button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; text-align: start; font-family: var(--display); font-weight: 400; font-size: clamp(19px, 2vw, 24px);
}
.q button i { width: 22px; height: 22px; position: relative; flex: none; }
.q button i::before, .q button i::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease);
}
.q button i::after { transform: rotate(90deg); }
.q.open button i::after { transform: rotate(0); }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.q.open .a { grid-template-rows: 1fr; }
.q .a > div { overflow: hidden; }
.q .a p { margin: 0 0 26px; color: var(--muted); max-width: 640px; }

.cta-end { padding-block: clamp(100px, 18vh, 200px); text-align: center; }
.cta-end h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(48px, 9vw, 130px);
  letter-spacing: -0.045em; line-height: .95; margin: 0 0 40px;
}
.cta-end .actions { justify-content: center; }

.back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px;
  transition: color .3s;
}
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }

/* ============================================================
   الجوال
   ============================================================ */
@media (max-width: 900px) {
  /* على الشاشات الصغيرة: الاسم والفائدة أولًا، ثم الدائرة، ثم طريقة الاستعمال والأزرار */
  .feature-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .feature-text { display: contents; }
  .feature-num { order: 1; }
  .feature h2 { order: 2; margin: 10px 0 24px; }
  .feature .lead { order: 3; }
  .feature-grid .wheel-stage { order: 4; width: 100%; max-width: 420px; margin: 18px auto 34px; }
  .feature .sub { order: 5; }
  .feature .actions { order: 6; }
  .feature .meta { order: 7; }
  .cards { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; min-height: 420px; }
  .card-feature .icon { top: 70px; left: 50%; width: 42%; transform: translateX(-50%) rotate(-8deg); }
  .card-feature:hover .icon { transform: translateX(-50%) rotate(-2deg) scale(1.04); }
  .card-feature .bottom { max-width: none; }
  .card { min-height: 300px; }
  /* بطاقة برتقالة أطول على الجوال حتى لا تغطي أيقونتُها العنوانَ والنص */
  .card.card-feature { min-height: 500px; }
  .steps-grid { grid-template-columns: 1fr; gap: 34px; }
  .pillars { grid-template-columns: 1fr; gap: 20px; max-width: none; }
  .name-story .section-head { flex-wrap: wrap; gap: 24px; }
  .name-story .section-head > div { flex: 1 1 100%; }
  .name-story .name-lead { max-width: none; }
  .ab { grid-template-columns: 1fr; gap: 14px; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding-block: 16px; }
  .logo { font-size: 34px; }
  .name-story h2 br { display: none; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding-block: 110px 7vh; }
  .orb { width: 58vw; left: 50%; top: 13%; margin-left: -29vw; }
  .canopy { width: 100vw; top: 56px; }
  .hero-foot p { font-size: 17px; flex: 1 1 auto; }
  .hero-foot p br { display: none; }
  .scroll-cue { display: none; }
  .btn { height: 52px; }
  .actions .btn { flex: 1; justify-content: center; }
  .dl-pair .btn { min-width: 0; padding: 0 16px; gap: 8px; }
  .guide-grid { grid-template-columns: 1fr; }
  .news form { flex-direction: column; border-radius: 26px; padding: 8px; }
  .news input { height: 48px; text-align: center; }
  .news .btn { width: 100%; justify-content: center; }
  .foot-row { flex-direction: column; }
}
/* زر التنزيل حسب نظام الجهاز: ماك أو ويندوز، وعلى الجوال ملاحظة بدل الزر */
html:not(.is-mac) .only-mac, html:not(.is-win) .only-win { display: none !important; }
html:not(.is-mac):not(.is-win) .only-desktop { display: none !important; }
html.is-mac .only-other, html.is-win .only-other { display: none !important; }
html:not(.is-mac):not(.is-win) .mobile-note { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .logo { background-image: none; color: var(--text); }
}
