/* ============================================================
   Iyada AI — Shared Stylesheet
   Modern Blue Design System | iyadati.ai
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  --primary:        #1d4ed8;   /* Blue 700 */
  --primary-dark:   #1e3a8a;   /* Blue 900 */
  --primary-mid:    #2563eb;   /* Blue 600 */
  --primary-light:  #3b82f6;   /* Blue 500 */
  --accent:         #0ea5e9;   /* Sky 500 */
  --accent-dark:    #0284c7;   /* Sky 600 */
  --accent-light:   #e0f2fe;   /* Sky 100 */
  --blue-50:        #eff6ff;
  --blue-100:       #dbeafe;
  --blue-200:       #bfdbfe;

  --text-primary:   #0f172a;   /* Slate 950 */
  --text-secondary: #475569;   /* Slate 600 */
  --text-muted:     #94a3b8;   /* Slate 400 */
  --bg:             #ffffff;
  --bg-light:       #f8fafc;   /* Slate 50 */
  --bg-mid:         #f1f5f9;   /* Slate 100 */
  --border:         #e2e8f0;   /* Slate 200 */
  --border-dark:    #cbd5e1;   /* Slate 300 */

  --success:        #10b981;
  --warning:        #f59e0b;
  --whatsapp:       #25d366;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
  --shadow-blue: 0 8px 32px rgba(29,78,216,.25);

  --transition: 0.22s ease;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Arabic mode */
.lang-ar body,
body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}

/* Language content toggling — !important prevents any other rule overriding visibility */
.ar-content { display: none !important; }

body.lang-ar .en-content { display: none !important; }
body.lang-ar .ar-content { display: revert !important; }

/* inline elements (span, etc.) */
span.ar-content  { display: none !important; }
span.en-content  { display: inline !important; }
body.lang-ar span.ar-content { display: inline !important; }
body.lang-ar span.en-content { display: none !important; }

/* buttons keep inline-flex when shown in AR mode */
body.lang-ar a.btn.ar-content,
body.lang-ar button.btn.ar-content { display: inline-flex !important; }
body.lang-ar span.en-content { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: var(--blue-100);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(29,78,216,.35);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--blue-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--primary);
  background: transparent;
  padding: 10px 20px;
}
.btn-ghost:hover { background: var(--blue-50); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-live  { background: #dcfce7; color: #15803d; }
.badge-soon  { background: var(--blue-100); color: var(--primary); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--blue-50);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-mid);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--border);
}
.lang-btn {
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-mid); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 0 16px;
  background: white;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 11px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--primary); background: var(--blue-50); }
.mobile-nav-footer {
  padding: 12px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f7ff 0%, #e8f4ff 40%, #f8faff 100%);
  padding: 88px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .03em;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
}
.hero-trust-icons {
  display: flex;
  gap: -4px;
}
.hero-trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: white;
  font-weight: 700;
  margin-left: -6px;
}
.hero-trust-icon:first-child { margin-left: 0; }

/* --- WhatsApp Mockup --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  background: #fff;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(29,78,216,.06);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.phone-status {
  background: var(--primary-dark);
  color: white;
  padding: 10px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
}
.phone-chat-header {
  background: #075e54;
  color: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-chat-header .avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.phone-chat-header .name { font-size: .85rem; font-weight: 600; }
.phone-chat-header .status { font-size: .7rem; opacity: .8; }

.phone-messages {
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8bdb5' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 12px 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg {
  max-width: 75%;
  padding: 7px 10px 4px;
  border-radius: 10px;
  font-size: .72rem;
  line-height: 1.4;
  position: relative;
}
.msg-time { font-size: .58rem; opacity: .6; margin-top: 2px; text-align: right; }
.msg-in {
  background: white;
  border-radius: 10px 10px 10px 2px;
  align-self: flex-start;
  color: #303030;
}
.msg-out {
  background: #dcf8c6;
  border-radius: 10px 10px 2px 10px;
  align-self: flex-end;
  color: #303030;
}
.msg-bot {
  background: white;
  border-radius: 10px 10px 10px 2px;
  align-self: flex-start;
  color: #303030;
  border-left: 3px solid var(--accent);
}

.phone-input {
  background: #f0f0f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.phone-input input {
  flex: 1;
  background: white;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: .75rem;
  color: var(--text-secondary);
  outline: none;
}
.phone-input .send-btn {
  width: 32px;
  height: 32px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .8rem;
  flex-shrink: 0;
}

/* Floating cards on hero */
.hero-float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatCard 4s ease-in-out infinite;
  border: 1px solid var(--border);
}
.hero-float-card.card-1 {
  top: 8%;
  right: -10px;
  animation-delay: 0s;
}
.hero-float-card.card-2 {
  bottom: 15%;
  left: -20px;
  animation-delay: 2s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-float-card .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.hero-float-card.card-1 .icon { background: #dcfce7; }
.hero-float-card.card-2 .icon { background: var(--blue-100); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-light); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(33.33% - 20px);
  right: calc(33.33% - 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(29,78,216,.3);
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.step-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   MODULES
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.module-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.module-card.featured {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--blue-200), var(--shadow-md);
}
.module-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.module-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.module-card.featured .module-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.module-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.module-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.module-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.module-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-secondary);
}
.module-feature::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: var(--blue-100);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.module-card.featured .module-feature::before {
  background: #dcfce7;
  color: var(--success);
}

/* ============================================================
   DIFFERENTIATORS
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.diff-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.diff-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.diff-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent-dark) 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  color: white;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: .875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: white;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: white; }

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-bottom a:hover { color: white; }

/* ============================================================
   INNER PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--blue-50) 0%, #e8f4ff 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
body.lang-ar .feature-row.reverse { direction: ltr; }
body.lang-ar .feature-row.reverse > * { direction: rtl; }

.feature-content .section-label { margin-bottom: 12px; }
.feature-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 14px; }
.feature-content p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 24px; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-list-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.feature-list-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-list-text span {
  font-size: .82rem;
  color: var(--text-secondary);
}

.feature-visual {
  position: relative;
}
.feature-visual-box {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--blue-200);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.feature-visual-emoji {
  font-size: 4rem;
  display: block;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0 8px;
}
.pricing-card .price-note {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 28px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
  text-align: left;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-secondary);
}
.pricing-feature .check {
  width: 20px;
  height: 20px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.mission-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  padding: 56px;
  color: white;
  margin-bottom: 64px;
}
.mission-card h2 { color: white; font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 16px; }
.mission-card p { color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.75; max-width: 640px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.value-card {
  padding: 28px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.value-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin-bottom: 28px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all var(--transition);
}
.contact-method:hover { border-color: var(--blue-200); background: var(--blue-50); }
.contact-method .cm-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-method .cm-text strong { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.contact-method .cm-text span { font-size: .82rem; color: var(--text-secondary); }

.contact-form {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-primary);
  background: white;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 88px;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--primary-dark);
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.legal-content p {
  font-size: .925rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content ul li, .legal-content ol li {
  font-size: .925rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-meta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.legal-meta strong { color: var(--text-primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }
  .hero-float-card.card-1 { right: 0; }
  .hero-float-card.card-2 { left: 0; }

  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid::before { display: none; }

  .modules-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }
  .mission-card { padding: 36px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .nav-links { display: none; }
  .navbar-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .pricing-card { padding: 32px 24px; }
  .contact-form { padding: 28px 20px; }
  .legal-content { padding: 40px 0 64px; }
}

/* ============================================================
   ARABIC RTL OVERRIDES
   ============================================================ */
body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}
body.lang-ar .steps-grid::before {
  left: calc(33.33% - 20px);
  right: calc(33.33% - 20px);
}
body.lang-ar .footer-bottom { flex-direction: row-reverse; }
body.lang-ar .module-header { flex-direction: row-reverse; }
body.lang-ar .feature-row.reverse { direction: rtl; }
body.lang-ar .feature-row.reverse > * { direction: rtl; }
body.lang-ar .contact-grid { direction: rtl; }
body.lang-ar .form-row { direction: rtl; }
body.lang-ar .legal-content ul,
body.lang-ar .legal-content ol { padding-left: 0; padding-right: 24px; }
body.lang-ar .hero-float-card.card-1 { right: auto; left: -10px; }
body.lang-ar .hero-float-card.card-2 { left: auto; right: -20px; }
body.lang-ar .msg-in { border-radius: 10px 10px 2px 10px; align-self: flex-end; }
body.lang-ar .msg-out { border-radius: 10px 10px 10px 2px; align-self: flex-start; }
body.lang-ar .msg-bot { border-radius: 10px 10px 2px 10px; border-left: none; border-right: 3px solid var(--accent); align-self: flex-end; }

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
