/* ============================================================
   Tech Watt — صفحة الهبوط
   الهوية مأخوذة من التطبيق نفسه: أزرق→بنفسجي مع لمسة برق،
   قاعدة كحلية داكنة، ولون قرمزي للأسعار وأزرار الإجراء.
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-lt: #3b82f6;
  --violet: #7c3aed;
  --violet-lt: #a855f7;
  --rose: #f43f5e;
  --rose-lt: #fb7185;

  --ink: #0b1020;
  --ink-2: #141b34;
  --body: #1e2540;
  --muted: #5a6380;   /* 5.95:1 على الأبيض · 5.56:1 على الرمادي — كان 4.28:1 راسبًا */
  --line: #e6e9f2;
  --soft: #f6f7fc;
  --white: #fff;

  --grad: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
  --grad-r: linear-gradient(135deg, var(--rose) 0%, #e11d48 100%);

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 34px;

  --shadow-s: 0 2px 8px rgba(16, 24, 60, .06);
  --shadow: 0 18px 44px -18px rgba(16, 24, 60, .28);
  --shadow-lg: 0 44px 90px -30px rgba(16, 24, 60, .42);

  --nav-h: 68px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }

body {
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .ttl { font-family: 'Cairo', 'Tajawal', sans-serif; font-weight: 800; line-height: 1.5; color: var(--ink); }
.hero h1 { line-height: 1.28; }   /* العناوين العرضية الكبيرة تتحمّل تضييقًا */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- الأزرار ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 15px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, background .22s;
  will-change: transform;
}
.btn-1 {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 26px -8px rgba(124, 58, 237, .6), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-1:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -10px rgba(124, 58, 237, .68), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-2 { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-s); }
.btn-2:hover { transform: translateY(-3px); border-color: #c9cfe4; box-shadow: var(--shadow); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 22px -8px rgba(37, 211, 102, .65); }
.btn-wa:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.975); }

/* ---------------- الشريط العلوي ---------------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(16,24,60,.3); }
/* شبكة من ٣ أعمدة: اللوكو على حافة، الروابط بالوسط، الإجراءات على الحافة الأخرى.
   الشبكة تحترم dir=rtl تلقائيًا. الأهم: عند إخفاء الروابط تحت 1024px ينهار
   العمود الأوسط وحده وتبقى الحافتان مثبّتتين — بخلاف الدفع بـmargin auto الذي
   كان ينهار ويلصق الأزرار باللوكو. */
.nav .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; }
.brand { grid-column: 1; display: flex; align-items: center; gap: 11px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(37,99,235,.55); }
.nav-links { grid-column: 2; justify-self: center; display: flex; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: #4a5578; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--soft); color: var(--violet); }
.nav-act { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 9px; }
/* ارتفاع زر التحميل مساوٍ لزر القائمة (44px) — كان 55.75px فيبان غير محاذٍ */
.nav-act .btn { padding-block: 12px; line-height: 1.35; min-block-size: 44px; }
/* توسيط بصري دقيق للروابط على الحاسوب (العمودان الجانبيان غير متساويين) */
@media (min-width: 1024px) { .nav .wrap { grid-template-columns: 1fr auto 1fr; } }

/* ---------------- زر القائمة ---------------- */
.burger {
  --bar-w: 20px;    /* طول الشرطة */
  --bar-h: 2px;     /* سماكتها */
  --bar-gap: 5px;   /* الفراغ بينها — نسبة 2.5:1 هي ما تقرأه العين «قائمة» */

  position: relative; isolation: isolate; flex: 0 0 auto;
  inline-size: 44px; block-size: 44px; padding: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-s);
  transition: border-color .22s ease, box-shadow .22s ease, color .22s ease,
              transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
/* طبقة التدرّج: شفافة عند الراحة · خفيفة عند المرور · كاملة عند الفتح */
.burger::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--grad); opacity: 0; transition: opacity .26s ease;
}
.burger:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 10px 22px -10px rgba(124,58,237,.55); }
.burger:hover::before { opacity: .1; }
.burger:active { transform: translateY(0) scale(.94); }
.burger:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
/* الحالة المفتوحة تُقاد من aria-expanded — فلا تنفصل الحالة البصرية عن حالة الوصولية */
.burger[aria-expanded="true"] { color: #fff; border-color: transparent; box-shadow: 0 12px 26px -8px rgba(124,58,237,.6); }
.burger[aria-expanded="true"]::before { opacity: 1; }

.burger-ico {
  position: relative; display: block; background: none;
  inline-size: var(--bar-w); block-size: calc(var(--bar-h) * 3 + var(--bar-gap) * 2);
}
.burger-ico i {
  position: absolute; inset-inline: 0; block-size: var(--bar-h);
  border-radius: 99px; background: currentColor;
  transition: transform .34s cubic-bezier(.65,.05,.36,1), opacity .18s linear .16s;
}
.burger-ico i:nth-child(1) { top: 0; }
.burger-ico i:nth-child(2) { top: calc(50% - var(--bar-h) / 2); }
.burger-ico i:nth-child(3) { bottom: 0; }
/* → علامة × */
.burger[aria-expanded="true"] .burger-ico i:nth-child(1) { transform: translateY(calc(var(--bar-h) + var(--bar-gap))) rotate(45deg); }
.burger[aria-expanded="true"] .burger-ico i:nth-child(3) { transform: translateY(calc(-1 * (var(--bar-h) + var(--bar-gap)))) rotate(-45deg); }
.burger[aria-expanded="true"] .burger-ico i:nth-child(2) { opacity: 0; transform: scaleX(.3); transition: transform .2s ease, opacity .14s linear; }

@media (prefers-reduced-motion: reduce) {
  .burger, .burger::before, .burger-ico i { transition-duration: .01ms !important; }
  .burger:hover, .burger:active { transform: none; }
}

/* ---------------- اللوح الجانبي (Drawer) ---------------- */
.scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(11, 16, 32, .55);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .32s;
}
.scrim.on { opacity: 1; pointer-events: auto; }

html[dir="rtl"] .drawer { box-shadow: -30px 0 70px -30px rgba(11, 16, 32, .5); }
.drawer {
  position: fixed; z-index: 101; top: 0; inset-inline-end: 0; height: 100%;
  width: min(430px, 92vw); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.on, html[dir="rtl"] .drawer.on { transform: translateX(0); }

.drawer-top {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  background: var(--grad); color: #fff; flex-shrink: 0;
}
.drawer-top img { width: 42px; height: 42px; border-radius: 13px; }
.drawer-top b { font-family: 'Cairo', sans-serif; font-size: 17px; display: block; }
.drawer-top small { opacity: .85; font-size: 12.5px; }
.x-btn {
  margin-inline-start: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 21px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.x-btn:hover { background: rgba(255,255,255,.32); }

.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.d-menu { padding: 14px; }
.d-item {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 16px; margin-bottom: 7px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); text-align: start;
  transition: border-color .2s, transform .2s, background .2s;
}
.d-item:hover { border-color: var(--violet); background: #faf9ff; transform: translateX(-4px); }
.d-item .ic { width: 40px; height: 40px; border-radius: 12px; color: var(--violet); background: linear-gradient(145deg, rgba(124,58,237,.1), rgba(37,99,235,.1)); display: grid; place-items: center; flex-shrink: 0; }
.d-item .ar { margin-inline-start: auto; color: var(--muted); font-size: 19px; }
.d-note { padding: 6px 18px 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------------- الواجهة (Hero) ---------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 60px) 0 90px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset-inline-end: -18%; top: -28%;
  width: 900px; height: 900px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(124,58,237,.20) 0%, rgba(37,99,235,.13) 42%, transparent 68%);
}
.hero::after {
  content: ''; position: absolute; inset-inline-start: -22%; bottom: -34%;
  width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(244,63,94,.13) 0%, transparent 66%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.06fr .94fr; gap: 44px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border-radius: 999px;
  background: rgba(124, 58, 237, .09); border: 1px solid rgba(124, 58, 237, .2);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--violet);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }

.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; letter-spacing: -.5px; margin: 20px 0 0; }
.hero h1 .u { position: relative; display: inline-block; }
.hero h1 .u::after {
  content: ''; position: absolute; inset-inline: -.04em; bottom: -.07em; height: .1em; border-radius: 6px;
  background: var(--grad-r); opacity: .92;
}
.hero .lead { font-size: clamp(16px, .6vw + 14px, 19px); color: #4a5578; margin: 20px 0 30px; max-width: 33em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero-ticks span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: #4a5578; }
.hero-ticks .ck { width: 20px; height: 20px; border-radius: 50%; background: rgba(22,101,52,.12); color: #166534; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }

/* ---------- مجسّم الهاتف ثلاثي الأبعاد ---------- */
.stage { position: relative; display: grid; place-items: center; perspective: 1500px; }
.phone {
  position: relative; width: 292px; aspect-ratio: 402 / 874; border-radius: 52px; padding: 11px;
  background: linear-gradient(150deg, #2a3352 0%, #0b1020 46%, #1b2340 100%);
  transform: rotateY(-15deg) rotateX(5deg) rotateZ(1.2deg);
  transform-style: preserve-3d;
  box-shadow:
    0 60px 110px -35px rgba(11, 16, 32, .62),
    0 24px 44px -22px rgba(124, 58, 237, .5),
    inset 0 0 0 1.6px rgba(255,255,255,.13);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.stage:hover .phone { transform: rotateY(-7deg) rotateX(2deg) rotateZ(0); }
.phone::before { /* توهّج خلف الجهاز */
  content: ''; position: absolute; inset: -14% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.4) 0%, rgba(37,99,235,.24) 45%, transparent 70%);
  filter: blur(34px);
}
.phone .screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #f4f6fd; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 27px; border-radius: 999px; background: #05070f; z-index: 3;
}

/* بطاقات زجاجية عائمة حول الجهاز */
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 17px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 20px 42px -18px rgba(16,24,60,.4);
  animation: bob 5.5s ease-in-out infinite;
}
.chip .e { font-size: 21px; line-height: 1; }
.chip b { display: block; font-family: 'Cairo', sans-serif; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.chip small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.chip-1 { top: 12%; inset-inline-start: -6%; }
.chip-2 { bottom: 20%; inset-inline-end: -7%; animation-delay: -2.7s; }
.chip-3 { bottom: 5%; inset-inline-start: 2%; animation-delay: -1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-13px) } }

/* ---------------- شريط الأرقام ---------------- */
.stats { background: var(--ink); color: #fff; padding: 62px 0; position: relative; overflow: hidden; }
.stats::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(700px 300px at 78% -30%, rgba(124,58,237,.5), transparent 62%),
              radial-gradient(560px 260px at 12% 130%, rgba(37,99,235,.42), transparent 62%);
}
.stats .wrap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats .n { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); color: #fff; line-height: 1.2; }
.stats .n em { font-style: normal; background: linear-gradient(120deg, #a855f7, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .l { font-size: 13.5px; color: #a7b0cc; margin-top: 4px; }

/* ---------------- الأقسام العامة ---------------- */
section { padding: 86px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.sec-tag {
  display: inline-block; padding: 6px 15px; border-radius: 999px; margin-bottom: 13px;
  background: rgba(29, 78, 216, .1); color: #1d4ed8;   /* 5.47:1 */
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 12.5px;
}
.sec-head h2 { font-size: clamp(25px, 3.6vw, 39px); }
.sec-head p { color: var(--muted); font-size: clamp(15px, .35vw + 13.7px, 17px); margin-top: 12px; }

/* ---------------- الأقسام (الكتالوج) ---------------- */
.cats { background: var(--soft); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-s); transition: transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s;
}
.cat:hover { transform: translateY(-8px) rotateX(4deg); box-shadow: var(--shadow); }
.cat .im { aspect-ratio: 1 / .82; overflow: hidden; background: #eef1fa; }
.cat .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover .im img { transform: scale(1.07); }
.cat .nm { min-height: 4.2em; display: grid; place-items: center; padding: 11px 12px 13px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); text-align: center; }
.cats .more { text-align: center; margin-top: 34px; color: var(--muted); font-size: 15px; }

/* ---------------- كيف تتسوّق ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 22px 26px; box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.step .no {
  position: absolute; top: -17px; inset-inline-start: 22px; width: 46px; height: 46px; border-radius: 15px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 18px;
  box-shadow: 0 12px 24px -10px rgba(124,58,237,.7);
}
.step h3 { font-size: 17px; margin: 18px 0 7px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------------- من داخل التطبيق ---------------- */
.inside { background: var(--soft); overflow: hidden; }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; margin-bottom: 76px; }
.shot-row:last-child { margin-bottom: 0; }
.shot-row.flip .shot-txt { order: 2; }
.shot-txt .sec-tag { margin-bottom: 10px; }
.shot-txt h3 { font-size: clamp(21px, 2.7vw, 29px); margin-bottom: 12px; }
.shot-txt p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.shot-txt ul { list-style: none; display: grid; gap: 10px; }
.shot-txt li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 600; color: #46506f; }
.shot-txt li .ck { width: 21px; height: 21px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; margin-top: 3px; }

.shot-fig { display: grid; place-items: center; perspective: 1400px; }
.shot-fig .phone { width: 258px; transform: rotateY(13deg) rotateX(4deg); }
.shot-row.flip .shot-fig .phone { transform: rotateY(-13deg) rotateX(4deg); }
.shot-fig .phone:hover { transform: rotateY(0) rotateX(0); }

/* ---------------- سيلين ---------------- */
.selin { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.selin::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 82% 8%, rgba(124,58,237,.44), transparent 60%),
              radial-gradient(660px 380px at 8% 96%, rgba(37,99,235,.36), transparent 60%);
}
.selin .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.selin h2 { color: #fff; font-size: clamp(26px, 3.6vw, 39px); }
.selin .sec-tag { background: rgba(168, 85, 247, .18); color: #d8b4fe; }
.selin p { color: #b6bfd9; font-size: 16px; margin: 14px 0 26px; }
.selin ul { list-style: none; display: grid; gap: 13px; }
.selin li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: #dbe1f0; }
.selin li .ck { width: 23px; height: 23px; border-radius: 50%; background: rgba(168,85,247,.22); color: #d8b4fe; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; margin-top: 3px; }

/* فقاعات محادثة */
.chat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-lg);
  padding: 24px; backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
}
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.11); }
.chat-top .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 3px rgba(168,85,247,.25); }
.chat-top b { font-family: 'Cairo', sans-serif; font-size: 16px; color: #fff; display: block; }
.chat-top small { color: #8ef5b4; font-size: 12px; }
.bub { width: fit-content; max-width: 86%; padding: 13px 17px; border-radius: 19px; font-size: 14.5px; line-height: 1.75; margin-bottom: 11px; }
.bub.me { max-width: 72%; margin-inline-start: auto; background: var(--grad); color: #fff; border-end-end-radius: 6px; }
.bub.ai { background: rgba(255,255,255,.1); color: #e6ebf7; border: 1px solid rgba(255,255,255,.1); border-end-start-radius: 6px; }
.bub.ai b { color: #fff; }

/* ---------------- المزايا ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px;
  box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feat:hover { transform: translateY(-7px); border-color: rgba(124,58,237,.3); box-shadow: var(--shadow); }
.feat .ic {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--violet);
  background: linear-gradient(145deg, rgba(124,58,237,.1), rgba(37,99,235,.1));
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.12), inset 0 1px 0 rgba(255,255,255,.7);
}
.feat .ic svg, .cc .ic svg { width: 25px; height: 25px; }
.d-item .ic svg { width: 21px; height: 21px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* ---------------- التحميل ---------------- */
.dl { background: var(--soft); }
.dl-box {
  background: var(--grad); border-radius: var(--r-lg); padding: 54px 44px; color: #fff;
  text-align: center; position: relative; overflow: hidden; box-shadow: 0 40px 80px -34px rgba(124,58,237,.75);
}
.dl-box::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(620px 300px at 84% -20%, rgba(255,255,255,.3), transparent 58%);
}
.dl-box > * { position: relative; }
.dl-box h2 { color: #fff; font-size: clamp(25px, 3.4vw, 37px); }
.dl-box p { color: #fff; font-size: 16px; margin: 13px auto 30px; max-width: 42em; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border-radius: 17px;
  background: #0b1020; color: #fff; border: 1px solid rgba(255,255,255,.16);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.55);
}
.store:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -14px rgba(0,0,0,.6); }
.store svg { width: 27px; height: 27px; flex-shrink: 0; }
.store small { display: block; font-size: 11px; opacity: .78; line-height: 1.5; }
.store b { display: block; font-family: 'Cairo', sans-serif; font-size: 16.5px; line-height: 1.3; }

/* ---------------- تواصل ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cc:hover { transform: translateY(-7px); border-color: rgba(124,58,237,.3); box-shadow: var(--shadow); }
.cc .ic { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 15px; display: grid; place-items: center; color: var(--violet); background: linear-gradient(145deg, rgba(124,58,237,.1), rgba(37,99,235,.1)); box-shadow: inset 0 0 0 1px rgba(124,58,237,.12); }
.cc h3 { font-size: 16px; margin-bottom: 6px; }
.cc a, .cc span { padding-block: 8px; font-size: 15px; color: var(--violet); font-weight: 700; direction: ltr; display: inline-block; overflow-wrap: anywhere; word-break: normal; }
.cc small { display: block; color: var(--muted); font-size: 13px; margin-top: 7px; }

/* ---------------- التذييل ---------------- */
footer { background: var(--ink); color: #9aa4c2; padding-block: clamp(56px, 6vw, 86px) 30px; }
.f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-brand img { width: 46px; height: 46px; border-radius: 14px; }
.f-brand b { font-family: 'Cairo', sans-serif; font-size: 19px; color: #fff; }
.f-top p { font-size: 14.5px; max-width: 30em; }
.f-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.f-col a, .f-col button {
  display: block; background: none; border: 0; padding-block: 8px; margin-bottom: 2px; cursor: pointer;
  color: #9aa4c2; font-size: 14.5px; font-family: inherit; text-align: start; transition: color .2s;
}
.f-col a:hover, .f-col button:hover { color: #fff; }
.f-bot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13.5px; }
/* ائتمان شركة برو — برتقالي مميّز عن هوية تيك واط (بنفسجي/أزرق) حتى يُقرأ
   كتوقيع المطوّر لا كجزء من علامة المتجر. 8.9:1 على خلفية التذييل الداكنة. */
.by {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.32); color: #fdba74;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13.5px;
  transition: background .22s, transform .22s, color .22s, border-color .22s;
}
.by:hover {
  background: linear-gradient(135deg, #f97316, #ea580c); color: #fff;
  transform: translateY(-2px); border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(249,115,22,.65);
}
.by .b { font-size: 15px; }

/* ---------------- ظهور تدريجي عند التمرير ----------------
   القاعدة: المحتوى ظاهر افتراضيًا. لا نخفيه إلا بعد ما يؤكّد الجافاسكربت
   أنه يعمل (يضيف .js على <html> قبل أول رسم). هكذا لو تعطّل السكربت أو
   حجبه المتصفّح تبقى الصفحة كاملة ظاهرة بدل أن تصير بيضاء. */
.js .rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  /* شبكة أمان بالـCSS وحده: لو حُمّل السكربت ثم انهار (نسخة قديمة من الكاش
     مثلًا) يظهر المحتوى بعد ثانيتين ونصف بلا أي تدخّل من الجافاسكربت. */
  animation: rv-failsafe 0s linear 2.5s forwards;
}
@keyframes rv-failsafe { to { opacity: 1; transform: none; } }
.js .rv.in { opacity: 1; transform: none; animation: none; }

/* ============================================================
   الاستجابة — سلّم قياسات واضح:
   ≥1200 حاسوب واسع · 1024–1199 حاسوب ضيّق/آيباد أفقي
   768–1023 آيباد عمودي · 561–767 هاتف كبير · ≤560 هاتف
   ============================================================ */

/* --- شاشات عريضة جدًا: نوسّع الحاوية والجهاز حتى لا يضيعان وسط الهوامش --- */
@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
  .phone { width: 320px; }
}

/* --- حاسوب ضيّق وآيباد أفقي: نضيّق الفراغات ونصغّر الجهاز --- */
@media (max-width: 1199px) {
  :root { --wrap: 1000px; }
  .nav-links a { padding: 8px 11px; font-size: 13.5px; }
  .phone { width: 262px; }
  .shot-fig .phone { width: 238px; }
  .hero .wrap { gap: 32px; }
  .shot-row { gap: 38px; }
}

/* --- آيباد عمودي: عمود واحد، والجهاز فوق النص --- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hero .wrap, .selin .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .hero-txt, .selin .wrap > .rv:first-child { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-btns, .hero-ticks { justify-content: center; }
  .stage { order: -1; }
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 70px; }
  .phone { width: 290px; }
  /* عند العمود الواحد يصير .stage بعرض الحاوية كاملة، فنِسَب القصاصات السالبة
     تخرج عن الشاشة وتنقطع. نحصر المسرح بعرض معقول ونقرّب القصاصات. */
  .stage { width: min(100%, 420px); margin-inline: auto; }
  .chip-1 { top: 10%; inset-inline-start: -5%; }
  .chip-2 { bottom: 18%; inset-inline-end: -5%; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .shot-row, .shot-row.flip { grid-template-columns: 1fr; gap: 30px; }
  .shot-row .shot-txt, .shot-row.flip .shot-txt { order: 1; text-align: center; }
  .shot-row .shot-fig { order: 0; }
  .shot-txt p { margin-inline: auto; max-width: 40em; }
  .shot-txt ul { max-width: 24em; margin-inline: auto; text-align: start; }
  .shot-fig .phone, .shot-row.flip .shot-fig .phone { width: 268px; transform: none; }

  .selin ul { max-width: 26em; margin-inline: auto; text-align: start; }
  .steps, .feat-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-top > :first-child { grid-column: 1 / -1; }
}

/* --- هاتف كبير --- */
@media (max-width: 767px) {
  :root { --nav-h: 62px; }
  section { padding: 66px 0; }
  .sec-head { margin-bottom: 36px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .nav-act .btn { padding: 11px 18px; font-size: 13.5px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shot-row { margin-bottom: 54px; }
}

/* --- هاتف --- */
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .hero { padding-bottom: 56px; }
  .phone, .shot-fig .phone, .shot-row.flip .shot-fig .phone { width: min(258px, 74vw); }
  .feat-grid, .contact-grid, .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .stats { padding: 48px 0; }
  .cat .nm { font-size: 13px; padding: 11px 9px 13px; }
  .chip { padding: 9px 12px; border-radius: 14px; }
  .chip .e { font-size: 18px; }
  .chip b { font-size: 12.5px; } .chip small { font-size: 11.5px; }
  .chip-1 { inset-inline-start: -3%; top: 9%; }
  .chip-2 { inset-inline-end: -3%; bottom: 17%; }
  .chip-3 { display: none; }
  .dl-box { padding: 38px 20px; border-radius: 26px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
  .hero-ticks { gap: 8px 16px; }
  .hero-ticks span { font-size: 13px; }
  .chat { padding: 18px; border-radius: 24px; }
  .bub { max-width: 92%; font-size: 13.5px; }
  .f-top { grid-template-columns: 1fr; gap: 26px; }
  .f-bot { justify-content: center; text-align: center; }
}

/* --- هاتف صغير جدًا --- */
@media (max-width: 380px) {
  .nav-act .btn { padding: 10px 14px; font-size: 12.5px; }
  .brand img { width: 34px; height: 34px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
/* الاسم يُخفى فقط في أضيق الشاشات — بعد إصلاح شبكة الشريط صار له متّسع */
@media (max-width: 339px) { .brand { font-size: 0; gap: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .rv, .js .rv.in { opacity: 1; transform: none; }
}
