/* ════════════════════════════════════════════════
   BAT WEBSITE — bat.css
   Mobile-First · iOS-Optimized · i18n-Ready
   ════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* ── Ground: deep indigo, the BAT equivalent of a tinted dark ── */
  /* أسود صافٍ — المجرّة هي الخلفية المرئية */
  --ink:         #000000;
  --ink2:        transparent;
  --ink3:        transparent;
  --panel:       rgba(255,255,255,.035);
  --white:       #ffffff;

  /* ── Signal: BAT cyan replaces the reference green ── */
  /* الحافة المضيئة على الجانب الأيسر من المنتج */
  --accent:      #28e6f0;
  --accent-soft: #9beef4;
  /* الحافة المضيئة على الجانب الأيمن */
  --accent-2:    #c882fa;

  /* ── Action: pastel violet pill on dark ── */
  --pill:        #c882fa;
  --pill-ink:    #0d0f1c;

  --blue:        #2563eb;
  --blue2:       #3b82f6;
  --violet:      #7c3aed;
  --violet2:     #8b5cf6;
  --cyan:        #06b6d4;

  /* ── Body copy carries a violet tint, never neutral gray ── */
  --body-ink:    #b6b3e2;
  --muted:       #8b88ba;
  --muted2:      rgba(255,255,255,0.2);
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.12);
  --radius-lg:   24px;
  --radius-md:   14px;

  --font-ar:     'Tajawal', sans-serif;
  --font-en:     'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono:   'Space Grotesk', monospace;

  /* iOS Safe Area */
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);

  /* Fluid spacing */
  --sp-xs:  clamp(0.5rem,  2vw, 0.75rem);
  --sp-sm:  clamp(0.75rem, 3vw, 1rem);
  --sp-md:  clamp(1rem,    4vw, 1.5rem);
  --sp-lg:  clamp(1.5rem,  5vw, 2.5rem);
  --sp-xl:  clamp(2rem,    6vw, 4rem);
  --sp-2xl: clamp(3rem,    8vw, 6rem);
  --sec-px: clamp(1rem,    5vw, 3rem);
  --sec-py: clamp(3rem,    8vw, 6rem);
}

/* Language variants */
html[lang="ar"] { --font-body: var(--font-ar); }
html[lang="en"] { --font-body: var(--font-en); }

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body, var(--font-ar));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  transition: font-family 0.2s;
}

/* Direction-aware helpers */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--blue));
  border-radius: 3px;
}

/* ══════════════════════════════════
   LANGUAGE TOGGLE BUTTON
   ══════════════════════════════════ */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.lang-btn:active { transform: scale(0.96); }
.lang-btn .lang-globe { display: inline-flex; align-items: center; }
.lang-btn .lang-globe svg { display: block; }
.lang-btn .lang-label {
  font-size: 12px;
  font-family: var(--font-mono), var(--font-ar);
  min-width: 30px; text-align: center;
}

/* ── Lang transition ── */
[data-lang-ar], [data-lang-en] {
  transition: opacity 0.18s ease;
}

/* ══════════════════════════════════
   NAV
   ══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding-top: calc(var(--safe-top) + 0px);
  height: calc(70px + var(--safe-top));
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding-left:  calc(var(--safe-left)  + var(--sec-px));
  padding-right: calc(var(--safe-right) + var(--sec-px));
  background: rgba(7,12,28,0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; padding-bottom: 12px;
  gap: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  width: 40px; height: 40px; object-fit: contain;

}
.nav-brand {
  font-family: var(--font-en);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 500; letter-spacing: 4px;
  color: #fff;
}
.nav-right {
  display: flex; align-items: center; gap: 8px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; font-weight: 500;
  min-height: 44px;
  display: flex; align-items: center;
  padding: 0 14px; border-radius: 8px;
  transition: all 0.2s; letter-spacing: 0.3px;
  -webkit-tap-highlight-color: transparent;
}
.nav-links a:hover, .nav-links a:active {
  color: #fff; background: rgba(124,58,237,0.15);
}
.nav-cta {
  background: var(--pill) !important;
  color: var(--pill-ink) !important;
  border-radius: 999px; font-weight: 600 !important;
  padding: 0 24px !important;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: #d6a0ff !important; color: var(--pill-ink) !important; }
.nav-cta:active { transform: scale(.97); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 998;
  background: rgba(5,5,15,0.97);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding-top:    calc(var(--safe-top)    + 80px);
  padding-bottom: calc(var(--safe-bottom) + 2rem);
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: clamp(18px, 5vw, 24px); font-weight: 700;
  min-height: 56px;
  display: flex; align-items: center;
  padding: 0 2rem; border-radius: 12px;
  width: 80%; max-width: 320px; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.mobile-menu a:active { background: rgba(124,58,237,0.2); }
.mobile-menu .m-cta {
  background: var(--pill); border-radius: 999px;
  color: var(--pill-ink) !important; margin-top: 12px;
}
.mobile-lang-wrap {
  margin-top: 16px;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top:    calc(var(--safe-top) + 80px);
  padding-bottom: clamp(2rem, 6vw, 5rem);
  padding-left:   calc(var(--safe-left)  + var(--sec-px));
  padding-right:  calc(var(--safe-right) + var(--sec-px));
}
.hero-canvas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-canvas::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: min(800px,120vw); height: min(800px,120vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(56,225,255,0.09) 0%, rgba(124,58,237,0.06) 45%, transparent 70%);
}
.hero-canvas::after {
  content: '';
  position: absolute; bottom: -20%; left: 10%;
  width: min(500px,80vw); height: min(500px,80vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 65%);
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.7; }
}
.hero-grid { display: none; }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.05fr;
  align-items: center; gap: clamp(1.5rem,4vw,3rem);
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.hero-content { order: 1; }
.hero-visual   { order: 2; display: flex; justify-content: center; }

/* ══════════════════════════════════
   PRODUCT SHOT
   خلفية الرندر مطابقة لأرضية الصفحة،
   فيكفي قناع دائري ليذوب الإطار
   ══════════════════════════════════ */
.product-shot { margin: 0; width: 100%; max-width: 640px; }

@media (max-width: 767px) {
    }
@media (prefers-reduced-motion: reduce) {
  }
.product-shot img {
  width: 100%; height: auto; display: block;
  /* أرضية الرندر سوداء تمامًا (طُرحت من البكسلات)،
     وقناع دائري واسع يذيبها في أرضية الصفحة.
     mix-blend-mode لا ينفع هنا لأن .hero-inner
     ينشئ stacking context فيعزل الخلط عن خلفية القسم */
  -webkit-mask-image: radial-gradient(78% 72% at 50% 50%, #000 12%, rgba(0,0,0,.55) 46%, transparent 74%);
          mask-image: radial-gradient(78% 72% at 50% 50%, #000 12%, rgba(0,0,0,.55) 46%, transparent 74%);
}

/* ══════════════════════════════════
   GAUGE — الشارة البيضاوية استُبدلت بسلّم شحن
   24 علامة، واحدة مضيئة = 1%
   ══════════════════════════════════ */
.gauge {
  display: inline-flex; align-items: flex-end; gap: 14px;
  margin-bottom: var(--sp-md);
}
.gauge-scale {
  position: relative; display: block;
  width: 122px; height: 15px; flex-shrink: 0;
  background-image: repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.17) 0 1px,
      transparent 1px 6px);
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 100% 9px;
}
.gauge-scale::after {
  content: ''; position: absolute; bottom: 0;
  inset-inline-start: 0;
  width: 1px; height: 15px;
  background: var(--accent);
}
.gauge-label {
  font-size: clamp(10px,2.6vw,11.5px); font-weight: 700;
  color: rgba(255,255,255,0.58);
  line-height: 1.1;
}
/* Display headline: one white line, one signal-colour line.
   No gradient — the colour carries meaning, it is not decoration. */
.hero h1 {
  font-size: clamp(34px,7.4vw,86px);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: var(--sp-md);
}
.hero h1 .l1 { display: block; color: #fff; }
.hero h1 .l2 { display: block; }
.hero-slogan {
  font-size: clamp(18px,4.2vw,30px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent-soft);
  max-width: 18ch;
  margin-bottom: var(--sp-md);
}
.hero-desc {
  font-size: clamp(14px,3.4vw,16.5px); color: var(--body-ink);
  line-height: 1.7; max-width: 500px;
  margin-bottom: var(--sp-lg);
}

/* ══════════════════════════════════
   ENGLISH (LTR) TYPOGRAPHY OVERRIDES
   Latin text needs tighter leading and
   wider measure than the Arabic setting
   ══════════════════════════════════ */
html[lang="en"] .hero h1 {
  font-size: clamp(30px,5.2vw,58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
html[lang="en"] .hero-slogan {
  line-height: 1.45; letter-spacing: -0.005em; max-width: 34ch;
}
html[lang="en"] .hero-desc {
  line-height: 1.6; max-width: 46ch;
}
html[lang="en"] .stitle       { line-height: 1.12; letter-spacing: -0.02em; }
html[lang="en"] .ssub         { line-height: 1.6;  max-width: 60ch; }
html[lang="en"] .about-body   { line-height: 1.65; max-width: 68ch; }
html[lang="en"] .product-desc,
html[lang="en"] .svc-d,
html[lang="en"] .tag          { letter-spacing: 1.4px; }
html[lang="en"] .slabel,
html[lang="en"] .product-badge,
html[lang="en"] .compat-title,
html[lang="en"] .why-title    { letter-spacing: 1.4px; }
html[lang="en"] .feat-t,
html[lang="en"] .spec,
html[lang="en"] .why-item     { line-height: 1.45; }
.price-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 12px; padding: 12px 20px;
  margin-bottom: var(--sp-md);
}
.price-label { font-size: clamp(12px,3vw,13px); color: rgba(255,255,255,0.5); }
.price-val {
  font-family: var(--font-mono);
  font-size: clamp(20px,5vw,26px); font-weight: 700;
  color: var(--accent); text-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.price-sub { font-size: clamp(11px,2.5vw,12px); color: rgba(255,255,255,0.35); }
.hero-btns {
  display: flex; gap: var(--sp-sm); flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}
.hero-stats {
  display: flex; gap: clamp(1rem,4vw,2.5rem);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.hstat-n {
  font-family: var(--font-mono);
  font-size: clamp(18px,4vw,22px); font-weight: 700;
  background: linear-gradient(135deg,#60a5fa,#a78bfa);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hstat-l { font-size: clamp(11px,2.5vw,12px); color: rgba(255,255,255,0.35); margin-top: 3px; }

/* Ring logo */
.logo-ring-wrap {
  position: relative;
  width:  clamp(200px,35vw,340px);
  height: clamp(200px,35vw,340px);
  display: flex; align-items: center; justify-content: center;
}
.ring { position: absolute; border-radius: 50%; border: 1px solid; animation: spin linear infinite; }
.ring1 { width:95%; height:95%; border-color: rgba(139,92,246,0.12); animation-duration: 20s; }
.ring2 { width:76%; height:76%; border-color: rgba(37,99,235,0.18);  animation-duration: 14s; animation-direction: reverse; }
.ring3 { width:58%; height:58%; border-color: rgba(0,212,255,0.1);   animation-duration: 9s; }
@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
.ring1::before {
  content:''; position:absolute; top:-3px; right:40px;
  width:6px; height:6px; border-radius:50%;
  background:var(--violet2); box-shadow:0 0 8px var(--violet2);
}
.ring2::before {
  content:''; position:absolute; bottom:-3px; left:30px;
  width:5px; height:5px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 8px var(--accent);
}
.logo-center {
  position:relative; z-index:2;
  width:47%; height:47%; border-radius:50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15), rgba(124,58,237,0.1), rgba(5,5,15,0.8));
  border:1px solid rgba(139,92,246,0.3);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 0 60px rgba(37,99,235,0.15), inset 0 0 40px rgba(124,58,237,0.05);
}
.logo-center img {
  width:76%; height:76%; object-fit:contain;
  filter: drop-shadow(0 0 16px rgba(37,99,235,0.5));
}

/* ══════════════════════════════════
   GLOBAL BUTTONS
   ══════════════════════════════════ */
.btn-primary, .btn-secondary, .submit-btn {
  min-height: 44px; cursor: pointer;
  font-family: var(--font-body, var(--font-ar));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-appearance: none; appearance: none;
}
/* Solid pastel pill, dark ink — no gradient, no glow */
.btn-primary {
  background: var(--pill);
  color: var(--pill-ink);
  padding: 15px clamp(24px,5vw,38px); border-radius: 999px;
  font-size: clamp(14px,3.5vw,16px); font-weight: 600; border: none;
  transition: background .18s, transform .18s;
}
.btn-primary:hover  { background:#d6a0ff; }
.btn-primary:active { transform:scale(0.97); }
/* Secondary reads as a text link with a rule under it */
.btn-secondary {
  background: transparent; border: none;
  color: var(--body-ink);
  padding: 15px 4px; border-radius: 0;
  font-size: clamp(14px,3.5vw,16px); font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  transition: color .18s, border-color .18s;
}
.btn-secondary:hover  { color:#fff; border-color: var(--accent); }
.btn-secondary:active { transform:scale(0.98); }

/* ══════════════════════════════════
   SECTION BASE
   ══════════════════════════════════ */
.section {
  padding: var(--sec-py) var(--sec-px);
  padding-left:  calc(var(--safe-left)  + var(--sec-px));
  padding-right: calc(var(--safe-right) + var(--sec-px));
}
.section-inner { max-width:1100px; margin:0 auto; }

/* ── SECTION RAIL: فهرس + شعرة تمتد للحافة ── */
.srail {
  display:flex; align-items:center; gap:14px;
  margin-bottom:1.1rem;
}
.srail--center { justify-content:center; }
.srail-idx {
  font-family:var(--font-mono); font-size:13px; font-weight:700;
  color:var(--accent); letter-spacing:1px; flex-shrink:0; line-height:1;
}
.srail-line { display:none; }
.slabel {
  font-size:clamp(11px,2.6vw,12.5px); font-weight:600;
  color:rgba(255,255,255,0.72); flex-shrink:0; line-height:1;
}

.stitle {
  font-size:clamp(28px,5.6vw,56px); font-weight:900;
  line-height:1.06; letter-spacing:-0.026em; margin-bottom:1rem;
  color:#fff;
}
.stitle span:first-child { color: #fff; }
.ssub { font-size:clamp(14px,3.4vw,16.5px); color:var(--body-ink); line-height:1.7; max-width:560px; }
.divider { height:1px; background:rgba(255,255,255,0.05); }

/* ══════════════════════════════════
   ABOUT
   ══════════════════════════════════ */
.about-sec { background: transparent; }
.about-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(2rem,6vw,5rem); align-items:center; margin-top:var(--sp-xl);
}
.about-body { font-size:clamp(14px,3.5vw,15px); color:var(--muted); line-height:1.9; margin-top:1rem; }
.feats { display:flex; flex-direction:column; gap:12px; margin-top:var(--sp-md); }
.feat {
  display:flex; align-items:center; gap:14px;
  padding:13px 18px; min-height:44px;
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(139,92,246,0.12);
  border-radius:10px; transition:border-color 0.2s;
}
.feat:hover { border-color:rgba(139,92,246,0.3); }
.feat-ico {
  width:36px; height:36px; border-radius:9px; flex-shrink:0;
  background:linear-gradient(135deg,rgba(37,99,235,0.2),rgba(124,58,237,0.2));
  display:flex; align-items:center; justify-content:center;
}
.feat-ico svg { width:16px; height:16px; }
.feat-t { font-size:clamp(13px,3vw,14px); font-weight:600; color:rgba(255,255,255,0.8); }
.stats-quad {
  display:grid; grid-template-columns:1fr 1fr;
  gap:1px; border-radius:18px; overflow:hidden;
  background:rgba(139,92,246,0.15); border:1px solid rgba(139,92,246,0.15);
}
.sq {
  background:var(--ink2);
  padding:clamp(1.25rem,4vw,2.25rem) clamp(1rem,3vw,1.75rem);
  text-align:center; position:relative; overflow:hidden;
}
.sq::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 50% 50%,rgba(37,99,235,0.05),transparent 70%);
}
.sq-n {
  font-family:var(--font-mono);
  font-size:clamp(24px,5vw,36px); font-weight:700;
  background:linear-gradient(135deg,#60a5fa,#a78bfa);
  background-clip:text; -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  position:relative;
}
.sq-l { font-size:clamp(11px,2.5vw,13px); color:rgba(255,255,255,0.35); margin-top:6px; position:relative; }

/* ══════════════════════════════════
   PRODUCT
   ══════════════════════════════════ */
.product-sec { background: transparent; }
.product-card {
  margin-top:var(--sp-xl);
  display:grid; grid-template-columns:1fr 1.2fr;
  border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); background:var(--panel);
}
.product-left {
  padding:clamp(1.5rem,5vw,3.5rem);
  background:linear-gradient(145deg,rgba(37,99,235,0.06),rgba(124,58,237,0.06));
  border-left:1px solid var(--border);
  display:flex; flex-direction:column; justify-content:center;
}
html[dir="ltr"] .product-left { border-left:none; border-right:1px solid var(--border); }
/* الكبسولة استُبدلت بتسمية تجلس على شعرة */
.product-badge {
  display:flex; align-items:center; gap:10px;
  width:fit-content; align-self:flex-start;
  font-size:clamp(10px,2.5vw,11px); font-weight:700;
  color:var(--accent);
  background:none; border:0; padding:0;
  margin-bottom:var(--sp-sm);
}
.product-badge::before {
  content:''; width:22px; height:1px; background:var(--accent);
  flex-shrink:0;
}
.product-name { font-size:clamp(20px,4vw,28px); font-weight:900; margin-bottom:0.75rem; }
.product-desc { font-size:clamp(13px,3vw,14px); color:var(--muted); line-height:1.8; margin-bottom:var(--sp-lg); }
.product-price { font-family:var(--font-mono); font-size:clamp(32px,7vw,48px); font-weight:700;
  background:linear-gradient(135deg,#22d3ee,#60a5fa);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1; }
.product-price-label { font-size:clamp(12px,2.5vw,13px); color:rgba(255,255,255,0.4); margin-top:4px; }
.product-price-wrap { margin-bottom:var(--sp-md); }
.product-specs { display:flex; flex-direction:column; gap:10px; }
.spec { display:flex; align-items:center; gap:10px; font-size:clamp(12px,3vw,13px); color:rgba(255,255,255,0.65); }
/* النقطة الدائرية → شرطة أفقية بسُمك بكسل */
.spec::before {
  content:''; width:12px; height:1px; border-radius:0;
  background:var(--accent); flex-shrink:0; opacity:.85;
}
.product-right { padding:clamp(1.5rem,5vw,3.5rem); }
.compat-title,.why-title {
  font-size:clamp(10px,2.5vw,12px); font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:var(--sp-sm);
}
.compat-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:var(--sp-md); }
.compat-item {
  display:flex; align-items:center; gap:11px;
  padding:11px 2px; border-radius:0; min-height:42px;
  background:none; border:0;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:clamp(12px,3vw,13px); font-weight:500; color:rgba(255,255,255,0.7);
  transition:all 0.2s; -webkit-tap-highlight-color:transparent;
}
.compat-item:hover { background:none; border-bottom-color:rgba(56,225,255,.35); }
.compat-ico {
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; flex-shrink:0; color:#60a5fa;
}
.compat-ico svg { display:block; }
.why-list { display:flex; flex-direction:column; gap:8px; }
.why-item { display:flex; align-items:center; gap:10px; font-size:clamp(12px,3vw,13px); color:rgba(255,255,255,0.65); min-height:28px; }
/* الدائرة المتدرّجة بعلامة ✓ → علامة رأسية واحدة،
   نفس مفردة سلّم الشحن في الهيرو */
.why-check {
  width:9px; height:14px; flex-shrink:0; border-radius:0;
  background:none; font-size:0; color:transparent;
  position:relative;
}
.why-check::before {
  content:''; position:absolute; inset-inline-start:0; top:0;
  width:1px; height:14px; background:var(--accent);
}
.why-check::after {
  content:''; position:absolute; inset-inline-start:4px; top:4px;
  width:1px; height:6px; background:rgba(255,255,255,.22);
}

/* ══════════════════════════════════
   SERVICES
   ══════════════════════════════════ */
.services-sec { background: transparent; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }


/* ══════════════════════════════════
   MAP
   ══════════════════════════════════ */
.loc-name { font-size:clamp(13px,3.5vw,15px); font-weight:700; }
.loc-sub  { font-size:clamp(11px,2.5vw,12px); color:rgba(255,255,255,0.35); margin-top:2px; }

/* ══════════════════════════════════
   CONTACT
   ══════════════════════════════════ */
.contact-sec { background: transparent; border-top:1px solid var(--border); }
.contact-layout { display:grid; grid-template-columns:1fr 1.6fr; gap:clamp(2rem,5vw,4rem); margin-top:var(--sp-xl); align-items:start; }
.cinfo { display:flex; flex-direction:column; gap:10px; }

/* ── Base card (shared) ── */
.ccard {
  display:flex; align-items:center; gap:14px;
  padding:15px 18px; min-height:62px;
  background: rgba(255,255,255,0.04);
  border:1px solid var(--border);
  border-radius:14px;
  position:relative; overflow:hidden;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.18s ease, box-shadow 0.22s ease;
}

/* Accent bar on leading edge */
.ccard::before {
  content:'';
  position:absolute; inset-block:0; inset-inline-start:0;
  width:3px; border-radius:0 3px 3px 0;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  opacity:0; transition: opacity 0.22s ease;
}

/* Static card (location) */
.ccard-static { cursor:default; }

/* ── Clickable link card ── */
.ccard-link {
  text-decoration:none; color:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ccard-link:hover,
.ccard-link:focus-visible {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.4);
  transform: translateX(-4px);
  box-shadow: 0 4px 24px rgba(37,99,235,0.12);
}
html[dir="ltr"] .ccard-link:hover,
html[dir="ltr"] .ccard-link:focus-visible { transform: translateX(4px); }
.ccard-link:hover::before,
.ccard-link:focus-visible::before { opacity:1; }
.ccard-link:active { transform: scale(0.98); }
.ccard-link:focus-visible { outline:2px solid rgba(37,99,235,0.7); outline-offset:2px; }

/* Per-platform hover colors */
.ccard-link:has(.cico--whatsapp):hover  { border-color:rgba(37,168,87,0.45);  background:rgba(37,168,87,0.08);  }
.ccard-link:has(.cico--instagram):hover { border-color:rgba(225,48,108,0.45); background:rgba(225,48,108,0.08); }
.ccard-link:has(.cico--twitter):hover   { border-color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.05);}

.ccard-link:has(.cico--whatsapp):hover  .cico--whatsapp  { background: rgba(37,168,87,0.3); }
.ccard-link:has(.cico--instagram):hover .cico--instagram { background: linear-gradient(135deg,rgba(225,48,108,0.35),rgba(250,126,30,0.25)); }
.ccard-link:has(.cico--twitter):hover   .cico--twitter   { background: rgba(255,255,255,0.14); }

/* ── Icon container ── */
.cico {
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  transition: background 0.22s ease, transform 0.18s ease;
}
.ccard-link:hover .cico { transform: scale(1.08); }

/* Platform icon backgrounds */
.cico--email     { background: linear-gradient(135deg,#2563eb,#7c3aed); }
.cico--whatsapp  { background: linear-gradient(135deg,#25a560,#128c4a); }
.cico--location  { background: linear-gradient(135deg,#0891b2,#0e7490); }
.cico--instagram { background: linear-gradient(135deg,#833ab4,#e1306c,#f56040); }
.cico--twitter   { background: linear-gradient(135deg,#1a1a1a,#333); }
.cico svg { width:20px; height:20px; }

/* ── Text ── */
.ctext { flex:1; min-width:0; }
.clbl {
  font-size:clamp(9px,2.5vw,10px); font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:rgba(139,92,246,0.8); margin-bottom:3px;
}
.cval { font-size:clamp(13px,3vw,14px); color:rgba(255,255,255,0.85); font-weight:500; }

/* ── Arrow indicator ── */
.ccard-arrow {
  color: rgba(255,255,255,0.2); flex-shrink:0;
  opacity:0; transform:translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
html[dir="ltr"] .ccard-arrow { transform:translateX(6px) scaleX(-1); }
.ccard-link:hover .ccard-arrow,
.ccard-link:focus-visible .ccard-arrow {
  opacity:1; transform:translateX(0); color:rgba(255,255,255,0.55);
}

/* ── Form panel ── */
.form-panel {
  background:var(--ink3); border:1px solid var(--border);
  border-radius:18px; padding:clamp(1.25rem,4vw,2.25rem);
}
.form-panel h3 { font-size:clamp(16px,4vw,18px); font-weight:700; margin-bottom:var(--sp-md); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* ── INPUTS (iOS-safe) ── */
.inp {
  width:100%;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(139,92,246,0.2);
  border-radius:9px; padding:13px 16px;
  color:#fff; font-size:16px;               /* ≥16px → no iOS zoom */
  font-family:var(--font-body, var(--font-ar));
  outline:none; transition:border-color 0.2s; margin-bottom:12px;
  -webkit-appearance:none; appearance:none;
  min-height:44px;
}
.inp:focus { border-color:rgba(37,99,235,0.5); background:rgba(37,99,235,0.04); }
.inp::placeholder { color:rgba(255,255,255,0.2); }
textarea.inp { height:110px; resize:none; margin-bottom:0; min-height:110px; }
select.inp   { cursor:pointer; background-image:none; }

.submit-btn {
  width:100%; margin-top:14px;
  background: var(--pill);
  color: var(--pill-ink); padding:15px; border-radius:999px; min-height:50px;
  font-size:clamp(14px,3.5vw,15.5px); font-weight:600; border:none;
  font-family:var(--font-body, var(--font-ar));
  transition: background .18s, transform .18s;
}
.submit-btn:hover  { opacity:0.88; transform:translateY(-1px); }
.submit-btn:active { transform:scale(0.98); opacity:0.9; }

/* ══════════════════════════════════
   INTEREST FORM
   ══════════════════════════════════ */
.interest-sec { background: transparent; border-top:1px solid var(--border); }
.interest-inner { max-width:680px; margin:0 auto; text-align:center; }
.interest-inner .slabel { justify-content:center; }
.int-panel {
  margin-top:var(--sp-lg);
  background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:clamp(1.5rem,5vw,3rem);
  position:relative; overflow:hidden;
}
.int-panel::before {
  content:''; position:absolute; top:-100px; left:50%; transform:translateX(-50%);
  width:400px; height:250px;
  background:radial-gradient(ellipse,rgba(37,99,235,0.1),transparent 65%);
  pointer-events:none;
}
.int-panel p { font-size:clamp(14px,3.5vw,15px); color:var(--muted); line-height:1.85; margin-bottom:var(--sp-md); position:relative; }
.int-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:12px; margin-bottom:14px; position:relative;
}
.int-select {
  width:100%; grid-column:1/-1;
  background:rgba(255,255,255,0.04); border:1px solid rgba(139,92,246,0.2);
  border-radius:9px; padding:13px 16px;
  color:#fff; font-size:16px;
  font-family:var(--font-body, var(--font-ar));
  outline:none; margin-bottom:0;
  -webkit-appearance:none; appearance:none; min-height:44px;
  transition: border-color 0.2s;
}
.int-select option { background:var(--ink2); }
.int-select:focus { border-color:rgba(37,99,235,0.5); }

/* ── Field wrapper (input + error) ── */
.field-wrap { display:flex; flex-direction:column; gap:4px; }

/* ── Validation states ── */
.inp.is-error {
  border-color: rgba(239,68,68,0.7) !important;
  background: rgba(239,68,68,0.06) !important;
}
.inp.is-ok {
  border-color: rgba(37,168,87,0.5) !important;
  background: rgba(37,168,87,0.04) !important;
}
.field-err {
  font-size:12px; color:#f87171; text-align:right;
  min-height:16px; display:block;
  font-weight:500; padding:0 4px;
}
html[dir="ltr"] .field-err { text-align:left; }

/* ── Submit button states ── */
#interest-submit { position:relative; overflow:hidden; }
#interest-submit:disabled {
  opacity:0.65; cursor:not-allowed; transform:none !important;
}
.btn-spinner {
  display:inline-flex; align-items:center; gap:8px;
}
@keyframes spin-icon {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}

/* ── Success screen ── */
/* FIX: [hidden] must override display:flex — use !important guard */
[hidden] { display: none !important; }

.int-success {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:12px; padding:2rem 1rem;
  animation:fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.success-icon { margin-bottom:4px; }
.success-icon svg { filter:drop-shadow(0 0 12px rgba(37,168,87,0.4)); }
.success-title {
  font-size:clamp(20px,4vw,26px); font-weight:800;
  background:linear-gradient(135deg,#25a560,#4ade80);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.success-msg { font-size:clamp(14px,3vw,15px); color:var(--muted); line-height:1.7; }
.success-reset {
  margin-top:8px;
  background:transparent; border:1px solid rgba(139,92,246,0.4);
  color:rgba(255,255,255,0.7); padding:10px 28px; border-radius:9px;
  font-size:14px; font-weight:600; cursor:pointer;
  font-family:var(--font-body,var(--font-ar));
  -webkit-appearance:none; appearance:none;
  transition:all 0.2s; min-height:44px;
  -webkit-tap-highlight-color:transparent;
}
.success-reset:hover { border-color:rgba(139,92,246,0.7); color:#fff; background:rgba(139,92,246,0.1); }



/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
footer {
  background:#040409;
  border-top:1px solid rgba(139,92,246,0.15);
  padding: clamp(1.5rem,4vw,3rem) var(--sec-px);
  padding-bottom: calc(clamp(1.5rem,4vw,3rem) + var(--safe-bottom));
  padding-left:   calc(var(--safe-left)  + var(--sec-px));
  padding-right:  calc(var(--safe-right) + var(--sec-px));
}
.footer-inner { max-width:1100px; margin:0 auto; }
.footer-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:var(--sp-md); flex-wrap:wrap; gap:var(--sp-sm); }
.footer-brand { display:flex; align-items:center; gap:12px; }
.footer-brand img { width:38px; height:38px; object-fit:contain; }
.footer-name {
  font-family:var(--font-mono); font-size:clamp(16px,4vw,18px); font-weight:700; letter-spacing:2px;
  background:linear-gradient(135deg,#60a5fa,#a78bfa);
  background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.footer-links { display:flex; gap:clamp(0.75rem,3vw,1.5rem); flex-wrap:wrap; }
.footer-links a {
  color:rgba(255,255,255,0.3); font-size:clamp(12px,3vw,13px);
  text-decoration:none; transition:color 0.2s;
  min-height:44px; display:flex; align-items:center;
  -webkit-tap-highlight-color:transparent;
}
.footer-links a:hover { color:rgba(255,255,255,0.7); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.04); padding-top:var(--sp-sm);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
}
.footer-copy { font-size:clamp(11px,2.5vw,12px); color:rgba(255,255,255,0.2); }
.footer-tag  { font-size:clamp(10px,2.5vw,11px); color:rgba(139,92,246,0.4); font-family:var(--font-mono); }

/* ══════════════════════════════════
   REVEAL ANIMATION
   ══════════════════════════════════ */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ════════════════════════════════════════ */

/* iPhone SE and narrow screens */
@media (max-width: 390px) {
  .hero h1        { font-size: clamp(24px,8vw,30px); }
  .hero-stats     { gap: 0.75rem; }
  .hstat-n        { font-size: 18px; }
  .int-grid       { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .compat-grid    { grid-template-columns: 1fr; }
}

/* All mobile (≤ 767px) */
@media (max-width: 767px) {
  .hamburger    { display: flex; }
  .nav-links    { display: none; }

  .hero-inner   { grid-template-columns:1fr; text-align:center; justify-items:center; gap:var(--sp-lg); }
  .hero-content { order:2; }
  .hero-visual  { order:1; }
  .hero-desc    { margin-left:auto; margin-right:auto; max-width:100%; }
  .hero-stats   { justify-content:center; }
  .hero-btns    { justify-content:center; }
  .logo-ring-wrap { width:clamp(180px,55vw,260px); height:clamp(180px,55vw,260px); }

  .about-grid    { grid-template-columns:1fr; gap:var(--sp-xl); }
  .product-card  { grid-template-columns:1fr; }
  .product-left  { border-left:none; border-bottom:1px solid var(--border); }
  html[dir="ltr"] .product-left { border-right:none; border-bottom:1px solid var(--border); }
  .svc-grid      { grid-template-columns:1fr; }
  .contact-layout { grid-template-columns:1fr; gap:var(--sp-lg); }
  .form-row      { grid-template-columns:1fr; }
  .int-grid      { grid-template-columns:1fr; }

  .footer-top    { flex-direction:column; align-items:flex-start; }
  .footer-links  { gap:0.5rem; }
  .footer-bottom { flex-direction:column; align-items:flex-start; gap:6px; }
  .slabel        { font-size:10px; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-inner     { grid-template-columns:1fr 1fr; gap:var(--sp-lg); }
  .about-grid     { grid-template-columns:1fr 1fr; gap:var(--sp-lg); }
  .product-card   { grid-template-columns:1fr 1fr; }
  .svc-grid       { grid-template-columns:repeat(2,1fr); }
  .contact-layout { grid-template-columns:1fr 1fr; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hamburger   { display:none; }
  .nav-links   { display:flex; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ring, .hero-canvas::before, .hero-canvas::after { animation:none; }
  .reveal { opacity:1; transform:none; transition:none; }
}

/* ══════════════════════════════════
   ABOUT — Single column (after stats removal)
   ══════════════════════════════════ */
.about-single {
  max-width: 700px;
  margin: var(--sp-xl) auto 0;
}
.feats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: var(--sp-md);
}

/* Hide hero-stats spacing cleanly */
.hero-stats { display: none !important; }


/* ══════════════════════════════════
   ARABIC TYPOGRAPHY
   الحرف العربي متصل — تباعد الحروف
   يكسر الوصلات، فيُصفَّر في RTL
   ══════════════════════════════════ */
html[dir="rtl"] .gauge-label,
html[dir="rtl"] .slabel,
html[dir="rtl"] .compat-title,
html[dir="rtl"] .why-title,
html[dir="rtl"] .product-badge,
html[dir="rtl"] .svc-t,
html[dir="rtl"] .footer-copy,
html[dir="rtl"] .loc-name,
html[dir="rtl"] .clbl,
html[dir="rtl"] .cval {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .srail-idx { letter-spacing: 1px; }

/* الخط الأحادي للأرقام والفهارس فقط */
html[lang="en"] .gauge-label,
html[lang="en"] .slabel {
  font-family: var(--font-mono);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}


/* ══════════════════════════════════
   REFERENCE SYSTEM — details
   ══════════════════════════════════ */

/* Body copy is violet-tinted throughout, never neutral gray */
.loc-sub, .cval, .why-item, .spec, .feat-t { color: var(--body-ink); }

/* Small rule above a sub-heading, reference style */
.feats-row .feat, .compat-item, .ccard {
  border-radius: var(--radius-md);
  border-color: var(--border);
}

/* Numerals sit tabular so indices and figures align */
.srail-idx, .svc-no span, .hstat-n { font-variant-numeric: tabular-nums; }

/* ── Scroll-to-top, reference placement ── */
.to-top {
  position: fixed; z-index: 900;
  inset-inline-end: clamp(16px, 3vw, 34px);
  bottom: calc(clamp(16px, 3vw, 34px) + var(--safe-bottom));
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--pill); color: var(--pill-ink);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #d6a0ff; }
.to-top:active { transform: scale(.94); }
.to-top svg { display: block; }

/* ── Arabic display: Tajawal Black, tight ── */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .stitle { letter-spacing: 0; line-height: 1.18; }
html[dir="rtl"] .hero h1 { font-size: clamp(30px,6.6vw,72px); }

/* ══════════════════════════════════
   RTL FORM FIELDS
   المتصفح يفرض LTR على input[type=tel]
   و[type=email]، فيقفز الـ placeholder
   لليسار وسط حقول عربية محاذاة لليمين
   ══════════════════════════════════ */
html[dir="rtl"] .inp,
html[dir="rtl"] .inp::placeholder {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] select.inp { text-align: right; }
/* الرقم نفسه يبقى LTR داخل حقل محاذى لليمين */
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[dir="ltr"] .inp { direction: ltr; text-align: left; }


/* ══════════════════════════════════
   LOGO GRADIENT
   العينات مأخوذة من logo.png نفسه:
   #0090e0 → #2450cc → #5418c0 → #7d15a5
   مرفوعة قليلًا لتقرأ فوق الأرضية الداكنة.
   الاتجاه ينعكس مع اتجاه الصفحة.
   ══════════════════════════════════ */
:root { --logo-angle: 100deg; }
html[dir="rtl"] { --logo-angle: 260deg; }

.hero h1 .l2,
.stitle span:last-child {
  background: linear-gradient(
      var(--logo-angle),
      #28e6f0   0%,
      #1c70e0  32%,
      #8a7cfc  68%,
      #c882fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* الوصف الصاعد للحروف العربية يُقتطع بدون هذا */
  padding-block: 0.06em;
  display: inline-block;
}
.hero h1 .l2 { display: block; }

/* تنبيه التطوير المحلي — file:// فقط */
.local-notice {
  position: fixed; z-index: 9999;
  inset-inline-start: 50%; transform: translateX(-50%);
  bottom: calc(18px + var(--safe-bottom));
  max-width: min(560px, calc(100vw - 32px));
  background: #2a1030; border: 1px solid #7b3ce8;
  color: #f0e6ff; border-radius: 14px;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.7;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.local-notice code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px;
}

/* ══════════════════════════════════
   SCROLL — الحركة مع التمرير
   ══════════════════════════════════ */

/* شريط التقدّم بتدرّج الشعار */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  height: 2px; transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #28e6f0, #1c70e0, #8a7cfc, #c882fa);
  will-change: transform;
}
html[dir="rtl"] .scroll-progress { transform-origin: right center; }

/* القائمة تتقلّص عند النزول */
nav {
  transition: height .28s ease, background .28s ease,
              backdrop-filter .28s ease, border-color .28s ease;
}
nav.shrink {
  height: calc(56px + var(--safe-top));
  background: rgba(7,10,24,0.92);
  border-bottom-color: rgba(255,255,255,0.10);
}
nav.shrink .nav-logo img { width: 32px; height: 32px; transition: all .28s ease; }
nav .nav-logo img { transition: all .28s ease; }

/* الطبقات: الهالات تتحرك أبطأ من المحتوى */
.hero-canvas { transform: translate3d(0, var(--par, 0px), 0); will-change: transform; }

/* الظهور التدريجي */
.rv {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .62s cubic-bezier(.22,.68,.32,1) var(--rv-delay, 0ms),
              transform .62s cubic-bezier(.22,.68,.32,1) var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.rv.visible { opacity: 1; transform: none; }
/* العناوين تنزلق من جهة القراءة */
.stitle.rv, .srail.rv {
  transform: translate3d(calc(var(--rv-dir, -1) * 26px), 0, 0);
}
html[dir="rtl"] .stitle.rv,
html[dir="rtl"] .srail.rv { --rv-dir: 1; }
.stitle.rv.visible, .srail.rv.visible { transform: none; }

/* بعد اكتمال الظهور نرفع will-change حتى لا يستهلك ذاكرة */
.rv.visible { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-canvas { transform: none !important; }
  .scroll-progress { display: none; }
}

/* ══════════════════════════════════
   PINNED STAGE
   نسخة واحدة من المجسّم تبقى ملتصقة
   بأعلى الشاشة عبر ثلاثة أقسام، ثم
   تُفلت طبيعيًا عند نهاية الغلاف.
   العنصر sticky داخل خلية شبكة، فمجال
   الالتصاق هو ارتفاع الخلية كاملًا.
   ══════════════════════════════════ */
.pin-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: start;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: calc(var(--safe-left) + var(--sec-px));
}
.pin-visual {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center; justify-content: center;
  align-self: start;
  padding-block: 0;
}
.pin-flow { grid-column: 1; grid-row: 1; min-width: 0; }

/* الأقسام داخل الغلاف تتخلّى عن حشوها الأفقي وحدّ عرضها */
.pin-stage .hero,
.pin-stage .section { padding-inline: 0; }
.pin-stage .section-inner { max-width: none; }
.pin-stage .hero-inner {
  grid-template-columns: 1fr;
  max-width: none;
}
.pin-stage .hero { min-height: 100svh; }
/* القسم الثاني يملأ شاشة كاملة أيضًا، فيصير مجال
   الالتصاق شاشة كاملة بدل 695px — البطارية ترافقك
   طوال الصفحة الثانية بدل أن تُفلت في منتصفها */
.pin-stage .about-sec {
  min-height: 100svh;
  display: flex; align-items: center;
}
.pin-stage .about-sec .section-inner { width: 100%; }

/* حالة التحميل: تدرّج داكن بنبض خفيف بدل الفراغ */
.pin-visual::before {
  content: '';
  position: absolute; inset: 12% 6%;
  border-radius: var(--radius-lg);
  background: radial-gradient(60% 55% at 50% 50%,
              rgba(56,225,255,.07) 0%, rgba(200,130,250,.05) 45%, transparent 75%);
  animation: pin-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.pin-visual.is-loaded::before { animation: none; opacity: 0; transition: opacity .5s; }
@keyframes pin-pulse {
  0%, 100% { opacity: .55; transform: scale(.98); }
  50%      { opacity: 1;   transform: scale(1.02); }
}


/* تلميح السحب: يظهر مرة واحدة ثم يختفي */
/* ── الجوال ── */
@media (max-width: 767px) {
  .pin-stage { grid-template-columns: 1fr; }
  .pin-visual {
    grid-column: 1; grid-row: 1;
    height: 45vh;
  }
  .pin-flow {
    grid-column: 1; grid-row: 1;
    padding-top: 45vh;
  }
  .pin-visual .product-shot { height: 100%; max-width: 440px; }
  .pin-stage .hero { min-height: auto; padding-top: var(--sp-lg); }
  /* البطارية ثابتة خلف الكلام: النص يمرّ فوقها. تخفت قليلًا حين
     يبدأ النص بالمرور (bat.js) وللنص ظلّ خفيف ليبقى مقروءًا */
  .pin-visual { z-index: 0; background: none; }
  .pin-flow { position: relative; z-index: 1; }
  .pin-flow .hero-content, .pin-flow .about-sec .section-inner {
    text-shadow: 0 1px 14px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.8);
  }
  .seq-canvas { transition: opacity .25s linear; }
  /* النص المتدرّج (شفاف التعبئة) يمتصّ الظل فيبهت — نستثنيه */
  .pin-flow .hero h1 .l2, .pin-flow .stitle span:last-child { text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pin-visual::before { animation: none; }
}

/* ══════════════════════════════════
   GALAXY BACKGROUND
   لوحة ثابتة خلف كل شيء: نجوم خافتة
   ومدارات طاقة. الضبابية تُقاد من
   ScrollFX عبر متغيّر واحد، فالطبقة
   مركّبة على كرت الشاشة ولا تُعيد
   حساب التخطيط.
   ══════════════════════════════════ */
.galaxy {
  position: fixed; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%;
  pointer-events: none;
  /* لا filter هنا: الضبابية تُصنع بخفض دقة الرسم في bat.js (أرخص بكثير) */
  will-change: opacity;
  transform: translateZ(0);
}

/* المحتوى فوق اللوحة */
.pin-stage,
.section,
.divider,
footer,
.scroll-progress { position: relative; z-index: 1; }
nav, .mobile-menu, .to-top, .local-notice { z-index: 999; }

@media (prefers-reduced-motion: reduce) {
  .galaxy { opacity: .8 !important; }
}


/* ══════════════════════════════════
   TRANSPARENT SHELL
   الأقسام شفافة والمجرّة تظهر خلف
   الصفحة كلها؛ البطاقات ألواح زجاجية
   لا مساحات معتمة.
   ══════════════════════════════════ */
.form-panel, .ccard, .feat, .inp {
  /* بلا backdrop-filter: فوق لوحة متحركة كان يُعاد تمويهه كل إطار.
     خلفية أكثف قليلًا تعطي نفس إحساس الزجاج. */
  background: rgba(14,14,22,.62);
  border-color: rgba(255,255,255,.08);
}
.svc-card:hover { background: rgba(255,255,255,.06); }
.inp:focus { background: rgba(255,255,255,.06); }

footer { background: transparent; border-top: 1px solid rgba(255,255,255,.07); }
nav { background: rgba(0,0,0,.62); }
nav.shrink { background: rgba(0,0,0,.82); }
.mobile-menu { background: rgba(0,0,0,.94); }
.divider { background: rgba(255,255,255,.05); }


/* ══════════════════════════════════
   SERVICES — فهرس تحريري
   ══════════════════════════════════
   لا صناديق. كل خدمة سطر كامل العرض
   على شعرة، الرقم في الهامش، والعنوان
   والوصف في عمودين. الشعرة السماوية
   تُرسم من جهة القراءة عند المرور.
   ══════════════════════════════════ */
.svc-index {
  list-style: none;
  margin: var(--sp-xl) 0 0;
  padding: 0;
  border-block-end: 1px solid rgba(255,255,255,.09);
}
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(.9rem, 2.6vw, 2.4rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3.2vw, 2.5rem) 0;
  border-block-start: 1px solid rgba(255,255,255,.09);
  transition: padding-inline .35s cubic-bezier(.22,.68,.32,1);
}

/* الشعرة السماوية تنمو من حافة القراءة */
.svc-row::after {
  content: '';
  position: absolute; inset-block-start: -1px;
  inset-inline: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.22,.68,.32,1);
}
html[dir="ltr"] .svc-row::after { transform-origin: left center; }
.svc-row:hover::after { transform: scaleX(1); }
.svc-row:hover { padding-inline: 10px; }

.svc-n {
  font-family: var(--font-mono);
  font-size: clamp(11px, 2.4vw, 13px); font-weight: 700;
  color: rgba(255,255,255,.28);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  transition: color .35s;
}
.svc-row:hover .svc-n { color: var(--accent); }

.svc-t {
  font-size: clamp(17px, 3.4vw, 25px);
  font-weight: 800; line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff; margin: 0;
}
.svc-d {
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.75; color: var(--body-ink);
  margin: 0; max-width: 62ch;
}

/* علامة رأسية على الطرف — إيقاع هادئ بدل الأيقونة داخل رقاقة */
.svc-mark {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(clamp(1.5rem, 3.2vw, 2.5rem) + .35em);
  width: 1px; height: 13px;
  background: rgba(255,255,255,.16);
  transition: background .35s, height .35s;
}
.svc-row:hover .svc-mark { background: var(--accent); height: 22px; }

@media (max-width: 860px) {
  .svc-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    row-gap: .55rem;
  }
  .svc-d { grid-column: 2; }
  .svc-mark { display: none; }
  .svc-row:hover { padding-inline: 0; }
}


/* ══════════════════════════════════
   COVERAGE — نطاق التغطية
   ══════════════════════════════════
   خريطة Google حقيقية للرياض، مقلوبة
   لونيًا لتناسب الأرضية السوداء، وفوقها
   حلقات مدى. لا دبابيس تدّعي عناوين.
   ══════════════════════════════════ */
.coverage-sec { background: transparent; }
.cov-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.cov-body { min-width: 0; }          /* العمود الأول = يمين في RTL */

.cov-note {
  margin-top: var(--sp-lg);
  font-size: clamp(12px, 2.6vw, 13.5px);
  color: rgba(255,255,255,.42);
  line-height: 1.7;
}
.venue-list {
  list-style: none; padding: 0;
  margin: .9rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(1rem, 3vw, 2.4rem);
}
.venue {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 0;
  font-size: clamp(13px, 2.8vw, 15px);
  color: var(--body-ink);
  border-block-end: 1px solid rgba(255,255,255,.07);
}
.venue-tick {
  width: 1px; height: 13px; flex-shrink: 0;
  background: var(--accent); opacity: .75;
}

@media (max-width: 900px) {
  .cov-layout { grid-template-columns: 1fr; }
  }
@media (max-width: 520px) {
  .venue-list { grid-template-columns: 1fr; }
}

/* الخريطة كما كانت: بلا فلتر ولا حلقات */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0d16;
}
.map-wrap iframe {
  width: 100%;
  height: clamp(280px, 34vw, 440px);
  border: none; display: block;
}


/* ══════════════════════════════════
   ASSEMBLY SEQUENCE
   90 إطارًا تُرسم على لوحة واحدة،
   والفهرس مربوط بنسبة التمرير. أخف
   من WebGL وأنعم من تحريك <video>
   الذي يتلعثم عند القفز بين اللقطات.
   ══════════════════════════════════ */
.pin-visual .product-shot {
  /* أكبر من قبل: تملأ عرض العمود وارتفاع الشاشة تقريبًا */
  width: 100%; max-width: none;
  height: min(92svh, 940px);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.seq-canvas { width: 100%; height: 100%; display: block; }

/* العمود البصري يمتدّ خارج حدّ الشبكة قليلًا فلا تُقصّ
   الطبقات السفلى من المجسّم عند حافة العمود */
.pin-visual { overflow: visible; }
.pin-stage  { overflow: visible; }

@media (max-width: 767px) {
  .pin-visual .product-shot { height: 100%; max-width: none; }
}

/* ══ Security & privacy UI ══ */
/* مصيدة الروبوتات — خارج الشاشة لا display:none (بعض الروبوتات تتخطى المخفي) */
.hp-field { position:absolute !important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.form-note { font-size:12px; line-height:1.7; color:var(--muted, rgba(255,255,255,.5)); margin:10px 0 14px; }
.form-note a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }

/* ══ Lenis smooth scroll ══ */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ══ قسم التواصل بلا نموذج: البطاقات تملأ العرض ══
   شبكة 6 أعمدة: البريد وواتساب (القناتان الأساسيتان) بنصف العرض،
   والثلاث الباقية بالثلث — صفّان متوازنان بلا بطاقة يتيمة. */
.contact-layout { grid-template-columns: 1fr !important; }
.cinfo { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cinfo > :nth-child(-n+2) { grid-column: span 3; }
.cinfo > :nth-child(n+3)  { grid-column: span 2; }
@media (max-width: 900px) {
  .cinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cinfo > * { grid-column: span 1 !important; }
  .cinfo > :last-child { grid-column: span 2 !important; }
}
@media (max-width: 560px) {
  .cinfo { grid-template-columns: 1fr; }
  .cinfo > *, .cinfo > :last-child { grid-column: auto !important; }
}

/* ══════════════════════════════════
   MOBILE POLISH — مراجعة الجوال
   ══════════════════════════════════ */
/* قراءة أوضح في كل المقاسات */
.inp::placeholder { color: rgba(255,255,255,.38); }
.footer-links a   { color: rgba(255,255,255,.55); }
.footer-copy      { color: rgba(255,255,255,.42); }
.footer-tag       { color: rgba(139,92,246,.6); }

/* نموذج التسجيل: الخطأ لا يحجز مكانًا إلا إذا ظهر */
.int-grid .inp, #interest-form .inp { margin-bottom: 0; }
.field-err { min-height: 0; }
.field-err:empty { display: none; }
.int-grid { gap: 12px; }

@media (max-width: 767px) {
  /* القائمة: أرضية سوداء كاملة — بدون التمويه كان النص خلفها يظهر */
  .mobile-menu { background: #000 !important; }
  /* القائمة صارت معتمة — الشريط العلوي (زر الإغلاق ×) يجب أن يبقى فوقها */
  .mobile-menu { z-index: 998 !important; }
  nav { z-index: 1000 !important; }
  /* زر اللغة ظاهر في الشريط فوق القائمة — لا داعي لتكراره داخلها */
  .mobile-menu .lang-btn { display: none; }

  /* العناوين الصغيرة: 10px عربي غير مقروء على الجوال */
  .slabel, .gauge-label          { font-size: 12.5px; }
  .clbl                          { font-size: 11.5px; margin-bottom: 4px; }
  .compat-title, .why-title,
  .product-badge                 { font-size: 12px; }
  .footer-copy                   { font-size: 12px; }
  .footer-tag                    { font-size: 11px; }

  /* زر «للأعلى» أصغر حتى لا يغطي النص */
  .to-top { width: 44px; height: 44px; inset-inline-end: 14px; bottom: calc(14px + var(--safe-bottom)); }
  .to-top svg { width: 18px; height: 18px; }

  /* svh: لا قفزة حين يختفي شريط العنوان في سفاري/كروم الجوال */
  /* البطارية تبدأ تحت الشريط العلوي لا خلفه — كان الغطاء العلوي يُقصّ */
  .pin-visual {
    top: calc(70px + var(--safe-top));
    height: 38vh; height: 38svh;
  }
  .pin-flow { padding-top: calc(70px + var(--safe-top) + 38vh); padding-top: calc(70px + var(--safe-top) + 38svh); }

  /* روابط التذييل: مسافات لمس مريحة */
  .footer-links { gap: 0 1.1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* لمس: لا وميض أزرق، ولا تكبير نص تلقائي */
  a, button { -webkit-tap-highlight-color: transparent; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ══ HERO على الجوال: محور واحد في المنتصف ══
   كانت العناصر موزّعة بين يمين ووسط، والتوهّج الدائري خلف النص
   يُقصّ عند حافة القسم فيظهر كمستطيل بحواف حادة. */
@media (max-width: 767px) {
  .pin-stage .hero { padding-top: var(--sp-md); }
  .hero-content { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-content .gauge { justify-content: center; margin-bottom: 18px; }
  .hero-content .gauge-scale { width: 72px; }
  .hero h1 { margin-bottom: 14px; }
  .hero-slogan {
    max-width: none; margin-inline: auto; margin-bottom: 14px;
    font-size: clamp(16px, 4.6vw, 20px); line-height: 1.5;
    text-wrap: balance;
  }
  .hero-desc { max-width: 34ch; margin-inline: auto; text-wrap: pretty; }
  .hero-btns { width: 100%; justify-content: center; gap: 10px; margin-bottom: 0; }
  .hero-btns > * { flex: 1 1 0; min-width: 0; max-width: 220px; white-space: nowrap; }
}

/* التوهّج الدائري خلف نص البطل كان يُقصّ عند حافة العمود فيظهر
   كلوح بحواف حادة — المجرّة تكفي خلفية في كل المقاسات */
.pin-stage .hero-canvas { display: none; }
/* الشعار سطر واحد بدل «بطارية» يتيمة في سطر ثانٍ */
.hero-slogan { max-width: none; text-wrap: balance; }
