@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =====================================================================
   DESIGN TOKENS — Exact Figma Palette
   ===================================================================== */
:root {
  --orange:        #FCB259;
  --orange-dark:   #DB9440;
  --orange-hover:  #e8a04e;
  --orange-10:     rgba(252, 178, 89, 0.1);
  --orange-20:     rgba(252, 178, 89, 0.2);
  --white:         #FFFFFF;
  --ebony:         #0B0F19;
  --oxford-blue:   #1A2332;
  --river-bed:     #4B5563;
  --pale-sky:      #6B7280;
  --gray-chateau:  #9CA3AF;
  --gray-border:   #D1D5DB;
  --mischka:       #D1D5DB;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --scandal:       #D1FAE5;
  --pattens-blue:  #DBEAFE;
  --fun-blue:      #3B82F6;
  --fun-blue-10:   rgba(59, 130, 246, 0.1);
  --success:       #16A34A;
  --error:         #EF4444;
  --warning:       #F59E0B;
  --max-w:         1280px;
  --nav-h:         80px;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   9999px;
  --shadow-sm:     0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md:     0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --transition:    all 0.3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =====================================================================
   RESET
   ===================================================================== */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body { font-family:var(--font); color:var(--river-bed); background:var(--white); line-height:1.5; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
button,input,textarea { font-family:inherit; border:none; outline:none; background:none; }
ul { list-style:none; }
h1,h2,h3,h4 { font-family:var(--font); color:var(--ebony); line-height:1.2; }
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea {
  font-family: 'Cairo', var(--font);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================================
   NAVBAR — transparent over hero, white on scroll
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-h);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 40px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img { height: 50px; width: auto; }
.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--ebony);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--ebony);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--orange); }

/* Transparent header styles for home page (when not scrolled over the dark hero image) */
.home-page .site-header:not(.scrolled) .logo-text,
.home-page .site-header:not(.scrolled) .nav-link {
  color: var(--white);
}
.home-page .site-header:not(.scrolled) .mobile-toggle span {
  background: var(--white);
}
.home-page .site-header:not(.scrolled) .nav-link:hover,
.home-page .site-header:not(.scrolled) .nav-link.active {
  color: var(--orange);
}
.nav-link.active::after {
  content:'';
  position:absolute;
  bottom:-2px; left:0;
  width:100%; height:2px;
  background:var(--orange);
  border-radius:var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-nav-cta {
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--orange-hover); }

.btn-help {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ebony);
  color: var(--white);
  display: flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 14px;
  font-style: italic; font-family: serif;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-help:hover { background: var(--orange); transform:scale(1.05); }

.mobile-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer;
}
.mobile-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ebony);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================================
   HERO SECTION
   Figma structure:
   - Section BG: warm gradient (cream → amber → orange)
   - Photo covers most of area, fades into gradient at bottom
   - Text content sits at bottom-left on the warm gradient
   ===================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #FDF8F3;
}

/* The photograph — covers the hero, brighter at top, with a dark bottom overlay
   to ensure white stats and text are legible against the pathway */
.hero-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0) 40%, rgba(11, 15, 25, 0.45) 85%, rgba(11, 15, 25, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Content positioned at the bottom-left of the hero */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 592px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--orange-20);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 16px;
}
.hero-title .accent {
  display: block;
  color: var(--orange-dark);
}

.hero-desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: rgba(255,255,255,0.95);
  max-width: 512px;
  margin-bottom: 24px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-primary svg { width:16px; height:16px; stroke:currentColor; fill:none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ebony);
  padding: 8px 28px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: var(--transition);
  background: rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,255,255,0.9); }

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.stat-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}
.stat-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--orange);
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bobble 2s infinite;
  transition: var(--transition);
}
.scroll-hint:hover {
  color: var(--white);
}
.scroll-hint svg { width:20px; height:20px; stroke:currentColor; fill:none; }

/* Sparkle Decoration at bottom right of hero */
.hero-sparkle {
  position: absolute;
  bottom: 40px;
  right: 48px;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
  animation: sparkle-glow 4s ease-in-out infinite;
}
@keyframes sparkle-glow {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 0.95; }
}

@keyframes bobble {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-6px); }
}

/* =====================================================================
   WHY CHOOSE COSMOS
   Figma BG: same warm gradient as hero section!
   linear-gradient(180deg, #FDF8F3 0%, #FFD9A8 49%, #FCB259 100%)
   ===================================================================== */
.why-section {
  background: linear-gradient(180deg, #FDF8F3 0%, #FFD9A8 49%, #FCB259 100%);
  padding: 80px 0;
}

.section-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.badge-orange {
  background: var(--orange-10);
  color: var(--orange-dark);
}
.badge-blue {
  background: var(--fun-blue-10);
  color: var(--fun-blue);
}

.why-header {
  text-align: center;
  margin-bottom: 48px;
}
.why-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--ebony);
  margin-bottom: 16px;
}
.why-header h2 em {
  color: var(--orange-dark);
  font-style: italic;
}
.why-header p {
  font-size: 16px;
  color: var(--river-bed);
  max-width: 580px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.fc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-10);
  color: var(--orange);
  display: flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.fc-icon svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:2; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--river-bed);
  line-height: 1.5;
}

.why-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.why-exo-wrap {
  position: relative;
  z-index: 2;
  /* White card behind exoskeleton (from Figma: white bg rounded) */
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.why-exo-wrap > img {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
}

.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: floaty 4s ease-in-out infinite;
}
.float-badge:nth-child(2) { animation-delay: 1.3s; }
.float-badge:nth-child(3) { animation-delay: 2.6s; }

.fb-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
}
.fb-icon svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2.5; }
.fb-green  { background: var(--scandal); color: #059669; }
.fb-blue   { background: var(--pattens-blue); color: #2563EB; }
.fb-orange { background: var(--orange-20); color: var(--orange); }

.float-badge span {
  font-size: 13px;
  font-weight: 700;
  color: var(--oxford-blue);
}
.fb-1 { top: 10%; left: -15%; }
.fb-2 { bottom: 25%; right: -15%; }
.fb-3 { bottom: 5%; left: -5%; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =====================================================================
   OUR PRODUCTS
   Figma BG: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%)
   ===================================================================== */
.products-section {
  background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
  padding: 80px 0;
}
.products-header {
  text-align: center;
  margin-bottom: 48px;
}
.products-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--ebony);
  margin-bottom: 16px;
}
.products-header h2 em {
  color: var(--orange);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}
.products-header h2 .text-gradient {
  background-image: linear-gradient(90deg, #00d8f6 0%, #1E3A8A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.lang-ar .products-header h2 .text-gradient {
  background-image: linear-gradient(90deg, #1E3A8A 0%, #00d8f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.products-header p {
  font-size: 16px;
  color: var(--river-bed);
  max-width: 580px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
/* Product card image area — Figma uses a neutral light gray background here */
.pc-img {
  aspect-ratio: 1/1;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.pc-img img {
  max-height: 80%;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 24px; }
.pc-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pc-body p {
  font-size: 14px;
  color: var(--river-bed);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--orange);
  cursor: pointer;
}
.pc-link svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  transition: var(--transition);
}
.product-card:hover .pc-link svg { transform: translateX(4px); }

.lang-ar .pc-link svg {
  transform: scaleX(-1);
}
.lang-ar .product-card:hover .pc-link svg {
  transform: scaleX(-1) translateX(4px); /* Because scaleX is -1, translateX(4px) moves it visually left */
}

/* =====================================================================
   SHARK TANK — Dark Ebony bg
   ===================================================================== */
.shark-section {
  background: var(--ebony);
  color: var(--white);
  padding: 80px 0;
}
.shark-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.shark-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.shark-video img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items:center; justify-content:center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(252,178,89,.6);
  animation: pulse-ring 2s infinite;
  border: none;
  transition: var(--transition);
}
.play-btn svg { width:28px; height:28px; fill:currentColor; margin-left:4px; }
.play-btn:hover { transform: scale(1.1); }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(252,178,89,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(252,178,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(252,178,89,0); }
}

.shark-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.shark-content h2 em {
  color: var(--orange);
  font-style: italic;
}
.shark-content p {
  font-size: 15px;
  color: var(--mischka);
  line-height: 1.7;
  margin-bottom: 16px;
}
.shark-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.ss-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
}
.ss-box:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.ss-icon { margin-bottom: 8px; display: flex; justify-content: center; align-items: center; height: 32px; }
.ss-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2.66667;
}
.ss-num { font-size: 24px; font-weight: 800; color: var(--white); }
.ss-label { font-size: 12px; color: var(--gray-chateau); margin-top: 4px; }

/* =====================================================================
   CTA — Orange bg (Figma uses similar warm gradient)
   ===================================================================== */
.cta-section {
  background: linear-gradient(180deg, #FCB259 0%, #F59E0B 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-inner > p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-white svg { width:16px; height:16px; stroke:currentColor; fill:none; }
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  padding: 8px 24px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); }
.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* =====================================================================
   FOOTER — Dark
   ===================================================================== */
.site-footer {
  background: var(--ebony);
  color: var(--white);
  padding: 56px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction:column; gap:14px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand-desc {
  font-size: 13px;
  color: var(--gray-chateau);
  line-height: 1.6;
}
.social-links { display:flex; gap:8px; }
.social-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--white);
  display: flex; align-items:center; justify-content:center;
  transition: var(--transition);
}
.social-btn:hover { background:var(--orange); transform:translateY(-2px); }
.social-btn svg { width:14px; height:14px; fill:currentColor; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--mischka); transition: var(--transition); }
.footer-links a:hover { color: var(--orange); padding-left:4px; }
.footer-contact { display:flex; flex-direction:column; gap:12px; }
.fc-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--mischka);
}
.fc-item svg {
  width:16px; height:16px;
  stroke:var(--orange); fill:none;
  flex-shrink:0; margin-top:2px; stroke-width:2;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--pale-sky);
}
.footer-legal { display:flex; gap:20px; }
.footer-legal a { color:var(--mischka); transition: var(--transition); }
.footer-legal a:hover { color:var(--orange); }

/* =====================================================================
   MODALS & DRAWERS
   ===================================================================== */
.help-drawer-overlay {
  position:fixed; inset:0;
  background:rgba(11,15,25,0.4);
  backdrop-filter:blur(4px);
  z-index:200; opacity:0; pointer-events:none;
  transition:opacity .3s;
}
.help-drawer-overlay.active { opacity:1; pointer-events:auto; }
.help-drawer {
  position:fixed; top:0; right:-440px;
  width:420px; height:100%;
  background:var(--white); z-index:210;
  box-shadow:-10px 0 40px rgba(0,0,0,.1);
  transition:right .4s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; overflow-y:auto;
}
.help-drawer.active { right:0; }
.drawer-header {
  padding:20px 24px;
  border-bottom:1px solid var(--gray-100);
  display:flex; justify-content:space-between; align-items:center;
}
.drawer-header h3 { font-size:20px; }
.close-btn {
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--pale-sky); transition:var(--transition);
}
.close-btn:hover { background:var(--gray-100); color:var(--ebony); }
.close-btn svg { width:18px; height:18px; stroke:currentColor; stroke-width:2.5; fill:none; }
.drawer-body { padding:24px; }
.help-block { margin-bottom:20px; }
.help-block h4 { font-size:15px; margin-bottom:8px; border-bottom:2px solid var(--orange-10); padding-bottom:4px; }
.help-block p, .help-block li { font-size:14px; color:var(--river-bed); line-height:1.6; }
.help-block ul { padding-left:16px; }
.help-block ul li { position:relative; padding-left:12px; margin-bottom:6px; }
.help-block ul li::before { content:'•'; color:var(--orange); font-weight:bold; position:absolute; left:0; }

.modal-overlay {
  position:fixed; inset:0;
  background:rgba(11,15,25,0.5); backdrop-filter:blur(6px);
  z-index:300; display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .3s; padding:24px;
}
.modal-overlay.active { opacity:1; pointer-events:auto; }
.modal-box {
  background:var(--white); border-radius:var(--radius-lg);
  width:100%; max-width:620px; max-height:90vh;
  display:flex; flex-direction:column;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.25);
  transform:scale(.92) translateY(20px);
  transition:transform .35s cubic-bezier(.4,0,.2,1); overflow:hidden;
}
.modal-overlay.active .modal-box { transform:scale(1) translateY(0); }
.modal-head {
  padding:20px 24px; border-bottom:1px solid var(--gray-100);
  display:flex; justify-content:space-between; align-items:center;
}
.modal-head h3 { font-size:20px; }
.modal-content { padding:24px; overflow-y:auto; }

.spec-table { width:100%; border-collapse:collapse; margin:16px 0; border-radius:var(--radius-sm); overflow:hidden; }
.spec-table th, .spec-table td { padding:12px 16px; text-align:left; font-size:14px; border-bottom:1px solid var(--gray-100); }
.spec-table th { background:var(--gray-50); font-weight:700; color:var(--ebony); }

.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group.full { grid-column:1/span 2; }
.form-group label { font-size:13px; font-weight:600; color:var(--ebony); }
.form-input {
  width:100%; padding:10px 14px;
  border:1.5px solid var(--gray-border); border-radius:var(--radius-sm);
  background:var(--gray-50); font-size:14px; transition:var(--transition);
}
.form-input:focus { border-color:var(--orange); background:var(--white); box-shadow:0 0 0 3px var(--orange-10); }
textarea.form-input { min-height:90px; resize:vertical; }
.btn-submit {
  width:100%; background:var(--orange); color:var(--white);
  font-weight:600; padding:12px; border-radius:var(--radius-sm);
  cursor:pointer; font-size:14px; transition:var(--transition);
}
.btn-submit:hover { background:var(--orange-hover); }

/* =====================================================================
   TOASTS
   ===================================================================== */
.toast-container {
  position:fixed; bottom:24px; right:24px;
  display:flex; flex-direction:column; gap:10px;
  z-index:400; max-width:360px; width:100%;
}
.toast {
  background:var(--white); border-radius:var(--radius-md);
  box-shadow:0 10px 25px rgba(0,0,0,.12);
  padding:16px; display:flex; align-items:flex-start; gap:12px;
  transform:translateX(40px); opacity:0;
  animation:toastSlide .35s forwards;
  border-left:4px solid transparent;
}
.toast-success { border-left-color:var(--success); }
.toast-error   { border-left-color:var(--error); }
.toast-warning { border-left-color:var(--warning); }
.toast-icon { font-size:18px; margin-top:1px; }
.toast-success .toast-icon { color:var(--success); }
.toast-error .toast-icon   { color:var(--error); }
.toast-warning .toast-icon { color:var(--warning); }
.toast-body { flex:1; }
.toast-title { font-weight:700; font-size:14px; color:var(--ebony); margin-bottom:2px; }
.toast-msg   { font-size:13px; color:var(--river-bed); }
.toast-x { background:none; border:none; color:var(--pale-sky); cursor:pointer; font-size:16px; padding:2px; transition:var(--transition); }
.toast-x:hover { color:var(--ebony); }
@keyframes toastSlide { to { transform:translateX(0); opacity:1; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width:1024px) {
  .hero-title { font-size: 56px; }
  .hero-desc { font-size: 18px; line-height: 26px; }
  .why-grid { gap: 32px; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width:768px) {
  .mobile-toggle { display:flex; }
  .nav-links {
    position:fixed; top:var(--nav-h); left:-100%;
    width:100%; height:calc(100vh - var(--nav-h));
    background:var(--white); flex-direction:column;
    padding:48px 24px; gap:24px;
    transition:var(--transition); z-index:99;
  }
  .nav-links.active { left:0; }
  .hero-title { font-size: 44px; }
  .hero-desc { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { order: -1; }
  .products-grid { grid-template-columns: 1fr; max-width:400px; margin:0 auto; }
  .shark-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction:column; align-items:center; }
  .form-grid { grid-template-columns:1fr; }
  .form-group.full { grid-column:1; }
  .help-drawer { width:100%; max-width:360px; }
}
@media (max-width:480px) {
  .hero-title { font-size: 36px; }
  .hero-stats { flex-wrap:wrap; gap:20px; }
  .feature-cards { grid-template-columns:1fr; }
  .shark-stats { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .footer-bottom { flex-direction:column; gap:12px; text-align:center; }
  .footer-legal { justify-content:center; }
}

/* =====================================================================
   ARABIC TEXT DIRECTION (RTL text only — layout stays LTR)
   Elements positions, grids, navbars, arrows never flip.
   Only text content reads right-to-left.
   ===================================================================== */

/* All translatable text elements read right-to-left */
.lang-ar [data-i18n] {
  direction: rtl;
}

/* Block-level text containers and headings read right-to-left and align right */
.lang-ar p:not(footer *),
.lang-ar h1:not(footer *),
.lang-ar h2:not(footer *),
.lang-ar h3:not(footer *),
.lang-ar h4:not(footer *),
.lang-ar h5:not(footer *),
.lang-ar h6:not(footer *),
.lang-ar li:not(footer *),
.lang-ar label:not(footer *),
.lang-ar .spec-table th,
.lang-ar .spec-table td {
  direction: rtl;
  text-align: right;
}

/* Specific styling for inputs & textareas under lang-ar */
.lang-ar .form-input,
.lang-ar textarea {
  direction: rtl;
  text-align: right;
}

/* Preserve text alignment for explicitly centered blocks */
.lang-ar .why-header h2,
.lang-ar .why-header p,
.lang-ar .products-header h2,
.lang-ar .products-header p,
.lang-ar .cta-section h2,
.lang-ar .cta-section p,
.lang-ar .ss-box h3,
.lang-ar .ss-box p,
.lang-ar .ss-box span,
.lang-ar .ss-box div {
  text-align: center;
}

/* Ensure buttons, badges, and navigation links remain centered/naturally aligned */
.lang-ar .btn,
.lang-ar .btn-submit,
.lang-ar .nav-link,
.lang-ar .section-badge,
.lang-ar .hero-badge,
.lang-ar .float-badge {
  text-align: center;
}

/* Keep hero text aligned to the left matching the English layout (since layout is not flipped) */
.lang-ar h1.hero-title {
  text-align: left;
  direction: ltr;
}
.lang-ar p.hero-desc {
  text-align: left;
}

/* Force English font (Inter) for brand name, logo text, and copyright text in Arabic layout */
html[lang="ar"] .logo-text,
html[lang="ar"] .hero-title,
html[lang="ar"] .footer-bottom p {
  font-family: var(--font) !important;
}

/* =====================================================================
   PRODUCTS PAGE SPECIFIC STYLES
   ===================================================================== */

.products-hero {
  padding: 160px 0 60px 0;
  background: radial-gradient(circle at top right, var(--orange-10) 0%, transparent 40%),
              radial-gradient(circle at bottom left, var(--fun-blue-10) 0%, transparent 40%);
}
.products-hero .hero-desc {
  max-width: 680px;
  margin: 16px auto 0 auto;
  font-size: 18px;
  color: var(--pale-sky);
  line-height: 28px;
}

.products-tabs-section {
  padding: 20px 0 80px 0;
}

.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.tabs-list {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-pill);
}

.tab-btn {
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--river-bed);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--orange);
}
.tab-btn.active {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(252, 178, 89, 0.25);
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-image-container {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  transition: var(--transition);
}
.product-image-container:hover {
  transform: scale(1.01);
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-details {
  display: flex;
  flex-direction: column;
}

.product-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.product-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ebony);
  margin-bottom: 20px;
}

.product-description {
  font-size: 16px;
  color: var(--river-bed);
  line-height: 28px;
  margin-bottom: 36px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--white);
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.spec-icon {
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.spec-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--ebony);
}

.spec-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--pale-sky);
  margin-bottom: 0;
}

.spec-sub {
  font-size: 11px;
  color: var(--pale-sky);
}

.key-features-container {
  border-top: 1px solid var(--gray-border);
  padding-top: 32px;
  margin-top: 12px;
}

.features-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ebony);
  margin-bottom: 28px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--river-bed);
  line-height: 20px;
}

.checkmark-icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-extra-section {
  margin-top: 80px;
  border-top: 1px solid var(--gray-border);
  padding-top: 60px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.state-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.state-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFF7ED;
  border: none;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.state-icon svg {
  width: 28px;
  height: 28px;
}

.state-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ebony);
  margin-bottom: 12px;
}

.state-card p {
  font-size: 14px;
  color: var(--river-bed);
  line-height: 22px;
}

/* Cosmos Kids Section styles */
.section-header-box {
  max-width: 680px;
  margin: 0 auto 40px auto;
}
.section-desc {
  font-size: 16px;
  color: var(--pale-sky);
  margin-top: 12px;
}

.conditions-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.condition-pill {
  background: var(--gray-100);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--river-bed);
  transition: var(--transition);
}
.condition-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.benefit-num {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(252, 178, 89, 0.08);
  line-height: 1;
  user-select: none;
}

.benefit-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ebony);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  line-height: 24px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--pale-sky);
  line-height: 22px;
  position: relative;
  z-index: 1;
}

/* Neuromotor Disorders (Limb page detail) */
.neuromotor-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}
.neuromotor-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ebony);
  margin-bottom: 20px;
  line-height: 36px;
}
.neuromotor-desc {
  font-size: 16px;
  color: var(--river-bed);
  line-height: 28px;
}

/* =====================================================================
   SHARED PRODUCTS SMART CONTROL SECTION (DARK BLUE)
   ===================================================================== */
.products-app-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #1D48A5 0%, #102E6D 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.products-app-section::before {
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(252, 178, 89, 0.05) 0%, transparent 70%);
  z-index: 1;
}

.app-inner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.app-title-h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin: 12px 0 24px 0;
}

.app-desc-text {
  font-size: 16px;
  color: var(--gray-chateau);
  line-height: 28px;
  margin-bottom: 44px;
}

.app-features-vertical {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-feat-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-feat-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(252, 178, 89, 0.1);
  border: 1px solid var(--orange);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.app-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #00F0FF;
  box-shadow: none;
  transition: all 0.3s ease;
}

.app-feat-row:hover .app-feat-icon {
  transform: scale(1.08);
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.app-feat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
}

.app-download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 12px;
  padding: 10px 20px;
  color: #102E6D;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.btn-download:hover {
  background: #F3F4F6;
  border-color: #F3F4F6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-download svg {
  color: #102E6D;
  transition: all 0.3s ease;
}

.btn-download:hover svg {
  color: #102E6D;
}

.btn-download .btn-download-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-download .btn-subtitle {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(16, 46, 109, 0.6);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-download .btn-title {
  font-size: 15px;
  font-weight: 700;
  color: #102E6D;
}

.lang-ar .btn-download {
  direction: ltr;
  text-align: left;
}


.app-feat-info {
  flex: 1;
  text-align: left;
}

.app-feat-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  text-align: left;
}

.app-feat-info p {
  font-size: 14px;
  color: var(--pale-sky);
  line-height: 20px;
  text-align: left;
}

.app-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Premium CSS-based Phone Mockup */
.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 310px;
  height: 620px;
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 40px;
  border: 12px solid #22252a;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
  position: relative;
  padding: 14px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: #333;
  border-radius: var(--radius-pill);
  z-index: 10;
}

.phone-screen {
  flex: 1;
  background: #F3F4F6; /* Clean light gray-blue background exactly like Figma */
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
}

.phone-app-title-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-menu-icon {
  width: 14px;
  height: 14px;
  color: #1E3A8A;
}

.phone-app-title {
  font-size: 11px;
  font-weight: 700;
  color: #1E3A8A;
  font-family: var(--font-secondary);
}

.phone-battery-status {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #DCFCE7; /* Solid green light bg */
  color: #166534; /* Dark green text */
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.phone-battery-icon {
  width: 10px;
  height: 10px;
}

.phone-app-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Gait Analysis section */
.gait-analysis-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.gait-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 4px 0;
  font-family: var(--font-secondary);
}

.gait-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gait-chart-card {
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-label {
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 2px;
}

.chart-label.text-blue {
  color: #2563EB;
}

.chart-label.text-orange {
  color: #EA580C;
}

.chart-visual {
  width: 100%;
  height: 52px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-footer-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.footer-lbl {
  font-size: 8px;
  font-weight: 600;
  color: #6B7280;
}

/* Metrics List row */
.app-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-metric-row {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #F3F4F6;
  transition: all 0.2s ease;
}

.app-metric-row:hover {
  transform: translateY(-1px);
  border-color: #E5E7EB;
}

.metric-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-icon {
  width: 14px;
  height: 14px;
}

.row-icon.text-blue {
  color: #3B82F6;
}

.row-icon.text-orange {
  color: #F97316;
}

.row-icon.text-green {
  color: #10B981;
}

.metric-row-label {
  font-size: 11px;
  font-weight: 600;
  color: #4B5563;
}

.metric-row-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-row-value {
  font-size: 11px;
  font-weight: 700;
  color: #1F2937;
}

.row-arrow {
  width: 10px;
  height: 10px;
  color: #9CA3AF;
}

/* Settings section */
.app-settings-section {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
  font-family: var(--font-secondary);
}

.setting-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.setting-item-row.flex-column {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.setting-item-label {
  font-size: 10px;
  font-weight: 600;
  color: #4B5563;
}

.assistance-pills {
  display: flex;
  background: #F3F4F6;
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.pill-btn {
  font-size: 8px;
  font-weight: 600;
  color: #4B5563;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.slider-value {
  font-size: 9px;
  font-weight: 700;
  color: #2563EB;
}

.custom-slider {
  width: 100%;
  padding: 6px 0;
}

.slider-track {
  width: 100%;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  position: relative;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: #2563EB;
  border-radius: 2px;
}

.slider-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border: 2px solid #2563EB;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch {
  width: 32px;
  height: 18px;
  background: #E5E7EB;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease;
}

.toggle-switch.active {
  background: #EA580C; /* Orange toggle active */
}

.toggle-thumb {
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch.active .toggle-thumb {
  left: 16px;
}

/* Action Buttons Stand Up / Sit Down */
.app-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.app-btn {
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
}

.app-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

.btn-stand-up {
  background: #2563EB;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-stand-up:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.btn-sit-down {
  background: #EA580C;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

.btn-sit-down:hover {
  background: #C2410C;
  transform: translateY(-1px);
}

.phone-home-indicator {
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 4px;
  background: #333;
  border-radius: var(--radius-pill);
  z-index: 10;
}

/* =====================================================================
   SHARED PRODUCTS CTA SECTION (LIGHT)
   ===================================================================== */
.products-cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #FCB259 0%, #E9923B 100%);
  border-bottom: none;
  text-align: center;
}
.products-cta-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
}
.products-cta-section .cta-desc {
  max-width: 720px;
  margin: 16px auto 36px auto;
  font-size: 18px;
  color: var(--white);
  opacity: 0.9;
  line-height: 28px;
}
.btn-cta-white {
  background: var(--white) !important;
  color: var(--orange) !important;
  font-size: 16px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--white) !important;
}
.btn-cta-white svg {
  width: 12px;
  height: 12px;
  stroke: var(--orange) !important;
  fill: none;
  stroke-width: 3;
  transition: transform 0.2s ease;
}
.btn-cta-white:hover svg {
  transform: translateX(3px);
}

/* =====================================================================
   PRODUCTS RESPONSIVE MEDIA QUERIES
   ===================================================================== */
@media (max-width: 1024px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-image-container {
    height: 420px;
  }
  .app-inner-grid {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .products-hero {
    padding: 120px 0 40px 0;
  }
  .products-hero h1 {
    font-size: 36px;
  }
  .products-hero .hero-desc {
    font-size: 16px;
  }
  .product-image-container {
    height: 320px;
    padding: 20px;
  }
  .product-title {
    font-size: 28px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .features-list {
    flex-direction: column;
  }
  .states-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .app-inner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .app-visual {
    order: -1; /* Display app mockup above features list on mobile */
  }
  .app-title-h2 {
    font-size: 28px;
  }
  .products-cta-section h2 {
    font-size: 28px;
  }
}

/* =====================================================================
   PRODUCTS ARABIC RTL ALIGNMENT
   ===================================================================== */
.lang-ar .spec-info {
  align-items: flex-start;
}
.lang-ar .benefit-num {
  left: 20px;
  right: auto;
}
.lang-ar .phone-header {
  flex-direction: row-reverse;
}
.lang-ar .phone-status-icons {
  flex-direction: row-reverse;
}
.lang-ar .app-user-profile {
  flex-direction: row-reverse;
}
.lang-ar .app-user-info {
  align-items: flex-end;
  text-align: right;
}
.lang-ar .session-card-header {
  flex-direction: row-reverse;
}
.lang-ar .session-card-body-text {
  text-align: right;
  direction: rtl;
}

.lang-ar .features-list li {
  direction: ltr !important;
}
.lang-ar .features-list li span {
  direction: rtl !important;
  text-align: right;
  font-family: 'Cairo', sans-serif !important;
}

.lang-ar .app-feat-info {
  text-align: right;
  direction: rtl;
}

.lang-ar .app-feat-info h4,
.lang-ar .app-feat-info p {
  text-align: right !important;
  direction: rtl !important;
}



/* ===== FIGMA MATCHING STYLES ===== */

.bg-deep-blue { background-color: #1E40AF !important; }
.text-cyan { color: #00E5FF !important; }
.text-orange { color: var(--orange) !important; }
.text-center { text-align: center !important; }
.text-white { color: var(--white) !important; }
.bg-light-orange { background-color: #FFF7ED !important; }
.bg-light-gray { background-color: #F3F4F6 !important; }
.bg-light-gray-box { background-color: #F9FAFB !important; border-radius: 16px; padding: 24px; }
.text-blue { color: #1E3A8A !important; }

/* Badges */
.badge-orange { background-color: #FFF7ED; color: var(--orange); border: 1px solid #FFEDD5; }
.badge-blue-light { background-color: #E0F2FE; color: #0369A1; }
.badge-translucent { background-color: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Tabs container pill */
.products-tabs-section { padding-top: 20px; }
.tabs-container { display: flex; justify-content: center; margin-bottom: 40px; }
.tabs-list { background: #F3F4F6; border-radius: 50px; padding: 6px; display: inline-flex; gap: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.tab-btn { background: transparent; color: #4B5563; border-radius: 50px; padding: 12px 24px; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-primary); }
.tab-btn:hover:not(.active) { color: var(--orange); }
.tab-btn.active { background: var(--orange); color: white; box-shadow: 0 4px 10px rgba(239, 108, 0, 0.3); }

/* Product subtitle */
.product-subtitle { display: block; font-size: 1.25rem; font-weight: 500; margin-bottom: 15px; font-family: var(--font-primary); }
.product-title { margin-bottom: 5px; font-weight: 700; color: var(--dark-bg); font-family: var(--font-secondary); }

/* Spec Cards - Figma Matching */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--white);
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.spec-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(252, 178, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange) !important;
  margin-bottom: 4px;
}
.spec-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.spec-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spec-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1F2937;
  line-height: 1.2;
  margin-bottom: 2px;
}
.spec-label {
  font-size: 0.85rem;
  color: #6B7280;
  font-weight: 500;
}

/* Button Demo - Figma High Fidelity */
.btn-demo {
  background-color: var(--orange) !important;
  color: white !important;
  border-radius: 50px !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 12px 28px !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin-top: 32px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(252, 178, 89, 0.15) !important;
}
.btn-demo:hover {
  background-color: var(--orange-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(252, 178, 89, 0.3) !important;
}
.btn-demo svg {
  transition: transform 0.2s ease;
}
.btn-demo:hover svg {
  transform: translateX(3px);
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}
@media (max-width: 576px) {
  .specs-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

/* Premium Heading and Card Enhancements */
.states-section .section-title,
.modes-section .section-title {
  text-align: center !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--ebony);
  margin-bottom: 32px !important;
  width: 100% !important;
  display: block !important;
}

/* Ensure centered elements stay centered in Arabic (Rule #2) */
.lang-ar .text-center,
.lang-ar .text-center h1,
.lang-ar .text-center h2,
.lang-ar .text-center h3,
.lang-ar .text-center h4,
.lang-ar .text-center h5,
.lang-ar .text-center h6,
.lang-ar .section-header-box.text-center h3 {
  text-align: center !important;
}

/* Conditions Grid & Cards (Cosmos Kids) */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.condition-card {
  background: var(--white);
  padding: 18px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  border: none;
}
.condition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.cond-emoji {
  font-size: 20px;
  display: inline-block;
}
.cond-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ebony);
}

@media (max-width: 991px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}
@media (max-width: 576px) {
  .conditions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

/* =====================================================================
   ABOUT US PAGE — ARABIC TEXT ALIGNMENT OVERRIDES (Rule #2)
   ===================================================================== */
.lang-ar .restoring-mobility-transformi-container,
.lang-ar .the-cosmos-exoskeleton,
.lang-ar .a-world-where,
.lang-ar .pushing-the-boundaries,
.lang-ar .robotic-technology-for-container,
.lang-ar .the-lightest-device-container,
.lang-ar .our-vision,
.lang-ar .innovation,
.lang-ar .partner-with-us,
.lang-ar .button-label {
  direction: rtl;
}

.lang-ar .restoring-mobility-transformi-container,
.lang-ar .the-cosmos-exoskeleton,
.lang-ar .a-world-where,
.lang-ar .our-vision,
.lang-ar .pushing-the-boundaries:not(.liflex *),
.lang-ar .the-lightest-device-container {
  text-align: right;
}

.lang-ar .robotic-technology-for-container,
.lang-ar .we-create-innovative,
.lang-ar .partner-with-us {
  text-align: center;
}

.lang-ar .divmin-h-screen,
.lang-ar .divmin-h-screen * {
  font-family: 'Cairo', var(--font) !important;
}

.lang-ar .m {
  font-family: var(--font) !important;
}

/* تصحيح وراثة الألوان والخطوط للعناوين في صفحة من نحن */
.divmin-h-screen h1,
.divmin-h-screen h2,
.divmin-h-screen h3,
.divmin-h-screen h4 {
  color: inherit;
  font-family: inherit;
}


