/* ═══════════════════════════════════════════
   VexiPro ERP — Landing Page 2026
   Author: Kiro AI
════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────── */
:root {
  --navy:       #0D1B3E;
  --navy-mid:   #1E3A6E;
  --navy-light: #2A4F8F;
  --gold:       #C9A84C;
  --gold-light: #E8C96B;
  --gold-dark:  #A8872A;
  --white:      #FFFFFF;
  --off-white:  #F8F9FC;
  --text:       #1A202C;
  --text-muted: #64748B;
  --border:     #E2E8F0;
  --card-bg:    #FFFFFF;
  --body-bg:    #F8F9FC;
  --nav-bg:     rgba(248,249,252,0.92);
  --shadow-sm:  0 2px 8px rgba(13,27,62,0.08);
  --shadow-md:  0 8px 32px rgba(13,27,62,0.12);
  --shadow-lg:  0 20px 60px rgba(13,27,62,0.18);
  --radius:     16px;
  --radius-lg:  24px;
  --transition: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --white:      #0D1B3E;
  --off-white:  #0A1628;
  --text:       #E2E8F0;
  --text-muted: #94A3B8;
  --border:     #1E3A6E;
  --card-bg:    #111F40;
  --body-bg:    #080F1F;
  --nav-bg:     rgba(8,15,31,0.92);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', 'Plus Jakarta Sans', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

[lang="en"] body,
[lang="en"] h1, [lang="en"] h2, [lang="en"] h3,
[lang="en"] p, [lang="en"] span, [lang="en"] a, [lang="en"] button,
[lang="en"] input, [lang="en"] textarea, [lang="en"] select {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Utility ───────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.outline { -webkit-text-stroke: 2px var(--gold); color: transparent; }
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(30,58,110,0.1));
  border: 1px solid rgba(201,168,76,0.3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }

/* ══════════════════════════════════════════
   LOADER — Redesigned 2026
══════════════════════════════════════════ */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader-overlay.hide {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* Stages */
.loader-stage {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  width: 100%;
}

/* ── Math Card Stage ── */
.loader-math-card {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 48px 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  min-width: 340px;
}
.math-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
}
.loader-math-row {
  display: flex; align-items: center; gap: 16px;
  font-size: 2.8rem; font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.math-num {
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.math-num.show { opacity: 1; transform: translateY(0); }
.math-op {
  color: var(--gold);
  font-size: 2rem;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.math-op.show { opacity: 1; }
.math-eq-sign {
  color: rgba(255,255,255,0.3);
  font-size: 2rem;
}
.math-ans-box {
  min-width: 72px; height: 72px;
  border-radius: 14px;
  border: 2px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 900;
  color: var(--gold);
  background: rgba(201,168,76,0.07);
  position: relative; overflow: hidden;
}
.math-ans-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.math-ans-box.solved::after { opacity: 1; }
#math-ans-text {
  transition: all 0.4s var(--transition);
  display: block;
}
#math-ans-text.pop {
  animation: answerPop 0.5s var(--transition) forwards;
}
@keyframes answerPop {
  0%   { transform: scale(0.5) rotateX(90deg); opacity: 0; }
  60%  { transform: scale(1.2) rotateX(-10deg); opacity: 1; }
  100% { transform: scale(1) rotateX(0deg); opacity: 1; }
}

/* Math card exit animation */
.loader-math-card.exit {
  animation: mathCardExit 0.6s var(--ease) forwards;
}
@keyframes mathCardExit {
  0%   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.15) translateY(-30px); filter: blur(8px); }
}

/* ── Logo Stage ── */
.loader-logo-reveal {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.loader-logo-main {
  width: 0px; height: auto;
  filter: drop-shadow(0 0 0px rgba(201,168,76,0));
  transition: none;
  position: relative; z-index: 2;
}
.loader-logo-main.animate-in {
  animation: logoGrowIn 1.2s var(--transition) forwards;
}
@keyframes logoGrowIn {
  0%   { width: 0px;   opacity: 0; filter: drop-shadow(0 0 0 rgba(201,168,76,0)); }
  25%  { width: 80px;  opacity: 0.5; }
  55%  { width: 280px; opacity: 1;  filter: drop-shadow(0 0 60px rgba(201,168,76,0.9)); }
  75%  { width: 230px; }
  88%  { width: 255px; filter: drop-shadow(0 0 30px rgba(201,168,76,0.6)); }
  100% { width: 240px; opacity: 1; filter: drop-shadow(0 0 28px rgba(201,168,76,0.45)); }
}

.loader-logo-ring {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.3);
  opacity: 0;
  z-index: 1;
}
.loader-logo-ring.animate {
  animation: ringExpand 1s var(--ease) 0.3s forwards;
}
@keyframes ringExpand {
  from { transform: scale(0.3); opacity: 0; }
  60%  { opacity: 0.6; }
  to   { transform: scale(1); opacity: 0.2; }
}

.loader-logo-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.25), transparent 70%);
  opacity: 0;
  z-index: 0;
}
.loader-logo-glow.animate {
  animation: glowPulse 1.4s ease-in-out 0.2s forwards;
}
@keyframes glowPulse {
  0%   { opacity: 0; transform: scale(0.5); }
  50%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.5; transform: scale(1); }
}

/* Logo stage full entrance */
#loaderStageLogo {
  transform: scale(0.8);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
#loaderStageLogo.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: scale(1);
}

/* Loader exit */
.loader-overlay.exit-fade {
  animation: loaderFadeOut 0.7s var(--ease) forwards;
}
@keyframes loaderFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 8px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.navbar.scrolled {
  padding: 6px 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 88px; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--border); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-lang {
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.btn-lang:hover { border-color: var(--gold); color: var(--gold); }

.btn-theme {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem;
  transition: all 0.2s var(--ease);
}
.btn-theme:hover { border-color: var(--gold); color: var(--gold); }

.btn-cta-nav {
  padding: 8px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #ffffff; font-size: 0.88rem; font-weight: 600;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(13,27,62,0.25);
}
.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,27,62,0.35);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #ffffff;
}
[data-theme="dark"] .btn-cta-nav {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
[data-theme="dark"] .btn-cta-nav:hover {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  color: #ffffff;
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; width: 36px; height: 36px; justify-content: center;
}
.nav-hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--body-bg) 0%, var(--off-white) 100%);
}
.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--navy-mid), transparent);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold), transparent);
  bottom: -80px; left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--navy-light), transparent);
  top: 50%; left: 30%;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
  font-size: 0.82rem; font-weight: 600;
  color: var(--gold); margin-bottom: 24px;
  animation: fadeSlideUp 0.8s var(--ease) 0.5s both;
}
.hero-badge i { font-size: 1rem; }

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 24px; display: flex; flex-direction: column;
}
.hero-title .line-1 { animation: fadeSlideUp 0.8s var(--ease) 0.6s both; }
.hero-title .line-2 { animation: fadeSlideUp 0.8s var(--ease) 0.7s both; }

.hero-desc {
  font-size: 1.1rem; color: var(--text-muted); max-width: 520px;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.8s var(--ease) 0.8s both;
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideUp 0.8s var(--ease) 0.9s both;
}
.btn-primary {
  padding: 14px 32px; border-radius: 12px;
  background: linear-gradient(135deg, #2A4F8F, #1E3A6E);
  color: #ffffff;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(13,27,62,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,27,62,0.45);
  background: linear-gradient(135deg, #A8872A, #C9A84C);
  color: #ffffff;
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #C9A84C, #E8C96B);
  color: #0D1B3E;
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #2A4F8F, #1E3A6E);
  color: #ffffff;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  border: 1.5px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 1rem;
  transition: all 0.3s var(--ease);
}
[data-theme="dark"] .btn-ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost i { font-size: 1.3rem; color: var(--gold); }
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-ghost:hover {
  color: #ffffff;
}

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeSlideUp 0.8s var(--ease) 1s both;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeSlideLeft 1s var(--ease) 0.6s both;
  z-index: 2;
}

/* ── Hero Image Slider ── */
.hero-img-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--navy-mid);
}
.his-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.his-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.his-slide.active {
  opacity: 1;
  z-index: 1;
}
.his-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.his-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(13,27,62,0.88) 0%, transparent 100%);
  display: flex; align-items: center; gap: 10px;
  color: white; font-size: 0.95rem; font-weight: 600;
  transform: translateY(8px); opacity: 0;
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
  z-index: 2;
}
.his-slide.active .his-caption {
  transform: translateY(0);
  opacity: 1;
}
.his-caption i { font-size: 1.2rem; color: rgba(255,255,255,0.9); flex-shrink: 0; }
.his-dots {
  position: absolute; bottom: 16px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.his-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.45);
  transition: all 0.35s ease;
  border: none; cursor: pointer; padding: 0;
}
.his-dot.active { background: white; width: 24px; }
.his-progress { display: none; }
.hero-img-slider::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,62,0.15) 0%, transparent 55%);
  z-index: 3; pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
  z-index: 10;
}
.floating-card i { font-size: 1.1rem; color: var(--gold); }
.fc-1 { bottom: -20px; left: -30px; animation-delay: 0s; }
.fc-2 { top: -16px; right: -20px; animation-delay: 2s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
  animation: fadeSlideUp 1s var(--ease) 1.5s both;
}
.scroll-line {
  width: 2px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features { background: var(--body-bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s var(--ease);
  opacity: 0; transform: translateY(30px);
  position: relative; overflow: hidden;
  cursor: default;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon-wrap {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  transition: all 0.3s var(--transition);
}
/* Gold variant */
.feature-icon-wrap.fi-gold {
  background: rgba(201,168,76,0.13);
  border: 1.5px solid rgba(201,168,76,0.35);
  color: #B8922A;
}
[data-theme="dark"] .feature-icon-wrap.fi-gold {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold-light);
}
/* Navy variant — fully visible in both modes */
.feature-icon-wrap.fi-navy {
  background: rgba(30,58,110,0.10);
  border: 1.5px solid rgba(30,58,110,0.28);
  color: #1E3A6E;
}
[data-theme="dark"] .feature-icon-wrap.fi-navy {
  background: rgba(100,150,255,0.12);
  border-color: rgba(100,150,255,0.25);
  color: #7EB3FF;
}
.feature-icon-wrap.fi-gold i,
.feature-icon-wrap.fi-navy i {
  font-size: 1.7rem;
}
/* In light mode override color-mix fallbacks */
[data-theme="light"] .feature-icon-wrap[style] {
  background: rgba(30,58,110,0.10) !important;
  border-color: rgba(30,58,110,0.28) !important;
  color: #1E3A6E !important;
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════
   SLIDER — Screenshots (fade style like hero)
══════════════════════════════════════════ */
.slider-section { background: var(--off-white); }
.slider-track-wrapper {
  position: relative;
  padding-bottom: 60px;
}
.slider-track {
  /* each .slide is absolutely stacked — no flex needed */
  position: relative;
  width: 100%;
  min-height: 600px;
  touch-action: pan-y;   /* allow vertical scroll, capture horizontal swipe */
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0 24px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  inset: auto;
}
.slide-mockup {
  width: min(900px, 92vw);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: visible;       /* don't clip content */
  height: auto;
}
.mockup-bar {
  display: flex; gap: 6px; padding: 12px 16px;
  background: var(--off-white); border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.mockup-bar span:nth-child(1) { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FEBC2E; }
.mockup-bar span:nth-child(3) { background: #28C840; }
.mockup-content {
  padding: 24px;
  min-height: 0;
  height: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

/* Dashboard preview */
.dash-preview { display: flex; gap: 0; padding: 0; min-height: 280px; }
.preview-sidebar {
  width: 56px; background: var(--navy);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; gap: 16px;
}
.ps-logo img { width: 32px; }
.ps-item {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 1.1rem;
  transition: all 0.2s;
}
.ps-item.active { background: var(--gold); color: var(--navy); }
.preview-main { flex: 1; padding: 20px; background: var(--body-bg); }
.pm-header { font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.pm-kpis { display: flex; gap: 12px; margin-bottom: 20px; }
.kpi-card {
  flex: 1; padding: 14px; border-radius: 10px;
  background: var(--card-bg); border: 1px solid var(--border);
}
.kpi-card.gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: white; }
.kpi-card.gold .kpi-lbl { color: rgba(255,255,255,0.8); }
.kpi-val { font-size: 1.1rem; font-weight: 800; display: block; }
.kpi-lbl { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; display: block; }
.pm-chart-area { background: var(--card-bg); border-radius: 10px; padding: 16px; border: 1px solid var(--border); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.mini-bars div {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  opacity: 0.7;
}
.mini-bars div:nth-child(even) { opacity: 1; }

/* Invoice preview */
.invoice-preview { font-size: 0.85rem; }
.inv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.inv-meta { text-align: end; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.inv-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.inv-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.inv-row.header { background: var(--off-white); font-weight: 700; font-size: 0.75rem; color: var(--text-muted); }
.inv-row.total { font-weight: 800; color: var(--gold); background: rgba(201,168,76,0.05); border-bottom: none; }
.inv-qr { font-size: 3rem; text-align: center; margin-top: 16px; color: var(--navy); opacity: 0.3; }

/* Warehouse preview */
.warehouse-preview {}
.wh-title { font-weight: 700; font-size: 1rem; margin-bottom: 20px; }
.wh-grid { display: flex; flex-direction: column; gap: 14px; }
.wh-item { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; }
.wh-bar {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--navy-mid), var(--navy-light));
  transition: width 1s var(--ease);
  min-width: 30px; flex-shrink: 0;
}
.wh-bar.gold { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
.wh-bar.low { background: linear-gradient(90deg, #ef4444, #f87171); }
.wh-item.low { color: #ef4444; }
.wh-item span { flex: 1; }

/* Report preview */
.report-preview {}
.rp-title { font-weight: 700; font-size: 1rem; margin-bottom: 20px; }
.rp-chart { height: 160px; display: flex; align-items: flex-end; padding: 0 20px; }
.rp-bar-group {
  display: flex; align-items: flex-end; gap: 24px;
  height: 100%; width: 100%; justify-content: center;
}
.rp-b {
  width: 60px; border-radius: 8px 8px 0 0;
  position: relative; display: flex; align-items: flex-end; justify-content: center;
}
.rp-b small {
  position: absolute; bottom: -20px;
  font-size: 0.7rem; white-space: nowrap; color: var(--text-muted);
}
.rp-b.income { background: linear-gradient(180deg, var(--navy-light), var(--navy)); }
.rp-b.expense { background: linear-gradient(180deg, #ef4444, #dc2626); }
.rp-b.profit { background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); }
.rp-legend {
  display: flex; gap: 20px; margin-top: 32px; justify-content: center;
}
.leg { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 500; }
.leg::before { content: ''; width: 10px; height: 10px; border-radius: 2px; }
.leg.income::before { background: var(--navy); }
.leg.expense::before { background: #ef4444; }
.leg.profit::before { background: var(--gold); }

/* Slider dots */
.slider-dots {
  display: flex; justify-content: center; gap: 10px;
  padding: 16px 0 0;
}
.dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--border);
  transition: all 0.35s var(--ease);
}
.dot.active { background: var(--gold); width: 28px; }
.slider-hint {
  text-align: center; color: var(--text-muted); font-size: 0.8rem;
  margin-top: 12px; opacity: 0.6;
}
.slide-label { text-align: center; max-width: 500px; }
.slide-label h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.slide-label p { font-size: 0.95rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing { background: var(--body-bg); }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 48px;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px;
  width: fit-content; margin-inline: auto;
}
.ptog {
  padding: 10px 24px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.ptog.active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; align-items: start;
}
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all 0.4s var(--ease);
  opacity: 0; transform: translateY(30px);
}
.price-card.visible { opacity: 1; transform: translateY(0); }
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--gold); }
.price-card.popular {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: var(--gold);
  color: white;
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(13,27,62,0.4), 0 0 0 1px var(--gold);
}
.price-card.popular.visible { transform: scale(1.04) translateY(0); }
.price-card.popular:hover { transform: scale(1.04) translateY(-6px); }
.price-card.popular .price-features li { color: rgba(255,255,255,0.85); }
.price-card.popular .price-features li.disabled { color: rgba(255,255,255,0.3); }
.price-card.popular .price-features li i { color: var(--gold-light); }
.price-card.popular .kpi-lbl { color: rgba(255,255,255,0.6); }

.price-badge-pop {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy); font-size: 0.75rem; font-weight: 800;
  padding: 6px 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.price-badge-top {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.price-card.popular .price-badge-top { color: rgba(255,255,255,0.5); }
.price-icon {
  font-size: 2rem; color: var(--gold); margin-bottom: 12px;
}
.price-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; }
.price-amount {
  display: flex; align-items: flex-start; gap: 4px;
  margin-bottom: 28px; line-height: 1;
}
.price-amount .currency { font-size: 1rem; font-weight: 700; margin-top: 8px; color: var(--gold); }
.price-amount .amount { font-size: 3rem; font-weight: 900; line-height: 1; }
.price-amount .period { font-size: 0.85rem; margin-top: 14px; color: var(--text-muted); }
.price-card.popular .price-amount .period { color: rgba(255,255,255,0.5); }

.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text);
}
.price-features li i { font-size: 1rem; flex-shrink: 0; color: var(--gold); }
.price-features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.price-features li.disabled i { color: var(--border); }

.btn-plan {
  display: block; text-align: center;
  padding: 14px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.btn-plan:hover { border-color: var(--gold); color: var(--gold); }
.btn-plan.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border-color: transparent; color: var(--navy);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}
.btn-plan.gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,168,76,0.5); }
.price-card.popular .btn-plan:not(.gold) {
  border-color: rgba(255,255,255,0.3); color: white;
}
.price-card.popular .btn-plan:not(.gold):hover { border-color: var(--gold); color: var(--gold); }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact { background: var(--off-white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-form-wrap { display: flex; flex-direction: column; gap: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.input-wrap {
  position: relative;
}
.input-wrap i {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: 14px; font-size: 1.1rem; color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrap textarea ~ i { top: 16px; transform: none; }
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%; padding: 12px 44px 12px 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem; color: var(--text);
  transition: all 0.25s var(--ease);
  outline: none;
  appearance: none;
}
.input-wrap textarea { padding: 14px 44px 14px 16px; resize: vertical; min-height: 100px; }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.input-wrap input:focus ~ i,
.input-wrap select:focus ~ i,
.input-wrap textarea:focus ~ i { color: var(--gold); }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: white; font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(13,27,62,0.25);
  transition: all 0.3s var(--transition);
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,168,76,0.35);
}
.btn-submit i { font-size: 1.2rem; }

.form-success {
  display: none; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 10px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #16a34a; font-size: 0.9rem; font-weight: 500;
}
.form-success.show { display: flex; }
.form-success i { font-size: 1.3rem; flex-shrink: 0; }

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.clink {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.clink:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.05); }
.clink.whatsapp:hover { border-color: #25D366; color: #25D366; background: rgba(37,211,102,0.05); }
.clink i { font-size: 1rem; }

/* Map */
.map-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-header {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.map-header i { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.map-header strong { display: block; font-weight: 700; margin-bottom: 4px; }
.map-header span { font-size: 0.82rem; color: var(--text-muted); display: block; }
.map-iframe-wrap { position: relative; }
.map-iframe-wrap iframe { display: block; }
.map-info-pills {
  display: flex; gap: 12px; padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.map-info-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted);
}
.map-info-pills i { color: var(--gold); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 160px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 1rem;
  transition: all 0.25s var(--ease);
}
.footer-socials a:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,0.1);
}
.footer-links h4 {
  font-size: 0.9rem; font-weight: 700; color: white;
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.3);
}
.footer-ksa { display: flex; align-items: center; gap: 8px; }
.footer-ksa img { border-radius: 2px; }

/* ══════════════════════════════════════════
   CHAT WIDGET
══════════════════════════════════════════ */
.chat-widget { position: fixed; bottom: 28px; left: 28px; z-index: 200; }

.chat-fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: white; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(13,27,62,0.4);
  transition: all 0.3s var(--transition);
  position: relative;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(13,27,62,0.5); }
.chat-pulse {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: chatPing 2s ease-in-out infinite;
}
@keyframes chatPing {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.chat-box {
  position: absolute; bottom: 70px; left: 0;
  width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom left;
  opacity: 0; visibility: hidden;
  transition: all 0.35s var(--transition);
}
.chat-box.open {
  transform: scale(1) translateY(0);
  opacity: 1; visibility: visible;
}

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: white;
}
.chat-head-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  overflow: hidden; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-head strong { font-size: 0.9rem; display: block; }
.chat-status { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.chat-close { color: rgba(255,255,255,0.5); font-size: 1.1rem; transition: color 0.2s; }
.chat-close:hover { color: white; }

.chat-messages {
  max-height: 260px; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { display: flex; max-width: 85%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg p {
  padding: 10px 14px; border-radius: 14px;
  font-size: 0.85rem; line-height: 1.5;
}
.chat-msg.bot p {
  background: var(--off-white); border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.chat-msg.user p {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: white; border-bottom-left-radius: 4px;
}
.chat-msg.typing p { font-size: 1.2rem; }

.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.qbtn {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  background: var(--card-bg);
  transition: all 0.2s var(--ease);
}
.qbtn:hover { border-color: var(--gold); color: var(--gold); }

.chat-input-row {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--off-white); color: var(--text);
  font-size: 0.85rem; outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}
.chat-send:hover { transform: scale(1.08); }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .price-card.popular { transform: scale(1); }
  .price-card.popular.visible { transform: scale(1) translateY(0); }
  .price-card.popular:hover { transform: translateY(-6px); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; display: block; }
  .nav-hamburger { display: flex; }
  .btn-cta-nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .stat-divider { display: none; }
  .chat-box { width: 300px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .pm-kpis { flex-direction: column; }
  .rp-bar-group { gap: 12px; }
  .rp-b { width: 40px; }
  .floating-card { display: none; }

  /* ── Screenshots slider — mobile fix ── */
  .slide-mockup { width: 100%; min-width: 0; }
  .mockup-content { padding: 12px; min-height: auto; }

  /* Dashboard: hide sidebar on small screens */
  .dash-preview { flex-direction: column; }
  .preview-sidebar {
    width: 100%; flex-direction: row; height: 44px;
    padding: 0 12px; gap: 8px; overflow-x: auto;
    justify-content: flex-start; align-items: center;
  }
  .ps-logo { display: none; }
  .ps-item { width: 32px; height: 32px; flex-shrink: 0; }
  .preview-main { padding: 12px; }
  .pm-header { font-size: 0.85rem; margin-bottom: 10px; }
  .pm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .kpi-card { padding: 8px 10px; }
  .kpi-val { font-size: 0.9rem; }
  .kpi-lbl { font-size: 0.62rem; }
  .pm-chart-area { padding: 10px; }
  .mini-bars { height: 50px; gap: 4px; }

  /* Invoice: compact */
  .invoice-preview { font-size: 0.75rem; padding: 12px; }
  .inv-header { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .inv-header img { height: 22px !important; }
  .inv-row { gap: 8px; padding: 6px 10px; }
  .inv-row.header { font-size: 0.65rem; }
  .inv-qr { font-size: 2rem; margin-top: 8px; }

  /* Warehouse: compact */
  .warehouse-preview { padding: 12px; }
  .wh-title { font-size: 0.88rem; margin-bottom: 12px; }
  .wh-grid { gap: 10px; }
  .wh-item { font-size: 0.75rem; }

  /* Report: compact */
  .report-preview { padding: 12px; }
  .rp-title { font-size: 0.88rem; margin-bottom: 12px; }
  .rp-chart { height: 110px; padding: 0 8px; }
  .rp-bar-group { gap: 8px; }
  .rp-b { width: 32px; border-radius: 5px 5px 0 0; }
  .rp-b small { font-size: 0.6rem; bottom: -18px; }
  .rp-legend { gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
  .leg { font-size: 0.7rem; }

  /* Slide label */
  .slide-label h4 { font-size: 1.05rem; }
  .slide-label p { font-size: 0.85rem; }
  .slide { padding: 0 12px 32px; gap: 20px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .chat-widget { bottom: 16px; left: 16px; }
  .chat-box { width: calc(100vw - 32px); left: 0; }

  /* Screenshots slider — very small screens */
  .mockup-content { padding: 8px; }
  .pm-kpis { grid-template-columns: 1fr; }
  .preview-sidebar { gap: 4px; padding: 0 8px; }
  .preview-sidebar .ps-item { width: 28px; height: 28px; font-size: 0.9rem; }
  .inv-row { grid-template-columns: 1fr auto; }
  .inv-row span:nth-child(2) { display: none; }
  .rp-b { width: 26px; }
  .wh-item span { font-size: 0.68rem; }
  .loader-math-card { padding: 32px 24px; min-width: 0; width: 90vw; }
  .loader-math-row { font-size: 2rem; gap: 10px; }
  .math-ans-box { min-width: 56px; height: 56px; font-size: 1.8rem; }
}

/* ══════════════════════════════════════════
   RTL ADJUSTMENTS
══════════════════════════════════════════ */
[dir="rtl"] .input-wrap i {
  right: 14px; left: auto;
}
[dir="ltr"] .input-wrap i {
  left: 14px; right: auto;
}
[dir="ltr"] .input-wrap input,
[dir="ltr"] .input-wrap select,
[dir="ltr"] .input-wrap textarea {
  padding: 12px 16px 12px 44px;
}
[dir="ltr"] .input-wrap textarea {
  padding: 14px 16px 14px 44px;
}
[dir="ltr"] .chat-widget { left: 28px; right: auto; }
[dir="ltr"] .chat-box { left: 0; right: auto; transform-origin: bottom left; }
[dir="rtl"] .chat-widget { left: auto; right: 28px; }
[dir="rtl"] .chat-box { right: 0; left: auto; transform-origin: bottom right; }
