/* ============================================
   MedFlow Landing Page — Styles
   ============================================ */

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

:root {
  color-scheme: light;
  --teal: #0D9488;
  --teal-dark: #0f766e;
  --teal-light: #F0FDFA;
  --teal-mid: #99f6e4;
  --amber: #F59E0B;
  --amber-dark: #d97706;
  --dark: #0F172A;
  --slate: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 148, 136, 0.10);
  --shadow-lg: 0 8px 48px rgba(13, 148, 136, 0.18);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

html.js body { opacity: 0; }
html.js body.i18n-ready { opacity: 1; transition: opacity .18s ease; }

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

i[class^="fa-"], i[class*=" fa-"] { line-height: 1; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: white; }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* --- SECTION TAGS & TITLES --- */
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 12px;
  left: 50%;
  right: auto;
  width: min(1160px, calc(100% - 32px));
  transform: translateX(-50%);
  z-index: 1000;
  background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.36));
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.72);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, top .3s ease;
  overflow: hidden;
  isolation: isolate;
}

nav .container { position: relative; z-index: 1; }

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 8% 0%, rgba(13,148,136,.16), transparent 36%),
              linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.04));
  opacity: .95;
}

nav.scrolled {
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.52));
  border-color: rgba(13, 148, 136, .20);
  box-shadow: 0 22px 64px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.76);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg, .logo-icon img { width: 20px; height: 20px; display: block; }
.logo span { color: var(--teal); }

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s;
}
.nav-links a:hover { color: var(--teal); background: var(--teal-light); }

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

/* --- LANGUAGE SWITCHER --- */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(13,148,136,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
  min-width: 34px;
  text-align: center;
}
.lang-btn:hover { color: var(--teal); transform: translateY(-1px); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(13,148,136,.24);
}

/* --- THEME TOGGLE --- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13,148,136,.18);
  background: rgba(255,255,255,.58);
  color: var(--slate);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.theme-toggle:hover {
  color: var(--teal);
  background: rgba(240,253,250,.78);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13,148,136,.12), inset 0 1px 0 rgba(255,255,255,.72);
}
.theme-toggle i { font-size: .95rem; line-height: 1; }
.mobile-theme-toggle { width: 100%; height: 42px; margin: 12px 0 0; border-radius: 14px; }

/* --- HAMBURGER --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: rgba(255,255,255,.38);
  border-radius: 12px;
  transition: background .25s ease, transform .25s ease;
}
.hamburger:hover { background: rgba(13,148,136,.08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease, background .25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- MOBILE MENU --- */
.mobile-menu {
  display: block;
  position: fixed;
  top: 92px;
  left: 50%;
  right: auto;
  width: min(1160px, calc(100% - 32px));
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 22px;
  padding: 14px 20px;
  box-shadow: 0 22px 64px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.62);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transform: translateX(-50%) translateY(-16px) scale(.98);
  transition: opacity .28s ease, transform .32s cubic-bezier(.22,1,.36,1), max-height .35s ease, visibility .28s ease;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  max-height: 80vh;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226,232,240,.8);
  font-weight: 500;
  color: var(--slate);
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-menu a:hover { color: var(--teal); padding-left: 6px; }
.mobile-menu a:last-child { border: none; }
.mobile-menu .mobile-btns { display: flex; flex-direction: row; gap: 10px; margin-top: 16px; }
.mobile-menu .mobile-btns .btn-full { flex: 1; width: auto; justify-content: center; text-align: center; }
.mobile-menu .language-switcher { justify-content: center; margin: 14px 0 4px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 40%, #0D9488 100%);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
  background: white;
}
.hero-circle.c1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-circle.c2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
.hero-circle.c3 { width: 180px; height: 180px; top: 40%; left: 30%; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--amber); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.hero-trust { display: flex; align-items: center; gap: 12px; }
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: white;
  margin-left: -8px;
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.hero-trust p { font-size: .82rem; color: rgba(255,255,255,.65); }
.hero-trust p strong { color: white; }

/* --- HERO VISUAL --- */
.hero-visual { position: relative; isolation: isolate; padding-top: 76px; }

/* WhatsApp card */
.float-wa {
  position: absolute;
  top: 6px;
  left: clamp(14px, 4vw, 34px);
  z-index: 5;
  width: min(344px, calc(100% - 42px));
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,253,250,.92));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 22px 55px rgba(2,6,23,.24), 0 0 0 1px rgba(37,211,102,.08), inset 0 1px 0 rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  overflow: hidden;
  animation: wa-card-float 5.5s ease-in-out infinite;
}

.float-wa::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #25D366, var(--teal));
  box-shadow: 0 0 18px rgba(37,211,102,.45);
}

.float-wa::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  top: -56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,.18), transparent 62%);
  pointer-events: none;
}

.float-wa .wa-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, #25D366, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.32rem;
  box-shadow: 0 12px 24px rgba(37,211,102,.34), inset 0 1px 0 rgba(255,255,255,.28);
  flex-shrink: 0;
}

.float-wa .wa-content { position: relative; z-index: 1; min-width: 0; line-height: 1.25; }
.float-wa .wa-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: #16a34a;
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.float-wa .wa-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.16);
  flex-shrink: 0;
}
.float-wa .wa-title {
  color: var(--dark);
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-wa .wa-subtitle {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.float-wa .wa-pill {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: .64rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

@keyframes wa-card-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

/* Dashboard card */
.dashboard-card {
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-title { font-size: .95rem; font-weight: 700; color: var(--dark); }
.dash-date {
  font-size: .75rem;
  color: var(--muted);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: 20px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.dash-stat {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.dash-stat .val { font-size: 1.4rem; font-weight: 800; color: var(--teal); }
.dash-stat .lbl { font-size: .7rem; color: var(--muted); margin-top: 2px; }

.dash-appointments { display: flex; flex-direction: column; gap: 8px; }

.appt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
}
.appt-time {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 42px;
}
.appt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.appt-dot.green { background: #22c55e; }
.appt-dot.amber { background: var(--amber); }
.appt-dot.blue { background: #3b82f6; }
.appt-info { flex: 1; }
.appt-name { font-size: .78rem; font-weight: 600; color: var(--dark); }
.appt-type { font-size: .68rem; color: var(--muted); }
.appt-badge {
  font-size: .65rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.appt-badge.confirmed { background: #dcfce7; color: #16a34a; }
.appt-badge.pending { background: #fef3c7; color: #d97706; }
.appt-badge.new { background: #dbeafe; color: #2563eb; }

/* Float notification */
.float-notif {
  position: absolute;
  bottom: -16px;
  right: -12px;
  background: white;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
}
.float-notif .icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .9rem;
  flex-shrink: 0;
}
.float-notif strong { display: block; font-weight: 700; color: var(--dark); }
.float-notif span { color: var(--muted); }

/* ============================================
   LOGOS BAR
   ============================================ */
.logos-bar {
  padding: 32px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .4;
  filter: grayscale(1);
  transition: opacity .3s;
}
.logo-pill:hover { opacity: .7; }
.logo-pill i { font-size: 1.4rem; color: var(--slate); }
.logo-pill span { font-size: .85rem; font-weight: 700; color: var(--slate); }

/* ============================================
   PROBLEM → SOLUTION
   ============================================ */
.problem { padding: 100px 0; background: white; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pain-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pain-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.pain-icon.red { background: #fef2f2; color: #ef4444; }
.pain-icon.orange { background: #fff7ed; color: #f97316; }
.pain-icon.yellow { background: #fefce8; color: #eab308; }
.pain-text strong { display: block; font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.pain-text p { font-size: .85rem; color: var(--muted); }

.solution-box {
  background: linear-gradient(135deg, var(--teal-light), #e0f7f4);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid rgba(13,148,136,0.15);
}
.solution-box h3 { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.solution-box p { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }

.solution-items { display: flex; flex-direction: column; gap: 12px; }

.sol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(13,148,136,.07);
}
.sol-item i { color: var(--teal); font-size: 1rem; width: 20px; text-align: center; }
.sol-item span { font-size: .88rem; font-weight: 600; color: var(--dark); }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 100px 0; background: var(--teal-light); }
.features-header { text-align: center; margin-bottom: 60px; }
.features-header .section-sub { margin: 0 auto; }

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

.feat-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(13,148,136,.07);
  border: 1px solid rgba(13,148,136,.08);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  opacity: 0;
  transition: .3s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.feat-icon.teal { background: var(--teal-light); color: var(--teal); }
.feat-icon.purple { background: #f3e8ff; color: #9333ea; }
.feat-icon.amber { background: #fffbeb; color: var(--amber); }
.feat-icon.blue { background: #eff6ff; color: #3b82f6; }
.feat-icon.rose { background: #fff1f2; color: #f43f5e; }
.feat-icon.green { background: #f0fdf4; color: #22c55e; }
.feat-icon.indigo { background: #eef2ff; color: #6366f1; }
.feat-icon.cyan { background: #ecfeff; color: #06b6d4; }

.feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feat-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

.feat-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark), var(--slate));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: -2px;
}
.stat-num .plus { color: var(--amber); }
.stat-num .pct { color: var(--teal-mid); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 6px; }

/* ============================================
   DASHBOARD PREVIEW
   ============================================ */
.dash-section { padding: 100px 0; background: white; }

.dash-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.metric-card {
  background: var(--teal-light);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(13,148,136,.1);
}
.metric-card .m-val { font-size: 1.6rem; font-weight: 800; color: var(--teal); }
.metric-card .m-label { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.metric-card .m-trend { display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; margin-top: 8px; }
.metric-card .m-trend.up { color: #22c55e; }
.metric-card .m-trend.down { color: #ef4444; }

.dash-big {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  padding: 28px;
  color: white;
}

.dash-big-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dash-big-title { font-size: .95rem; font-weight: 700; }

.dash-filter { display: flex; gap: 6px; }
.dash-filter span {
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  color: rgba(255,255,255,.5);
}
.dash-filter span.active { background: var(--teal); color: white; font-weight: 600; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.bar {
  border-radius: 6px 6px 0 0;
  width: 100%;
  transition: .5s;
  min-height: 4px;
}
.bar.teal { background: linear-gradient(to top, var(--teal-dark), var(--teal)); }
.bar.amber { background: linear-gradient(to top, var(--amber-dark), var(--amber)); }
.bar-lbl { font-size: .62rem; color: rgba(255,255,255,.4); }

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.legend-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
}
.legend-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.teal::before { background: var(--teal); }
.legend-dot.amber::before { background: var(--amber); }

.engagement-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.eng-item { flex: 1; text-align: center; }
.eng-val { font-size: 1.1rem; font-weight: 800; color: white; }
.eng-label { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ============================================
   ROLES
   ============================================ */
.roles { padding: 100px 0; background: var(--teal-light); }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.role-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(13,148,136,.07);
  border: 2px solid transparent;
  transition: all .3s;
  cursor: pointer;
}
.role-card:hover, .role-card.active { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.role-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.role-avatar.admin { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.role-avatar.doctor { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.role-avatar.receptionist { background: linear-gradient(135deg, #f97316, #ef4444); }
.role-avatar.platform { background: linear-gradient(135deg, #1e293b, #0f172a); }

.role-card h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.role-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.role-perms { display: flex; flex-direction: column; gap: 6px; }
.perm { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--slate); }
.perm i { color: var(--teal); font-size: .7rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 100px 0; background: white; }
.testimonials-header { text-align: center; margin-bottom: 56px; }

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 20px; }
.testimonial-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 20px; }

.testimonial-text {
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
}
.author-name { font-weight: 700; font-size: .95rem; color: var(--dark); }
.author-role { font-size: .8rem; color: var(--muted); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: .3s;
  border: none;
}
.carousel-dot.active { background: var(--teal); width: 24px; border-radius: 4px; }

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 100px 0; background: var(--teal-light); }
.pricing-header { text-align: center; margin-bottom: 48px; }

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.toggle-label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.toggle-label.active { color: var(--dark); }

.toggle-switch { position: relative; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--teal);
  border-radius: 13px;
  cursor: pointer;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.save-badge {
  background: var(--amber);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

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

.price-card {
  background: white;
  border-radius: 24px;
  padding: 36px;
  border: 2px solid var(--border);
  position: relative;
  transition: all .3s;
}
.price-card.popular { border-color: var(--teal); box-shadow: var(--shadow-lg); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-tier {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.price-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }

.price-amount { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 8px; }
.price-currency { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.price-num { font-size: 2.8rem; font-weight: 900; color: var(--dark); line-height: 1; letter-spacing: -2px; }
.price-contact { font-size: 1.4rem; letter-spacing: normal; }
.price-period { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.price-desc { font-size: .82rem; color: var(--muted); margin-bottom: 24px; min-height: 36px; }

.price-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pf { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--slate); }
.pf i.fa-check { color: var(--teal); }
.pf i.fa-xmark { color: #cbd5e1; }
.pf.disabled { color: #cbd5e1; }

.pricing-note {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

/* ============================================
   BLOG PREVIEW
   ============================================ */
.featured-blog { padding: 96px 0; background: white; }
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.home-blog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.home-blog-top i {
  font-size: 1.1rem;
  color: var(--teal);
}
.home-blog-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
}
.home-blog-card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  flex: 1;
}
.home-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--teal-dark);
  font-size: .88rem;
  font-weight: 700;
}
.home-blog-link::after { content: "→"; font-size: 1rem; line-height: 1; }

.morocco-lite {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   SECURITY
   ============================================ */
.security { padding: 60px 0; background: var(--dark); }

.security-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.security-title { font-size: 1.2rem; font-weight: 800; color: white; }
.security-title span { color: var(--teal-mid); }
.security-items { display: flex; flex-wrap: wrap; gap: 20px; }
.sec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.sec-item i { color: var(--teal-mid); font-size: .9rem; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 110px) 0;
  background: radial-gradient(circle at 50% 0%, rgba(245,158,11,.14), transparent 34%),
              linear-gradient(135deg, var(--teal-dark), #134e4a);
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: auto -18% -42% -18%;
  height: 54%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 58%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final-inner { width: 100%; max-width: 720px; margin: 0 auto; text-align: center; }

.cta-final h2 {
  max-width: 680px;
  margin: 0 auto 16px;
  font-size: clamp(2rem, 5.4vw, 3rem);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  letter-spacing: -1.4px;
  text-wrap: balance;
}
.cta-final p {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  text-wrap: balance;
}

.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto 24px;
  gap: 8px;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.email-form input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: white;
  background: none;
  border: none;
  outline: none;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
}
.email-form input::placeholder { color: rgba(255,255,255,.45); }
.email-form button {
  height: 42px;
  min-width: 124px;
  padding: 0 20px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: white;
  border: none;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s;
}
.email-form button:hover { background: var(--amber-dark); transform: scale(1.02); }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 18px;
}
.cta-actions .btn-lg { min-width: 178px; justify-content: center; }

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 660px;
  margin: 0 auto !important;
  line-height: 1.55;
  font-size: .88rem;
  color: rgba(255,255,255,.62) !important;
}
.cta-note span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cta-note .cta-separator { color: rgba(255,255,255,.34); gap: 0; }
.cta-note i { margin: 0; color: rgba(255,255,255,.74); }

/* ============================================
   FOOTER
   ============================================ */
footer { padding: 64px 0 32px; background: var(--dark); }

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

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 240px;
}

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  transition: .2s;
}
.social-btn:hover { background: var(--teal); color: white; }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: .2s;
}
.footer-col a:hover { color: var(--teal-mid); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.3); transition: .2s; }
.footer-bottom-links a:hover { color: var(--teal-mid); }

/* ============================================
   FLOATING DEMO BUTTON
   ============================================ */
.float-demo {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(245,158,11,.5);
  transition: .3s;
  align-items: center;
  gap: 8px;
}
.float-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(245,158,11,.6);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================
   DARK MODE
   ============================================ */
html[data-theme="dark"] {
  color-scheme: dark;
  --white: #0f172a;
  --border: rgba(148, 163, 184, .22);
  --teal-light: rgba(13, 148, 136, .13);
  --shadow: 0 4px 24px rgba(0,0,0,.24);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.38);
}

html[data-theme="dark"] body { background: #020617; color: #e2e8f0; }

html[data-theme="dark"] nav {
  background: linear-gradient(135deg, rgba(15,23,42,.76), rgba(15,23,42,.42));
  border-color: rgba(148,163,184,.22);
  box-shadow: 0 18px 58px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.10);
}
html[data-theme="dark"] nav::before {
  background: radial-gradient(circle at 8% 0%, rgba(45,212,191,.16), transparent 38%),
              linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}
html[data-theme="dark"] nav.scrolled {
  background: linear-gradient(135deg, rgba(15,23,42,.86), rgba(15,23,42,.58));
  border-color: rgba(45,212,191,.24);
  box-shadow: 0 22px 70px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.11);
}

html[data-theme="dark"] .mobile-menu {
  background: linear-gradient(135deg, rgba(15,23,42,.90), rgba(15,23,42,.72));
  border-color: rgba(148,163,184,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.10);
}

html[data-theme="dark"] .language-switcher,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .hamburger {
  background: rgba(15,23,42,.68);
  border-color: rgba(148,163,184,.22);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .hamburger:hover {
  background: rgba(13,148,136,.18);
  color: #5eead4;
}
html[data-theme="dark"] .hamburger span { background: #e2e8f0; }

html[data-theme="dark"] .logo,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .dash-title,
html[data-theme="dark"] .appt-name,
html[data-theme="dark"] .pain-text strong,
html[data-theme="dark"] .solution-box h3,
html[data-theme="dark"] .sol-item span,
html[data-theme="dark"] .feat-card h3,
html[data-theme="dark"] .metric-card .m-val,
html[data-theme="dark"] .role-card h3,
html[data-theme="dark"] .perm,
html[data-theme="dark"] .testimonial-text,
html[data-theme="dark"] .author-name,
html[data-theme="dark"] .price-card h3,
html[data-theme="dark"] .price-currency,
html[data-theme="dark"] .price-num,
html[data-theme="dark"] .toggle-label.active,
html[data-theme="dark"] .float-notif strong,
html[data-theme="dark"] .float-wa .wa-title { color: #f8fafc; }

html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .pain-text p,
html[data-theme="dark"] .solution-box p,
html[data-theme="dark"] .feat-card p,
html[data-theme="dark"] .metric-card .m-label,
html[data-theme="dark"] .role-card p,
html[data-theme="dark"] .author-role,
html[data-theme="dark"] .toggle-label,
html[data-theme="dark"] .price-tier,
html[data-theme="dark"] .price-desc,
html[data-theme="dark"] .price-period,
html[data-theme="dark"] .pf,
html[data-theme="dark"] .mobile-menu a,
html[data-theme="dark"] .float-notif span,
html[data-theme="dark"] .appt-type,
html[data-theme="dark"] .appt-time,
html[data-theme="dark"] .float-wa .wa-subtitle { color: #94a3b8; }

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .mobile-menu a:hover { color: #5eead4; background: rgba(13,148,136,.14); }

html[data-theme="dark"] .problem,
html[data-theme="dark"] .dash-section,
html[data-theme="dark"] .testimonials { background: #020617; }

html[data-theme="dark"] .features,
html[data-theme="dark"] .roles,
html[data-theme="dark"] .pricing,
html[data-theme="dark"] .logos-bar { background: #07111f; border-color: rgba(148,163,184,.18); }

html[data-theme="dark"] .solution-box {
  background: linear-gradient(135deg, rgba(13,148,136,.16), rgba(15,23,42,.88));
  border-color: rgba(45,212,191,.18);
}

html[data-theme="dark"] .feat-card,
html[data-theme="dark"] .role-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .sol-item,
html[data-theme="dark"] .float-notif,
html[data-theme="dark"] .float-wa {
  background: rgba(15,23,42,.86);
  border-color: rgba(148,163,184,.18);
  box-shadow: 0 14px 44px rgba(0,0,0,.34);
}

html[data-theme="dark"] .dash-stat,
html[data-theme="dark"] .dash-date,
html[data-theme="dark"] .section-tag,
html[data-theme="dark"] .feat-tag { background: rgba(13,148,136,.14); }

html[data-theme="dark"] .appt-row { background: rgba(2,6,23,.62); }
html[data-theme="dark"] .logos-bar { border-top-color: rgba(148,163,184,.18); border-bottom-color: rgba(148,163,184,.18); }
html[data-theme="dark"] .logo-pill { opacity: .62; filter: none; }
html[data-theme="dark"] .logo-pill i,
html[data-theme="dark"] .logo-pill span { color: #cbd5e1; }
html[data-theme="dark"] .mobile-menu a { border-bottom-color: rgba(148,163,184,.16); }
html[data-theme="dark"] .price-card.popular { border-color: rgba(45,212,191,.62); }
html[data-theme="dark"] .price-divider { border-top-color: rgba(148,163,184,.18); }
html[data-theme="dark"] .pf.disabled,
html[data-theme="dark"] .pf.disabled i { color: #475569; }
html[data-theme="dark"] .carousel-dot { background: rgba(148,163,184,.28); }
html[data-theme="dark"] .carousel-dot.active { background: #2dd4bf; }
html[data-theme="dark"] .pricing-note,
html[data-theme="dark"] .home-blog-card p { color: #94a3b8; }
html[data-theme="dark"] .featured-blog,
html[data-theme="dark"] .home-blog-card {
  background: rgba(15,23,42,.86);
  border-color: rgba(148,163,184,.18);
}
html[data-theme="dark"] .home-blog-card h3 { color: #f8fafc; }
html[data-theme="dark"] .home-blog-chip { background: rgba(13,148,136,.18); color: #5eead4; }
html[data-theme="dark"] .home-blog-link { color: #5eead4; }

html[data-theme="dark"] .float-wa {
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(13,148,136,.26));
  border-color: rgba(94,234,212,.22);
  box-shadow: 0 24px 58px rgba(0,0,0,.48), 0 0 0 1px rgba(94,234,212,.10);
}
html[data-theme="dark"] .float-wa .wa-pill { background: rgba(34,197,94,.16); color: #bbf7d0; border: 1px solid rgba(134,239,172,.18); }

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .logo, html[dir="rtl"] .logo * { direction: ltr; }
html[dir="rtl"] .hero, html[dir="rtl"] .problem, html[dir="rtl"] .dash-section, html[dir="rtl"] .roles, html[dir="rtl"] .pricing, html[dir="rtl"] footer { text-align: right; }
html[dir="rtl"] .features-header, html[dir="rtl"] .testimonials-header, html[dir="rtl"] .pricing-header, html[dir="rtl"] .cta-final-inner, html[dir="rtl"] .stat-item, html[dir="rtl"] .role-card, html[dir="rtl"] .morocco-lite { text-align: center; }
html[dir="rtl"] .float-wa, html[dir="rtl"] .float-notif, html[dir="rtl"] .appt-row, html[dir="rtl"] .pain-item, html[dir="rtl"] .sol-item, html[dir="rtl"] .pf, html[dir="rtl"] .perm, html[dir="rtl"] .sec-item { direction: rtl; text-align: right; }
html[dir="rtl"] .btn i.fa-arrow-right { transform: rotate(180deg); }
html[dir="rtl"] .email-form input { text-align: right; }
html[dir="rtl"] .hero-actions, html[dir="rtl"] .cta-actions, html[dir="rtl"] .cta-note, html[dir="rtl"] .security-items, html[dir="rtl"] .footer-bottom-links { direction: rtl; }
html[dir="rtl"] .mobile-menu a { text-align: right; }
html[dir="rtl"] .mobile-menu a:hover { padding-left: 0; padding-right: 6px; }
html[dir="rtl"] .chart-bars { direction: ltr; }
html[dir="rtl"] .dash-filter, html[dir="rtl"] .pricing-grid, html[dir="rtl"] .features-grid, html[dir="rtl"] .roles-grid, html[dir="rtl"] .home-blog-grid { direction: rtl; }
html[dir="rtl"] .home-blog-link::after { content: "←"; }
html[dir="rtl"] .float-wa::before { left: auto; right: 0; border-radius: 999px 0 0 999px; }
html[dir="rtl"] .float-wa::after { right: auto; left: -46px; }
html[dir="rtl"] .float-wa .wa-kicker { justify-content: flex-start; }

/* ============================================
   RESPONSIVE — TABLETS
   ============================================ */
@media (max-width: 1120px) {
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 10px; }
  .nav-cta { gap: 8px; }
  .language-switcher { gap: 2px; }
  .lang-btn { padding: 6px 9px; }
}

@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .home-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-visual { padding-top: 70px; }
  .float-wa { left: 18px; width: min(320px, calc(100% - 36px)); }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 900px) {
  .hero-visual { padding-top: 48px; }
  .float-wa { left: 18px; width: min(310px, calc(100% - 36px)); padding: 11px 12px; }
}

@media (max-width: 768px) {
  nav { top: 10px; width: calc(100% - 20px); border-radius: 18px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { top: 86px; width: calc(100% - 20px); border-radius: 18px; }

  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual:not(.hero-visual.always-show) { display: none; }
  .hero-visual { padding-top: 0; }

  .problem-grid, .dash-preview-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-demo { display: flex; }
  .security-inner { flex-direction: column; text-align: center; }
  .security-items { justify-content: center; }

  /* CTA mobile */
  .cta-final { padding: 82px 0 74px; }
  .cta-final .container { padding: 0 18px; }
  .cta-final h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .cta-final p { font-size: .98rem; margin-bottom: 28px; }
  .email-form { width: min(100%, 460px); }
  .cta-actions { max-width: 460px; }
  .cta-actions .btn { flex: 1 1 190px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE
   ============================================ */
@media (max-width: 540px) {
  .hero-actions .btn-lg { padding: 10px 20px; font-size: .85rem; }
  .cta-final { padding: 74px 0 66px; }
  .cta-final h2 { font-size: clamp(1.85rem, 10vw, 2.45rem); letter-spacing: -.9px; }
  .cta-final p { font-size: .95rem; line-height: 1.65; margin-bottom: 24px; }
  .email-form { grid-template-columns: 1fr; width: 100%; max-width: 360px; gap: 8px; padding: 8px; border-radius: 18px; margin-bottom: 22px; }
  .email-form input { height: 46px; text-align: center; padding: 0 12px; font-size: .92rem; }
  html[dir="rtl"] .email-form input { text-align: center; }
  .email-form button { width: 100%; height: 46px; min-width: 0; }
  .cta-actions { flex-direction: column; align-items: stretch; width: min(100%, 340px); margin-bottom: 16px; }
  .cta-actions .btn { width: 100%; min-width: 0; justify-content: center; padding: 10px 20px; font-size: .85rem; }
  .cta-note { display: grid; grid-template-columns: 1fr; justify-items: center; max-width: 330px; gap: 5px; font-size: .84rem; line-height: 1.45; }
  .cta-note span:not(.cta-separator) { white-space: normal; justify-content: center; text-align: center; }
  .cta-note .cta-separator { display: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 360px) {
  .cta-actions { width: 100%; }
  .cta-note { font-size: .8rem; }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  .float-wa { animation: none; }
}

/* ============================================
   SEO/GEO LANDING EXTENSIONS
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-glass {
  background: rgba(255,255,255,.12);
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.btn-glass:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-1px);
}

.direct-answer {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86) !important;
  font-size: .98rem !important;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid article,
.answer-card,
.comparison-card,
.glossary-grid article,
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.trust-grid article {
  min-height: 118px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.trust-grid i {
  color: var(--teal);
  font-size: 1.2rem;
}

.trust-grid strong {
  color: var(--slate);
  font-size: .88rem;
  line-height: 1.45;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 28px auto 0;
}

.summary-line {
  max-width: 820px;
  margin: 26px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
  text-align: center;
}

.answer-card {
  padding: 28px;
}

.answer-card h3,
.comparison-card h3,
.glossary-grid h3,
.faq-item h3 {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 12px;
}

.answer-list {
  display: grid;
  gap: 14px;
}

.answer-list dt {
  color: var(--teal);
  font-weight: 800;
}

.answer-list dd {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.comparison-card {
  padding: 22px;
  overflow: hidden;
}

.comparison-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}

.comparison-card th,
.comparison-card td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-card th {
  color: var(--teal);
  font-weight: 800;
  background: var(--teal-light);
}

.comparison-card td {
  color: var(--muted);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glossary-grid article {
  padding: 22px;
}

.glossary-grid p,
.faq-item p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  padding: 20px 22px;
  cursor: pointer;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item:not(.open) p {
  display: none;
}

.feat-card,
.role-card,
.price-card,
.trust-grid article,
.comparison-card,
.glossary-grid article,
.faq-item,
.answer-card {
  border-radius: 18px;
}

html[data-theme="dark"] .trust-grid article,
html[data-theme="dark"] .answer-card,
html[data-theme="dark"] .comparison-card,
html[data-theme="dark"] .glossary-grid article,
html[data-theme="dark"] .faq-item {
  background: rgba(15,23,42,.86);
  border-color: rgba(148,163,184,.18);
  box-shadow: 0 14px 44px rgba(0,0,0,.34);
}

html[data-theme="dark"] .trust-grid strong,
html[data-theme="dark"] .answer-card h3,
html[data-theme="dark"] .comparison-card h3,
html[data-theme="dark"] .glossary-grid h3,
html[data-theme="dark"] .faq-item h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .answer-list dd,
html[data-theme="dark"] .comparison-card td,
html[data-theme="dark"] .glossary-grid p,
html[data-theme="dark"] .faq-item p {
  color: #94a3b8;
}

html[data-theme="dark"] .summary-line,
html[data-theme="dark"] .comparison-card th {
  background: rgba(13,148,136,.14);
  color: #5eead4;
}

html[dir="rtl"] .comparison-card th,
html[dir="rtl"] .comparison-card td {
  text-align: right;
}

html[dir="rtl"] .trust-grid,
html[dir="rtl"] .comparison-grid,
html[dir="rtl"] .glossary-grid {
  direction: rtl;
}

@media (max-width: 1024px) {
  .trust-grid,
  .comparison-grid,
  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .trust-grid,
  .solution-grid,
  .comparison-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: block !important;
  }

  .dashboard-card {
    padding: 18px;
  }

  .float-wa {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-bottom: 14px;
  }
}
