/* =========================================================
   Cerebro Tech — marketing site design system (v2)
   Brand: navy + crimson from the logo. Display: Sora. Body: Manrope. Arabic: Cairo.
   Layout: 1180px container, dark hero with a live "neural" canvas, light sections
   alternating with a soft tinted surface, one dark AI band. Light + dark themes.
   ========================================================= */
:root {
  --navy-900: #071530;
  --navy: #0b1f42;
  --navy-700: #12305f;
  --navy-500: #1f4a8a;
  --red: #b3001b;
  --red-600: #d1142f;
  --red-50: #fdecee;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e3e8f0;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eaeff6;
  --card: #ffffff;
  --heading: var(--navy);
  --green: #16a34a;
  --amber: #d97706;
  --blue: #2563eb;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -10px rgba(11, 31, 66, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 66, .35);
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Manrope", system-ui, sans-serif;
  --container: 1180px;
  --gutter: 20px;
  --header-h: 76px;
  --header-bg: rgba(255, 255, 255, .86);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6ebf5; --slate: #aab6cc; --muted: #8e9bb3; --line: #223050; --bg: #0a1226; --surface: #0f1a33;
    --surface-2: #162442; --card: #121d38; --heading: #f2f5fb; --red-50: rgba(209, 20, 47, .16); --header-bg: rgba(10, 18, 38, .82);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e6ebf5; --slate: #aab6cc; --muted: #8e9bb3; --line: #223050; --bg: #0a1226; --surface: #0f1a33; --surface-2: #162442; --card: #121d38;
  --heading: #f2f5fb; --red-50: rgba(209, 20, 47, .16); --header-bg: rgba(10, 18, 38, .82);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] { --font: var(--font-ar); --font-display: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .55); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.container.narrow-wide { max-width: 980px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 8px; }

.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-600)); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: #ffb4bd; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; white-space: nowrap; will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -8px rgba(179, 0, 27, .7); }
.btn-primary:hover { background: var(--red-600); color: #fff; box-shadow: 0 12px 28px -8px rgba(179, 0, 27, .8); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-ghost { background: transparent; color: var(--heading); }
.btn-ghost:hover { background: var(--surface-2); color: var(--heading); }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-outline:hover { border-color: var(--heading); }
.btn-whatsapp { background: var(--wa-dark); color: #fff; }
.btn-whatsapp:hover { background: #0e7166; color: #fff; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--heading); display: inline-grid; place-items: center; }
.icon-btn:hover { border-color: var(--heading); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn .icon-moon { display: none; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .icon-moon { display: block; }
}
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); }
.link:hover { color: var(--red); }
.link .icon { width: 18px; height: 18px; transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }
html[dir="rtl"] .link .icon:has(use[href="#i-arrow"]), html[dir="rtl"] .btn .icon:has(use[href="#i-arrow"]) { transform: scaleX(-1); }
html[dir="rtl"] .link:hover .icon:has(use[href="#i-arrow"]) { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .btn-whatsapp .icon, html[dir="rtl"] .store .icon { transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }
.brand-dark { display: none; }
:root[data-theme="dark"] .brand-light { display: none; } :root[data-theme="dark"] .brand-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-light { display: none; } :root:not([data-theme="light"]) .brand-dark { display: block; } }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav > a { padding: 8px 11px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .93rem; white-space: nowrap; transition: background .15s, color .15s; }
.nav > a:hover, .nav > a.is-active { color: var(--red); background: var(--red-50); }
.nav-mobile-actions { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--heading); font-weight: 700; font-size: .9rem; font-family: var(--font-ar); }
.lang-toggle:hover { border-color: var(--heading); }
.lang-toggle .icon { width: 18px; height: 18px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--heading); align-items: center; justify-content: center; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 50; }
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dropdown-menu a:hover { background: var(--surface); color: var(--ink); }
.dropdown-menu a .icon { color: var(--red); }
.dropdown-menu a span { display: flex; flex-direction: column; line-height: 1.3; }
.dropdown-menu a small { color: var(--muted); font-size: .8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 9vw, 130px); background: var(--navy); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 85% 8%, rgba(179, 0, 27, .5), transparent 60%),
  radial-gradient(700px 520px at 8% 95%, rgba(31, 74, 138, .85), transparent 60%),
  linear-gradient(160deg, var(--navy-900), var(--navy) 55%, var(--navy-700)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .grad { background: linear-gradient(90deg, #ff8f9c, #ffd1d6 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .84); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .82); font-size: .92rem; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 18px; height: 18px; color: #7ee2a3; }

.hero-visual { position: relative; min-height: 460px; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out; }
.mock-window { position: relative; background: var(--card); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); padding: 14px; width: min(100%, 540px); margin-inline-start: auto; }
.mock-titlebar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-titlebar span:nth-child(1) { background: #fca5a5; } .mock-titlebar span:nth-child(2) { background: #fde68a; } .mock-titlebar span:nth-child(3) { background: #86efac; }
.mock-titlebar em { margin-inline-start: auto; font-style: normal; font-size: .74rem; color: var(--muted); font-weight: 700; }
.mock-body { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.mock-side { background: var(--navy); border-radius: 10px; padding: 10px 8px; display: grid; gap: 8px; align-content: start; }
.mock-side i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.mock-side i.on { background: var(--red); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mock-stat { background: var(--surface); border-radius: 12px; padding: 9px 10px; position: relative; }
.mock-stat small { display: block; color: var(--muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .mock-stat small { letter-spacing: 0; text-transform: none; }
.mock-stat strong { font-size: 1.2rem; color: var(--heading); font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.mock-stat em { font-style: normal; font-size: .68rem; color: var(--muted); margin-inline-start: 4px; }
.mock-stat em.up { color: var(--green); font-weight: 700; }
.mock-stat em.live { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-weight: 700; }
.mock-stat em.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; }
.mock-rows { display: grid; gap: 5px; margin-bottom: 10px; }
.mock-row { display: flex; align-items: center; gap: 9px; font-size: .78rem; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); }
.mock-row b { color: var(--heading); font-variant-numeric: tabular-nums; }
.mock-row > span:not(.dot) { flex: 1; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.dot-green { background: var(--green); } .dot-amber { background: var(--amber); animation: pulse 1.6s infinite; } .dot-blue { background: var(--blue); } .dot-grey { background: #cbd5e1; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .5); } 60% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); } }
.tag { font-style: normal; font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--slate); white-space: nowrap; }
.tag-green { background: #dcfce7; color: #15803d; } .tag-amber { background: #fef3c7; color: #b45309; } .tag-blue { background: #dbeafe; color: #1d4ed8; }
.mock-chart { display: flex; align-items: flex-end; gap: 5px; height: 48px; padding: 0 2px; }
.mock-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--navy-500), var(--navy)); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.mock-chart i:nth-child(2) { animation-delay: .1s } .mock-chart i:nth-child(3) { animation-delay: .2s } .mock-chart i:nth-child(4) { animation-delay: .3s } .mock-chart i:nth-child(5) { animation-delay: .4s } .mock-chart i:nth-child(6) { animation-delay: .5s; background: linear-gradient(180deg, var(--red-600), var(--red)); } .mock-chart i:nth-child(7) { animation-delay: .6s } .mock-chart i:nth-child(8) { animation-delay: .7s }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.mock-chat { position: absolute; bottom: -34px; inset-inline-start: -16px; width: 280px; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px; animation: float 6s ease-in-out infinite; transform: translateZ(40px); }
.mock-chat-head { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.mock-chat-head .icon { width: 18px; height: 18px; color: var(--wa-dark); }
.mock-chat-head em { margin-inline-start: auto; font-style: normal; font-size: .65rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.mock-chat-body { display: flex; flex-direction: column; gap: 6px; min-height: 132px; }
.bubble { max-width: 88%; padding: 7px 10px; border-radius: 12px; font-size: .76rem; line-height: 1.4; animation: popin .35s ease both; }
.bubble.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: #dcf8c6; color: #0f172a; border-bottom-right-radius: 4px; }
html[dir="rtl"] .bubble.in { border-radius: 12px; border-bottom-right-radius: 4px; }
html[dir="rtl"] .bubble.out { border-radius: 12px; border-bottom-left-radius: 4px; }
.bubble.typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 12px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: blink 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .2s } .bubble.typing i:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
@keyframes popin { from { opacity: 0; transform: translateY(6px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes float { 0%, 100% { transform: translateY(0) translateZ(40px) } 50% { transform: translateY(-8px) translateZ(40px) } }
.mock-badge { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--heading); font-size: .76rem; font-weight: 700; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
.mock-badge .icon { width: 16px; height: 16px; color: var(--red); }
.mock-badge-1 { top: -18px; inset-inline-end: 28px; animation-delay: -2s; }
.mock-badge-2 { top: 48%; inset-inline-end: -14px; animation-delay: -4s; }
.mock-badge-2 .icon { color: var(--green); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--navy-900); color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 0; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
html[lang="ar"] .ticker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 50s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 18px; padding-inline-end: 18px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-600); }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }
html[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { from { transform: translateX(0) } to { transform: translateX(50%) } }

/* ---------- Stats ---------- */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px var(--gutter); }
.stat { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 18px; border-inline-start: 3px solid var(--red); }
.stat strong { font-size: 2.2rem; font-family: var(--font-display); font-weight: 800; color: var(--heading); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--slate); font-size: .92rem; }
.stat strong .count { font: inherit; }
.stat strong .plus { font-size: .6em; color: var(--red); vertical-align: top; margin-inline-start: 2px; }

/* ---------- Tabs / platform ---------- */
.tabs { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--surface); }
.tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; background: transparent; border: 0; color: var(--slate); font-weight: 700; font-size: .95rem; transition: color .15s, background .15s; overflow: hidden; }
.tab .icon { width: 20px; height: 20px; }
.tab:hover { color: var(--heading); background: var(--card); }
.tab.is-active { color: var(--red); background: var(--card); }
.tab-progress { position: absolute; bottom: 0; inset-inline-start: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .tab-progress { transform-origin: right; }
.tab.is-active .tab-progress { transform: scaleX(1); transition: transform 6s linear; }
.tabs.is-manual .tab.is-active .tab-progress { transition: none; }
.tab-panel { display: none; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); }
.tab-panel.is-active { display: grid; animation: fadeup .45s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.tab-copy h3 { font-size: 1.55rem; }
.tab-copy > p { color: var(--slate); font-size: 1.05rem; }
.checks { display: grid; gap: 10px; margin: 20px 0 24px; }
.checks li { position: relative; padding-inline-start: 32px; color: var(--ink); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1142f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks-light li { color: rgba(255, 255, 255, .88); }
.checks-light li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ee2a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E"); }
.tab-visual { display: flex; justify-content: center; min-width: 0; }

/* App "shots" that mirror the real portals */
.app-shot { width: 100%; max-width: 560px; display: grid; grid-template-columns: 128px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); font-size: .72rem; }
.app-side { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 12px 10px; display: grid; gap: 4px; align-content: start; }
.app-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: .72rem; margin-bottom: 10px; }
.app-logo img { width: 18px; height: 18px; }
.app-side i { font-style: normal; display: block; padding: 6px 8px; border-radius: 6px; font-size: .68rem; }
.app-side i.on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.app-main { padding: 12px; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.app-top b { color: var(--heading); font-size: .82rem; }
.app-top em { margin-inline-start: auto; font-style: normal; font-size: .64rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.app-kpis > div { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 10px; overflow: hidden; }
.app-kpis small { display: block; color: var(--muted); font-size: .58rem; font-weight: 700; line-height: 1.2; }
.app-kpis strong { display: block; color: var(--heading); font-size: .95rem; font-family: var(--font-display); margin-top: 2px; font-variant-numeric: tabular-nums; }
.app-kpis i { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; }
.k-green { background: var(--green); } .k-amber { background: var(--amber); } .k-blue { background: var(--blue); } .k-red { background: var(--red); }
.app-row2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px; }
.app-chart, .app-list { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 0; }
.app-chart b, .app-list b { display: block; color: var(--heading); font-size: .62rem; margin-bottom: 6px; }
.app-chart svg { width: 100%; height: 86px; display: block; }
.app-chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s ease-out forwards; }
.app-chart .line2 { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.app-list > div { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); }
.app-list > div > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.app-list strong { color: var(--ink); font-size: .66rem; }
.app-list small { color: var(--muted); font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list .tag { font-size: .56rem; padding: 2px 6px; }
.av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .56rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.av-1 { background: linear-gradient(135deg, #1f4a8a, #0b1f42); } .av-2 { background: linear-gradient(135deg, #d1142f, #7a0012); } .av-3 { background: linear-gradient(135deg, #0d9488, #115e59); }
.app-shot-doctor { grid-template-columns: 1fr; }
.enc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.enc-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 0; }
.enc-card b { display: block; color: var(--heading); font-size: .62rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .enc-card b { text-transform: none; letter-spacing: 0; }
.enc-card p { font-size: .66rem; color: var(--slate); margin: 0 0 6px; line-height: 1.4; }
.chip { display: inline-block; font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--red-50); color: var(--red-600); margin: 0 4px 4px 0; }
.icd { display: flex; align-items: center; gap: 6px; font-size: .64rem; color: var(--ink); margin-bottom: 6px; }
.icd code { background: var(--surface-2); color: var(--heading); padding: 2px 6px; border-radius: 6px; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .6rem; }
.enc-rx { grid-column: span 2; }
.rx-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: .66rem; }
.rx-row span { color: var(--ink); font-weight: 700; }
.rx-row small { color: var(--muted); }
.rx-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

.phone { width: 240px; padding: 10px; background: #0f172a; border-radius: 38px; box-shadow: var(--shadow-lg); }
.phone-screen { background: var(--card); border-radius: 30px; padding: 14px 12px 10px; min-height: 440px; display: flex; flex-direction: column; gap: 8px; }
.phone-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.phone-top b { font-size: .9rem; color: var(--heading); flex: 1; }
.phone-top i { width: 22px; height: 22px; border-radius: 50%; background: var(--red-50); display: block; }
.phone-hero { background: linear-gradient(135deg, var(--navy), var(--navy-500)); color: #fff; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.phone-hero small { font-size: .66rem; opacity: .8; font-weight: 700; }
.phone-hero b { font-size: .95rem; font-family: var(--font-display); }
.phone-hero span { font-size: .68rem; opacity: .85; }
.phone-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 10px; }
.phone-card .icon { width: 20px; height: 20px; color: var(--red); }
.phone-card span { display: flex; flex-direction: column; line-height: 1.25; }
.phone-card b { font-size: .78rem; color: var(--ink); }
.phone-card i { font-style: normal; font-size: .7rem; color: var(--muted); }
.phone-nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid var(--line); }
.phone-nav i { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-2); display: block; }
.phone-nav i.on { background: var(--red); }

.wa-shot { width: 100%; max-width: 420px; background: #e5ddd5; border-radius: 18px; padding: 0 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); overflow: hidden; }
.wa-head { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; margin: 0 -14px 8px; padding: 10px 14px; }
.wa-head img { width: 28px; height: 28px; border-radius: 50%; background: #fff; padding: 3px; }
.wa-head span { display: flex; flex-direction: column; line-height: 1.2; }
.wa-head b { font-size: .85rem; } .wa-head small { font-size: .68rem; opacity: .85; }
.wa-shot .bubble { font-size: .86rem; max-width: 85%; color: #0f172a; }
.wa-shot .bubble.in { background: #fff; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--navy); color: #fff; line-height: 1.1; }
.store:hover { background: var(--navy-700); color: #fff; }
.store .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: .66rem; opacity: .85; }
.store strong { font-size: 1rem; }
.store-soon { background: var(--surface-2); color: var(--muted); cursor: default; }
.store-dark { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.store-dark:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Journey ---------- */
.journey { position: relative; padding-top: 10px; }
.journey-line { position: absolute; top: 46px; left: 0; width: 100%; height: 60px; color: var(--red); opacity: .6; }
.journey-line path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.journey.is-visible .journey-line path { animation: drawline 2.4s ease-out forwards; }
@keyframes drawline { to { stroke-dashoffset: 0 } }
.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.jstep { text-align: center; padding: 0 6px; }
.jicon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--card); border: 2px solid var(--red); color: var(--red); box-shadow: 0 0 0 8px var(--surface); transition: transform .3s, background .3s, color .3s; }
.jstep:hover .jicon { transform: scale(1.08); background: var(--red); color: #fff; }
.jicon .icon { width: 26px; height: 26px; }
.jstep h3 { font-size: 1.05rem; margin-bottom: 6px; }
.jstep p { color: var(--slate); font-size: .9rem; margin: 0; }

/* ---------- Features (spotlight cards) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(209, 20, 47, .12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(179, 0, 27, .25); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); margin-bottom: 16px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Compare ---------- */
.compare { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare th { font-family: var(--font-display); font-weight: 700; color: var(--heading); background: var(--surface); font-size: .9rem; }
.compare th.hl { display: table-cell; }
.compare th img { display: inline-block; vertical-align: -3px; margin-inline-end: 4px; }
.compare td:first-child, .compare th:first-child { text-align: start; color: var(--ink); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td .icon { width: 20px; height: 20px; margin: 0 auto; }
.compare .no { color: #cbd5e1; } :root[data-theme="dark"] .compare .no { color: #3a4a6a; }
.compare .part { color: var(--amber); }
.compare .yes { color: var(--green); }
.compare .hl { background: rgba(209, 20, 47, .06); }
.compare .yes .icon { stroke-width: 3; }

/* ---------- AI ---------- */
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy) 60%, var(--navy-700)); color: #fff; }
.section-dark h2 { color: #fff; }
.ai-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ai-copy > p { color: rgba(255, 255, 255, .84); font-size: 1.08rem; }
.prompt-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 18px; backdrop-filter: blur(6px); min-height: 330px; display: flex; flex-direction: column; gap: 12px; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt-chips button { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 600; }
.prompt-chips button.is-active, .prompt-chips button:hover { background: #fff; color: var(--navy); border-color: #fff; }
.prompt-q { align-self: flex-end; max-width: 90%; background: var(--red); color: #fff; padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-weight: 700; min-height: 46px; }
html[dir="rtl"] .prompt-q { border-radius: 16px 16px 16px 4px; }
.prompt-a { background: #fff; color: #0f172a; border-radius: 16px 16px 16px 4px; padding: 14px 16px; font-size: .95rem; line-height: 1.55; min-height: 120px; }
html[dir="rtl"] .prompt-a { border-radius: 16px 16px 4px 16px; }
.prompt-a .pa-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #e3e8f0; font-size: .9rem; }
.prompt-a .pa-row:last-child { border-bottom: 0; }
.prompt-a .pa-row b { color: var(--navy); }
.prompt-a .pa-head { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.prompt-a .pa-cta { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: #fdecee; color: var(--red); font-weight: 700; font-size: .82rem; }
.caret { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-inline-start: 2px; vertical-align: -2px; animation: blink 1s infinite; }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.sec:hover { border-color: rgba(179, 0, 27, .3); transform: translateY(-3px); }
.sec .icon { width: 28px; height: 28px; color: var(--red); margin-bottom: 12px; }
.sec h3 { font-size: 1.05rem; }
.sec p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(179, 0, 27, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--heading); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--slate); margin: 0 0 16px; }

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy p { color: var(--slate); font-size: 1.08rem; }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { color: var(--red); }
.contact-list a { color: var(--heading); font-weight: 700; }
.next-steps { display: grid; gap: 10px; margin-top: 28px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; counter-increment: ns; }
.next-steps li::before { content: counter(ns); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; font-family: var(--font-display); }
.next-steps b { color: var(--heading); font-size: .95rem; }
.next-steps span { color: var(--muted); font-size: .85rem; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--slate); }
.field input, .field select, .field textarea { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(31, 74, 138, .15); }
.field.is-invalid input { border-color: var(--red); }
.form-error { color: var(--red); font-size: .88rem; font-weight: 700; margin: -4px 0 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-note { color: var(--muted); font-size: .82rem; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { max-width: 380px; font-size: .95rem; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
html[lang="ar"] .site-footer h4 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.site-footer div > a { display: block; color: rgba(255, 255, 255, .78); padding: 5px 0; font-size: .95rem; }
.site-footer div > a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px calc(var(--gutter) + 70px) 18px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
html[dir="rtl"] .footer-bottom { padding: 18px var(--gutter) 18px calc(var(--gutter) + 70px); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.footer-status.is-ok i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.footer-status.is-down i { background: var(--amber); }

/* ---------- Floating + misc ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--wa); color: #0b2e1d; font-weight: 800; font-size: .9rem; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); z-index: 90; transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); color: #0b2e1d; }
.wa-float .icon { width: 22px; height: 22px; }
.back-top { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; z-index: 90; }
.back-top .icon { transform: rotate(-90deg); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red); color: #fff; }
.mobile-cta { display: none; }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .25s; z-index: 200; max-width: calc(100% - 40px); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html.no-observer .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock-chat, .mock-badge, .mock-chart i, .dot-amber, .ticker-track, .app-chart .line, .app-chart .line2 { animation: none; }
  .app-chart .line, .app-chart .line2 { stroke-dashoffset: 0; }
  .journey-line path { stroke-dashoffset: 0; }
  .tilt { transform: none !important; }
}

.page-404 { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.page-404 h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--red); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .nav > a[href="#security"] { display: none; }
  .nav-wrap { gap: 14px; }
}
@media (max-width: 1240px) {
  .nav-wrap { gap: 12px; }
  .nav > a { padding: 8px 8px; font-size: .88rem; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { padding: 10px 14px; font-size: .9rem; }
  .lang-toggle span { display: none; }
  .lang-toggle { padding: 9px 10px; }
}
@media (max-width: 1080px) {
  .feature-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
  .journey-steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .journey-line { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .ai-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 36px; min-height: 0; }
  .mock-window { margin-inline: auto; }
  .tilt { transform: none !important; }
  .mock-chat { position: static; width: min(100%, 540px); margin: 18px auto 0; transform: none; animation: none; }
  .mock-badge-1 { top: -14px; inset-inline-end: 8px; }
  .mock-badge-2 { display: none; }
  .tab-panel { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px; gap: 4px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; border-top: 1px solid var(--line); margin: 0; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--surface-2); border-radius: 0; }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 18px; }
  .nav-burger { display: inline-flex; }
  .dropdown { display: none; }
  .nav-actions .btn-primary { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .brand img { width: 120px; }
  .feature-grid, .sec-grid, .stats-grid, .field-row, .tab-list, .journey-steps { grid-template-columns: 1fr; }
  .tab { justify-content: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tab-progress { display: none; }
  .tab.is-active { box-shadow: inset 4px 0 0 var(--red); }
  html[dir="rtl"] .tab.is-active { box-shadow: inset -4px 0 0 var(--red); }
  .hero { padding-top: 40px; padding-bottom: 60px; }
  .hero .lead { font-size: 1.05rem; }
  .hero-cta .btn, .form-actions .btn { width: 100%; }
  .contact-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .lang-toggle span { display: none; }
  .mock-window { padding: 12px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .mock-stat:last-child { grid-column: span 2; }
  .app-shot { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-kpis { grid-template-columns: repeat(2, 1fr); }
  .app-row2 { grid-template-columns: 1fr; }
  .jstep { text-align: start; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; }
  .jstep .jicon { width: 56px; height: 56px; margin: 0; grid-row: span 2; box-shadow: none; }
  .wa-float { display: none; }
  .back-top { bottom: 76px; }
  .mobile-cta { display: flex; gap: 8px; position: fixed; bottom: 0; inset-inline: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--header-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 95; }
  .mobile-cta .btn-primary { flex: 1; }
  .mobile-cta .btn-whatsapp { width: 48px; padding: 0; }
  body { padding-bottom: 70px; }
  .site-footer { padding-bottom: 0; }
}

/* Technical contact values retain their reading order in both languages. */
input[type="email"], input[type="tel"], a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }

@font-face { font-family: "Cairo"; src: url("../fonts/Cairo.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; letter-spacing: 0; }
