/* ═══════════════════════════════════════════════════════════
   SpareX Brand Portal — CSS
   Navy #13214B · Red #D7264E · White #FFFFFF
   Font EN: Outfit · Font AR: Cairo
   Logo: Spare (navy) + X (red/pink gradient) + swoosh arc
═══════════════════════════════════════════════════════════ */

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

:root {
  --navy:       #13214B;
  --navy-mid:   #1E2F6E;
  --navy-dark:  #0D1A45;
  --navy-deep:  #080F28;
  --red:        #D7264E;
  --red-bright: #F43B69;
  --red-dark:   #B01A38;
  --gray-icon:  #9AA0B0;
  --white:      #FFFFFF;
  --light-bg:   #F5F6FA;
  --light-bg2:  #EEF0F8;
  --text-dark:  #1A1A2E;
  --text-mid:   #4A5070;
  --text-light: #8890A8;
  --border:     rgba(19,33,75,.12);

  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  --shadow-sm:   0 2px 12px rgba(19,33,75,.08);
  --shadow-md:   0 8px 32px rgba(19,33,75,.14);
  --shadow-red:  0 8px 32px rgba(215,38,78,.3);
  --shadow-navy: 0 8px 32px rgba(19,33,75,.35);

  --tr: .3s cubic-bezier(.4,0,.2,1);
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}
body.lang-en { font-family: var(--font-en); direction: ltr; }
html[dir="rtl"] { direction: rtl; }
html[dir="ltr"] { direction: ltr; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 700; }
.lang-en h1,.lang-en h2,.lang-en h3,.lang-en h4 { font-family: var(--font-en); }

/* ════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,26,69,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(215,38,78,.15);
  transition: var(--tr);
}
#navbar.scrolled {
  background: rgba(8,15,40,.98);
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
  border-bottom-color: rgba(215,38,78,.25);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-h);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }

/* nav links */
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 7px 13px;
  border-radius: var(--r-sm); transition: var(--tr); white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(215,38,78,.15); }

/* nav right */
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: var(--white); cursor: pointer; border-radius: var(--r-sm);
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  font-family: var(--font-en); transition: var(--tr);
}
.lang-btn:hover { border-color: var(--red); color: var(--red-bright); }

.btn-cta {
  background: var(--red); color: var(--white);
  text-decoration: none; border-radius: var(--r-sm);
  padding: 8px 22px; font-size: 14px; font-weight: 700;
  font-family: var(--font-en); transition: var(--tr); border: none; cursor: pointer;
}
.btn-cta:hover { background: var(--red-dark); box-shadow: var(--shadow-red); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--navy-deep); border-top: 1px solid rgba(215,38,78,.15);
  padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu a {
  color: rgba(255,255,255,.75); text-decoration: none;
  padding: 13px 0; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: var(--tr);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--red-bright); }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh; background: var(--navy-deep);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grad {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(215,38,78,.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 70%, rgba(30,47,110,.4) 0%, transparent 60%);
}
.hero-shape {
  position: absolute; border-radius: 50%;
}
.shape-1 {
  width: 500px; height: 500px; top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(215,38,78,.1) 0%, transparent 70%);
}
.shape-2 {
  width: 300px; height: 300px; bottom: -80px; left: -60px;
  background: radial-gradient(circle, rgba(30,47,110,.3) 0%, transparent 70%);
}

/* Speed lines */
.speed-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.speed-lines span {
  position: absolute; left: -100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,38,78,.5), transparent);
  animation: speedLine 5s linear infinite;
}
.speed-lines span:nth-child(1) { top: 18%; width: 280px; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 33%; width: 180px; animation-delay: 1s; }
.speed-lines span:nth-child(3) { top: 52%; width: 380px; animation-delay: 2s; }
.speed-lines span:nth-child(4) { top: 68%; width: 140px; animation-delay: .5s; }
.speed-lines span:nth-child(5) { top: 80%; width: 240px; animation-delay: 1.5s; }
.speed-lines span:nth-child(6) { top: 12%; width: 320px; animation-delay: 2.5s; }
@keyframes speedLine {
  0%   { left:-100%; opacity:0; }
  8%   { opacity:1; }
  92%  { opacity:1; }
  100% { left:110%; opacity:0; }
}

/* Hero inner */
.hero-inner {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 60px; align-items: center;
  padding-top: 60px; padding-bottom: 100px; width: 100%;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(215,38,78,.2);
  animation: pdot 2s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { box-shadow: 0 0 0 3px rgba(215,38,78,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(215,38,78,.0), 0 0 20px rgba(215,38,78,.5); }
}
.hero-eyebrow span { color: var(--red-bright); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-en); }

/* Hero logo */
.hero-logo-wrap { margin-bottom: 24px; }
.hero-logo-svg  { width: clamp(220px, 35vw, 340px); height: auto; }

/* ── Universal SVG logo sizing ────────────────────────── */
.logo-svg { display: block; }

/* Navbar logo */
.logo-nav {
  width: clamp(120px, 18vw, 180px);
  height: 44px;
}

/* Hero logo (full with tagline) */
.logo-hero {
  width: clamp(240px, 40vw, 380px);
  height: auto;
  min-height: 120px;
}

/* Brand identity section logo variants */
.logo-lv {
  width: 100%;
  max-width: 260px;
  height: 90px;
}

/* Ecosystem center logo */
.logo-eco {
  width: 80px;
  height: 28px;
}

/* Phone screen logo */
.logo-phone-screen {
  width: 60px;
  height: 20px;
}

/* Flow step splash screen logo */
.logo-splash {
  width: 70px;
  height: 24px;
}

/* CTA section logo */
.logo-cta {
  width: clamp(200px, 28vw, 300px);
  height: auto;
  min-height: 100px;
}

/* Footer logo */
.logo-footer {
  width: 160px;
  height: 56px;
  margin-bottom: 14px;
}

/* Hero body */
.hero-body { color: rgba(255,255,255,.65); font-size: 16px; max-width: 500px; margin-bottom: 36px; line-height: 1.85; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  text-decoration: none; border-radius: var(--r-sm);
  padding: 14px 32px; font-size: 15px; font-weight: 700;
  font-family: var(--font-en); cursor: pointer; border: none; transition: var(--tr);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-primary.w-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.8);
  text-decoration: none; border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--r-sm); padding: 14px 32px;
  font-size: 15px; font-weight: 600; font-family: var(--font-en); transition: var(--tr);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* Stats */
.hero-stats {
  display: flex; align-items: center; gap: 28px;
  padding: 20px 28px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  width: fit-content;
}
.hstat { text-align: center; }
.hstat strong { display: block; font-size: 30px; font-weight: 900; color: var(--red-bright); font-family: var(--font-en); line-height: 1; }
.hstat span { font-size: 11px; color: rgba(255,255,255,.5); display: block; margin-top: 5px; }
.hstat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* ── Phone mockup ──────────────────────────────────────── */
.hero-phone { display: flex; justify-content: center; }
.phone-wrap { position: relative; }
.phone-body {
  width: 220px; height: 450px;
  background: var(--navy-dark); border-radius: 36px;
  border: 2px solid rgba(255,255,255,.12); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.phone-notch {
  width: 80px; height: 22px; margin: 0 auto;
  background: var(--navy-deep); border-radius: 0 0 14px 14px;
  position: relative; z-index: 10;
}
.phone-screen {
  position: absolute; inset: 0; background: #0a0e1f;
  display: flex; flex-direction: column; overflow: hidden;
}
.ps-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 12px 8px; background: var(--navy-dark);
}
.ps-logo-text { font-size: 13px; font-weight: 800; color: var(--white); font-family: var(--font-en); }
.ps-logo-text b { color: var(--red); }
.ps-icons { display: flex; gap: 10px; color: rgba(255,255,255,.5); font-size: 11px; }

.ps-banner {
  margin: 8px 10px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 10px 12px; position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center;
}
.ps-banner-inner { z-index: 1; }
.ps-banner-tag   { display: block; font-size: 7px; color: rgba(255,255,255,.7); font-family: var(--font-en); }
.ps-banner-title { display: block; font-size: 14px; font-weight: 900; color: var(--white); font-family: var(--font-en); }
.ps-banner-sub   { display: block; font-size: 7px; color: rgba(255,255,255,.7); }
.ps-banner-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.12); flex-shrink: 0;
}
.ps-sec-title { padding: 5px 12px 2px; font-size: 8px; font-weight: 700; color: rgba(255,255,255,.45); font-family: var(--font-en); }
.ps-cats { display: flex; gap: 5px; padding: 0 10px 5px; }
.ps-cat {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); font-size: 10px; flex-shrink: 0;
}
.ps-cat.active { background: var(--red); color: var(--white); }
.ps-products { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 2px 10px; flex: 1; }
.ps-prod { background: rgba(255,255,255,.04); border-radius: 7px; padding: 7px; }
.ps-prod-img {
  width: 100%; aspect-ratio: 1; border-radius: 5px; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 14px;
}
.ps-prod-img.navy { background: linear-gradient(135deg, #1a2e6e, #0d1a45); }
.ps-prod-name  { font-size: 7px; color: rgba(255,255,255,.65); font-weight: 500; }
.ps-prod-price { font-size: 8px; color: var(--red-bright); font-weight: 800; font-family: var(--font-en); }
.ps-nav {
  display: flex; border-top: 1px solid rgba(255,255,255,.06);
  background: var(--navy-dark); padding: 5px 0;
}
.ps-nav-item { flex: 1; display: flex; justify-content: center; align-items: center; color: rgba(255,255,255,.3); font-size: 11px; padding: 4px; }
.ps-nav-item.active { color: var(--red); }
.phone-glow {
  position: absolute; inset: -3px; border-radius: 39px; z-index: -1;
  background: linear-gradient(135deg, rgba(215,38,78,.25), transparent, rgba(30,47,110,.2));
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); text-decoration: none;
  animation: bounce 2.5s ease-in-out infinite; transition: var(--tr);
}
.scroll-hint:hover { border-color: var(--red); color: var(--red); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════════════════ */
.section      { padding: 96px 0; }
.section-navy { background: var(--navy-dark); }
.section-light{ background: var(--light-bg); }

/* Section head */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head.light h2 { color: var(--white); }
.section-head.light p  { color: rgba(255,255,255,.55); }

.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); font-family: var(--font-en);
  padding: 4px 16px; border-radius: 20px;
  background: rgba(215,38,78,.08); border: 1px solid rgba(215,38,78,.2);
  margin-bottom: 14px;
}
.section-navy .eyebrow { background: rgba(215,38,78,.15); border-color: rgba(215,38,78,.3); }

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: var(--navy); margin-bottom: 16px;
}
body.lang-en .section-head h2 { font-family: var(--font-en); }
.section-head p { font-size: 16px; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

/* ── About ─────────────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-copy p  { font-size: 16px; color: var(--text-mid); line-height: 1.85; margin-bottom: 18px; }

.check-list {
  list-style: none; margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--border);
  border-right: 3px solid var(--red); box-shadow: var(--shadow-sm);
}
body.lang-en .check-list li { border-right: none; border-left: 3px solid var(--red); }
.check-list li::before { content: '✓'; color: var(--red); font-weight: 900; font-size: 13px; flex-shrink: 0; }

/* Ecosystem */
.ecosystem { display: flex; justify-content: center; }
.eco-ring {
  width: 280px; height: 280px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.eco-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-center {
  width: 110px; height: 64px; border-radius: var(--r-md);
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--navy-mid), 0 0 30px rgba(215,38,78,.3);
  z-index: 2;
  padding: 8px 10px;
}
.eco-node {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  color: var(--navy); font-size: 11px; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: var(--tr); cursor: default;
}
.eco-node i { font-size: 18px; color: var(--red); margin-bottom: 2px; }
.eco-node:hover { background: var(--navy); color: var(--white); box-shadow: var(--shadow-navy); transform: scale(1.05); }
.eco-node:hover i { color: var(--red-bright); }
.eco-n1 { top: -8px;  left: 50%; transform: translateX(-50%); }
.eco-n2 { right: -8px; top: 50%; transform: translateY(-50%); }
.eco-n3 { bottom: -8px; left: 50%; transform: translateX(-50%); }
.eco-n4 { left: -8px;  top: 50%; transform: translateY(-50%); }

/* ── Features ──────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 32px 24px; transition: var(--tr);
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
html[dir="rtl"] .feat-card::before { transform-origin: right; }
.feat-card:hover { border-color: rgba(215,38,78,.3); transform: translateY(-4px); }
.feat-card:hover::before { transform: scaleX(1); }
.feat-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: rgba(215,38,78,.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feat-icon i { font-size: 22px; color: var(--red-bright); }
.feat-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.feat-card p  { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.75; }

/* ── User cards ────────────────────────────────────────── */
.users-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.user-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 2px solid var(--border); padding: 28px 22px;
  transition: var(--tr); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.user-card::after {
  content: attr(data-role);
  position: absolute; bottom: -24px; right: -8px;
  font-size: 72px; font-weight: 900; color: rgba(19,33,75,.04);
  font-family: var(--font-en); line-height: 1;
  text-transform: uppercase; pointer-events: none;
}
.user-card:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: var(--shadow-red); }
.uc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.uc-num { font-size: 11px; font-weight: 800; color: rgba(215,38,78,.35); font-family: var(--font-en); letter-spacing: 1px; }
.uc-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(215,38,78,.08);
  display: flex; align-items: center; justify-content: center; transition: var(--tr);
}
.uc-icon i { font-size: 22px; color: var(--red); transition: var(--tr); }
.user-card:hover .uc-icon { background: var(--red); }
.user-card:hover .uc-icon i { color: var(--white); }
.user-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.user-card p  { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.user-card ul { list-style: none; }
.user-card ul li {
  font-size: 12px; color: var(--text-mid); padding: 5px 0;
  border-bottom: 1px solid var(--light-bg2);
  display: flex; align-items: center; gap: 8px;
}
.user-card ul li:last-child { border-bottom: none; }
.user-card ul li::before { content: '›'; color: var(--red); font-weight: 900; font-size: 16px; }

/* ── Brand Identity ────────────────────────────────────── */
.brand-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.brand-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.brand-full { grid-column: span 2; }
.brand-card h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--navy); font-family: var(--font-en); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 2px solid var(--light-bg2);
}

/* Logo variants */
.logo-variants { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.lv {
  border-radius: var(--r-md); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
/* ── Background variants (HTML classes) ── */
.lv-dark-bg  { background: var(--navy-deep); border: 1.5px solid rgba(255,255,255,.08); }
.lv-white-bg { background: var(--navy-dark); border: 1.5px solid rgba(215,38,78,.2); }
.lv-red-bg   { background: linear-gradient(135deg,#c01040,#e8192c); }
/* ── Legacy CSS-only variants (keep for compat) ── */
.lv-white { background: var(--navy-dark);  border: 1.5px solid rgba(215,38,78,.2); }
.lv-navy  { background: var(--navy-deep);  }
.lv-red   { background: linear-gradient(135deg,#c01040,#e8192c); }
.lv span  { font-size: 11px; color: rgba(255,255,255,.5); text-align: center; }
.lv-dark-bg span, .lv-white-bg span, .lv-red-bg span,
.lv-navy span, .lv-red span { color: rgba(255,255,255,.55); }

/* Logo anatomy */
.logo-anatomy { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.logo-anatomy h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-mid); font-family: var(--font-en); margin-bottom: 16px;
}
.anatomy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.anatomy-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.anatomy-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--light-bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.anatomy-item span { font-size: 10px; color: var(--text-light); line-height: 1.3; }

/* Logo usage rules */
.logo-rules { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.lrule {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 12px; line-height: 1.5;
}
.lrule i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.lrule-do   { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.2); color: #166534; }
.lrule-do i { color: #16a34a; }
.lrule-dont   { background: rgba(215,38,78,.08); border: 1px solid rgba(215,38,78,.2); color: #9f1239; }
.lrule-dont i { color: var(--red); }
.section-dark .lrule-do   { color: rgba(134,239,172,.9); background: rgba(34,197,94,.08); }
.section-dark .lrule-dont { color: rgba(252,165,165,.9); background: rgba(215,38,78,.08); }

/* Color swatches */
.color-swatches { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cswatch { cursor: pointer; border-radius: var(--r-sm); overflow: hidden; transition: var(--tr); }
.cswatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cs-block { height: 68px; }
.cs-info  { background: var(--light-bg); padding: 9px 11px; }
.cs-info b    { display: block; font-size: 11px; color: var(--navy); font-weight: 700; }
.cs-info code { display: block; font-size: 11px; color: var(--red); font-family: var(--font-en); margin: 2px 0; font-weight: 600; }
.cs-info small{ display: block; font-size: 10px; color: var(--text-light); }

/* Typography */
.type-rows { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.type-row  { display: flex; gap: 16px; align-items: center; }
.type-preview {
  width: 110px; height: 72px; border-radius: var(--r-md);
  background: var(--light-bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 22px; font-weight: 900; color: var(--navy);
}
.outfit-preview { font-family: var(--font-en); }
.cairo-preview  { font-family: var(--font-ar); }
.cairo-preview span { font-size: 13px; color: var(--text-light); font-weight: 400; }
.type-meta strong { display: block; font-size: 15px; color: var(--navy); font-family: var(--font-en); }
.type-meta span   { display: block; font-size: 12px; color: var(--text-mid); margin: 4px 0 8px; }
.type-weights { display: flex; gap: 8px; flex-wrap: wrap; }
.tw { font-size: 11px; color: var(--text-mid); padding: 3px 9px; background: var(--light-bg2); border-radius: 4px; }
.type-specimen { border-top: 1px solid var(--light-bg2); padding-top: 16px; }
.ts-en { font-size: 12px; color: var(--text-light); line-height: 1.8; font-family: var(--font-en); }
.ts-ar { font-size: 12px; color: var(--text-light); line-height: 1.8; font-family: var(--font-ar); }

/* Icons */
.icons-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 12px; margin-bottom: 12px; }
.ig-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: var(--r-md);
  background: var(--light-bg); border: 1.5px solid transparent;
  transition: var(--tr); cursor: default;
}
.ig-item:hover { background: rgba(215,38,78,.06); border-color: rgba(215,38,78,.2); transform: translateY(-2px); }
.ig-item i    { font-size: 22px; color: var(--navy); }
.ig-item:hover i { color: var(--red); }
.ig-item span { font-size: 10px; color: var(--text-light); font-weight: 500; }

/* ── App Screens ───────────────────────────────────────── */
.screens-tabs {
  display: flex; gap: 6px; margin-bottom: 40px;
  border-bottom: 2px solid var(--light-bg2);
}
.stab {
  background: none; border: none; cursor: pointer;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  color: var(--text-light); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--tr);
  font-family: inherit;
}
.stab.active { color: var(--navy); border-bottom-color: var(--red); }
.stab:hover  { color: var(--navy); }
.tab-pane         { display: none; }
.tab-pane.active  { display: block; }

.flow-row { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.flow-step { flex: 1; min-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 10px; }
.fstep-num { font-size: 10px; font-weight: 800; color: var(--red); font-family: var(--font-en); letter-spacing: 1px; }
.flow-arrow { display: flex; align-items: center; justify-content: center; padding-top: 56px; color: var(--border); font-size: 18px; flex-shrink: 0; }
body.lang-en .flow-arrow { transform: rotate(180deg); }
.flow-step h5 { font-size: 13px; font-weight: 700; color: var(--navy); }
.flow-step p  { font-size: 11px; color: var(--text-light); line-height: 1.5; }

/* Mini phone mocks */
.fstep-mock { width: 90px; height: 160px; background: var(--navy-dark); border-radius: 14px; border: 1.5px solid rgba(255,255,255,.1); overflow: hidden; }
.fmock-screen { position: absolute; inset: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: flex-start; }
.fstep-mock  { position: relative; }

.fmock-screen.splash  { background: linear-gradient(135deg, var(--navy-deep), var(--navy-dark), #1a0a1e); justify-content: center; align-items: center; }
.fmock-splash { font-family: var(--font-en); font-size: 16px; font-weight: 900; color: var(--white); }
.fmock-splash b { color: var(--red); }
.fmock-screen.login   { background: var(--navy-dark); justify-content: center; gap: 6px; }
.fmock-field  { width: 70px; height: 10px; background: rgba(255,255,255,.1); border-radius: 4px; }
.fmock-btn    { width: 70px; height: 12px; background: var(--red); border-radius: 4px; margin-top: 4px; }
.navy-btn     { background: var(--navy-mid); }
.fmock-screen.home    { background: #060c1e; padding: 6px; gap: 4px; }
.fmock-banner { width: 100%; height: 36px; background: linear-gradient(135deg, var(--red), var(--red-dark)); border-radius: 6px; }
.fmock-cats   { display: flex; gap: 4px; }
.fmock-cats span { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.08); }
.fmock-cats span:first-child { background: var(--red); }
.fmock-prods  { display: flex; gap: 4px; }
.fmock-prods span { width: 36px; height: 44px; border-radius: 5px; background: rgba(255,255,255,.05); }
.fmock-screen.pending { background: var(--navy-dark); justify-content: center; gap: 8px; }
.fmock-line   { width: 60px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; }
.fmock-line.short { width: 40px; }
.fmock-screen.cart    { background: #060c1e; justify-content: center; gap: 5px; }
.fmock-cart-item { width: 70px; height: 14px; background: rgba(255,255,255,.07); border-radius: 4px; }
.fmock-screen.track   { background: var(--navy-dark); justify-content: center; }
.fmock-track  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ft-dot       { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ft-dot.done  { background: var(--red); }
.ft-line      { width: 2px; height: 14px; background: rgba(255,255,255,.1); border-radius: 1px; }
.ft-line.done { background: var(--red); }
.fmock-screen.orders  { background: #060c1e; justify-content: center; gap: 6px; }
.fmock-order-actions  { display: flex; gap: 8px; }
.foa-accept { width: 26px; height: 26px; border-radius: 50%; background: #16a34a; display: flex; align-items: center; justify-content: center; color: white; }
.foa-reject { width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: white; }
.fmock-prod-list { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.fmock-pl-item   { width: 100%; height: 14px; background: rgba(255,255,255,.07); border-radius: 4px; border-right: 3px solid var(--red); }
body.lang-en .fmock-pl-item { border-right: none; border-left: 3px solid var(--red); }
.fmock-screen.admin   { background: #06091a; justify-content: center; gap: 6px; }
.fadmin-stats { display: flex; gap: 4px; }
.fas-box      { width: 22px; height: 22px; border-radius: 4px; background: rgba(215,38,78,.25); }
.fadmin-chart { display: flex; align-items: flex-end; gap: 3px; height: 50px; padding: 0 4px; }
.fac-bar      { flex: 1; background: var(--red); border-radius: 2px 2px 0 0; min-height: 4px; }
.fadmin-slider { width: 60px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; position: relative; }
.fadmin-slider::after { content: ''; position: absolute; left: 35%; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.fadmin-merchant-list { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.faml-row { display: flex; align-items: center; gap: 5px; }
.faml-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.faml-dot.green  { background: #22c55e; }
.faml-dot.yellow { background: #f59e0b; }
.faml-bar  { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 3px; }

/* ── Download CTA ──────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 60%, #120820 100%);
  position: relative; overflow: hidden;
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; position: relative; z-index: 1; }
.cta-logo-svg { width: 200px; height: auto; margin-bottom: 20px; }

/* CTA logo block — ensure dark bg for logo visibility */
.cta-logo-block {
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,.07);
}
.cta-left h2 {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 900;
  color: var(--white); margin-bottom: 14px; font-family: var(--font-en);
}
.cta-left p { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 32px; max-width: 460px; }
.store-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); color: var(--navy);
  text-decoration: none; border-radius: var(--r-md);
  padding: 12px 22px; transition: var(--tr);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.12); }
.store-btn i      { font-size: 26px; color: var(--navy); }
.store-btn small  { display: block; font-size: 10px; color: var(--text-mid); font-family: var(--font-en); }
.store-btn strong { display: block; font-size: 16px; font-weight: 800; font-family: var(--font-en); }
.store-btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.25); }
.store-btn-outline:hover { background: rgba(255,255,255,.05); border-color: var(--red-bright); }
.store-btn-outline i      { color: var(--white); }
.store-btn-outline small  { color: rgba(255,255,255,.5); }
.store-btn-outline strong { color: var(--white); }
/* CTA visual gears */
.cta-visual { display: flex; align-items: center; justify-content: center; width: 180px; }
.cta-gear-ring { position: relative; width: 160px; height: 160px; }
.cta-gear-icon { position: absolute; color: rgba(215,38,78,.15); }
.g1 { font-size: 100px; top: 0; left: 0; animation: spin 12s linear infinite; }
.g2 { font-size: 60px; bottom: 10px; right: 0; animation: spin 8s linear infinite reverse; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ── Contact ───────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.contact-info   { display: flex; flex-direction: column; gap: 16px; }
.ci-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: var(--tr);
}
.ci-item:hover { border-color: rgba(215,38,78,.3); }
.ci-icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(215,38,78,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon i      { font-size: 18px; color: var(--red-bright); }
.ci-item strong { display: block; font-size: 13px; color: rgba(255,255,255,.8); font-weight: 700; }
.ci-item span   { display: block; font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.cf-group { display: flex; flex-direction: column; gap: 8px; }
.cf-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.cf-group input,
.cf-group textarea {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm); padding: 12px 16px;
  font-size: 14px; color: var(--white); font-family: inherit; resize: none; transition: var(--tr);
}
.cf-group input:focus,
.cf-group textarea:focus  { outline: none; border-color: var(--red); background: rgba(215,38,78,.04); }
.cf-group input::placeholder,
.cf-group textarea::placeholder { color: rgba(255,255,255,.25); }

/* ── Footer ────────────────────────────────────────────── */
#footer { background: var(--navy-deep); border-top: 1px solid rgba(215,38,78,.15); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 60px 0 48px;
}
.ft-logo-svg { margin-bottom: 14px; }

/* Ensure the footer logo block has sufficient space */
.ft-brand .logo-footer { display: block; }
.ft-brand p  { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; }
.ft-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px; font-family: var(--font-en);
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; transition: var(--tr); }
.ft-col ul li a:hover { color: var(--red-bright); }
.ft-social h5 { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-family: var(--font-en); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); text-decoration: none; font-size: 15px; transition: var(--tr);
  border: 1px solid rgba(255,255,255,.07);
}
.social-row a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px;
}

/* ── Back to top ───────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--red); color: var(--white); border: none; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: var(--tr); opacity: 0; pointer-events: none; box-shadow: var(--shadow-red);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover   { background: var(--red-dark); transform: translateY(-2px); }
body.lang-ar .back-top { right: auto; left: 28px; }

/* ── Scroll animations ─────────────────────────────────── */
[data-animate] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-phone         { display: none; }
  .features-grid      { grid-template-columns: repeat(2,1fr); }
  .users-grid         { grid-template-columns: repeat(2,1fr); }
  .brand-full         { grid-column: span 1; }
  .icons-grid         { grid-template-columns: repeat(4,1fr); }
  .footer-top         { grid-template-columns: 1fr 1fr; }
  .cta-visual         { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .btn-cta { display: none; }
  :root { --nav-h: 60px; }
  .hero-inner { padding-top: 32px; padding-bottom: 80px; }
  .about-layout   { grid-template-columns: 1fr; }
  .ecosystem      { display: none; }
  .check-list     { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .users-grid     { grid-template-columns: 1fr; }
  .brand-grid     { grid-template-columns: 1fr; }
  .brand-full     { grid-column: span 1; }
  .logo-variants  { grid-template-columns: 1fr; }
  .color-swatches { grid-template-columns: repeat(2,1fr); }
  .type-row       { flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .section        { padding: 64px 0; }
  .hero-actions   { flex-direction: column; }
  .btn-primary,.btn-ghost { width: 100%; justify-content: center; }
  .hero-stats     { flex-wrap: wrap; }
  .store-btns     { flex-direction: column; }
  .screens-tabs   { overflow-x: auto; }
  .stab           { white-space: nowrap; font-size: 13px; padding: 10px 14px; }
}
