/* ═══════════════════════════════════════════════════════════
   NIDAVA AI — Bilingual Professional v3
   Colors: #1b1b1b · #1e549f · #ffffff
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg-deep: #141414;
  --bg-body: #1b1b1b;
  --bg-elevated: #1e1e1e;
  --bg-card: #242424;
  --bg-card-hover: #2a2a2a;
  --accent: #1e549f;
  --accent-dim: #1a4a8a;
  --accent-light: #3d7ec9;
  --accent-pale: rgba(30, 84, 159, 0.15);
  --accent-glow: rgba(30, 84, 159, 0.35);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-subtle: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.28);
  --font-ar: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-en: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font: var(--font-ar);
}

/* ── LTR English overrides ── */
[dir="ltr"] {
  --font: var(--font-en);
}

/* ── Hidden attribute — ensure display: none wins regardless of other rules ── */
[hidden] { display: none !important; }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text);
  background: var(--bg-body);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

::selection { background: rgba(30, 84, 159, 0.4); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; color: rgba(255,255,255,0.95); }
img, svg { display: block; }

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 200;
  transition: width 0.1s linear;
  border-radius: 0 0 2px 0;
  box-shadow: 0 0 12px var(--accent-glow);
}
[dir="ltr"] .scroll-progress { right: auto; left: 0; border-radius: 0 0 0 2px; }

/* ── Skip Link ── */
.skip-link {
  position: fixed;
  top: 0; right: 1rem; z-index: 1000;
  padding: 0.65rem 1.1rem;
  background: var(--accent); color: var(--text);
  font-weight: 600; font-size: 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-120%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ── Background ── */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 50% at 50% -5%, black 20%, transparent 60%);
}
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1140px, 92vw); margin-inline: auto; position: relative; z-index: 1; }
.container-narrow { width: min(740px, 92vw); }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 100;
  background: rgba(27,27,27,0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled {
  background: rgba(18,18,18,0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.38);
}
.header-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-ar); font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0;
}
.logo-mark {
  height: 56px; width: auto; display: block;
  border-radius: 0; object-fit: contain;
  flex-shrink: 0;
}
.logo-mark.small { height: 40px; width: auto; border-radius: 0; }
.logo-ai { color: var(--accent-light); font-weight: 700; }

.nav {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: flex-end;
}
.nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s var(--ease); position: relative; padding: 0.25rem 0;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent-light);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--text); }
.nav a:not(.nav-cta):hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.15rem;
  background: var(--accent); color: var(--text) !important;
  border-radius: 999px; font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(30,84,159,0.25);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Parent company link in NIDAVA AI sub-site */
.nav-parent {
  color: var(--text-subtle) !important;
  font-size: 0.82rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 100px !important;
  padding: 4px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.nav-parent:hover {
  color: var(--text) !important;
  border-color: var(--border-strong) !important;
  background: rgba(255,255,255,0.04) !important;
}
.nav-parent::after { display: none !important; }

/* Language toggle */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-toggle {
  display: flex; align-items: center; justify-content: center;
  height: 34px; min-width: 52px; padding: 0 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px; cursor: pointer;
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.lang-toggle:hover {
  background: rgba(30,84,159,0.2);
  border-color: rgba(30,84,159,0.5);
  color: var(--text); transform: translateY(-1px);
}
.footer-lang-toggle { margin-top: 1rem; }

/* Menu toggle */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px; border-radius: var(--radius);
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 1px; transition: transform 0.28s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    background: rgba(20,20,20,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    gap: 0.2rem;
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.7rem 0.5rem; border-radius: var(--radius); }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(255,255,255,0.04); }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-mock { order: -1; max-width: 440px; margin-inline: auto; }
}
.hero-copy { position: relative; z-index: 2; }
.hero-visual { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-1 { width: min(560px,95vw); height: min(560px,95vw); background: var(--accent-glow); top: 5%; left: -18%; opacity: 0.5; }
.orb-2 { width: min(380px,80vw); height: min(380px,80vw); background: rgba(30,84,159,0.2); bottom: 8%; right: -6%; }
.orb-3 { width: 250px; height: 250px; background: rgba(61,126,201,0.12); top: 42%; right: 22%; opacity: 0.7; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.65rem;
  font-size: 0.77rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-light); border: 1px solid rgba(30,84,159,0.5);
  border-radius: 999px; margin-bottom: 1.5rem;
  background: rgba(30,84,159,0.1);
  animation: fadeUp 0.9s var(--ease) both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-light); box-shadow: 0 0 12px var(--accent-glow);
  animation: pulseDot 2.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title { margin: 0 0 1.25rem; font-family: var(--font-ar); }
.hero-line {
  display: block;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,0.84) 55%,rgba(195,215,240,0.72) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp 0.9s var(--ease) 0.06s both;
}
.hero-sub {
  display: block; margin-top: 0.9rem;
  font-size: clamp(1.1rem,2.3vw,1.4rem); font-weight: 600;
  color: var(--text-muted); max-width: 32ch; line-height: 1.45;
  animation: fadeUp 0.9s var(--ease) 0.12s both;
}
.hero-lead {
  max-width: 55ch; color: var(--text-muted); font-size: 1.06rem;
  margin: 0 0 2rem;
  animation: fadeUp 0.9s var(--ease) 0.18s both;
}
.hero-strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem;
  animation: fadeUp 0.9s var(--ease) 0.24s both;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--font); font-size: 0.97rem; font-weight: 600;
  border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, background 0.22s, border-color 0.22s;
}
.btn-icon { flex-shrink: 0; transform: scaleX(-1); }
[dir="ltr"] .btn-icon { transform: scaleX(1); }
.btn-primary {
  background: linear-gradient(145deg, var(--accent-light), var(--accent), var(--accent-dim));
  color: var(--text); box-shadow: 0 10px 36px var(--accent-glow);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px var(--accent-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: rgba(30,84,159,0.5); background: rgba(30,84,159,0.12); }
.btn-full { width: 100%; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
  margin: 0; padding: 1.75rem 0 0; border-top: 1px solid var(--border);
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr; } }
.hero-stats dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent-light); margin: 0 0 0.4rem; }
.hero-stats dd { margin: 0; font-weight: 600; color: var(--text-muted); font-size: 0.92rem; line-height: 1.45; }

/* Hero Mock UI */
.hero-mock { position: relative; z-index: 2; }
.mock-window {
  background: linear-gradient(165deg,#252525,#1a1a1a);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  box-shadow: var(--shadow), 0 0 0 1px rgba(30,84,159,0.1);
  overflow: hidden;
  animation: fadeUp 1s var(--ease) 0.2s both;
}
.mock-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.mock-chrome span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--text-subtle); opacity: 0.4;
}
.mock-chrome span:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.mock-chrome span:nth-child(2) { background: #febc2e; opacity: 0.8; }
.mock-chrome span:nth-child(3) { background: #28c840; opacity: 0.8; }
.mock-title-pill {
  margin-inline-start: auto; font-size: 0.75rem; font-weight: 600;
  color: var(--text-subtle); font-family: var(--font-en);
}
.mock-body { display: grid; grid-template-columns: 68px 1fr; min-height: 200px; }
.mock-sidebar {
  padding: 14px 10px; border-inline-start: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.mock-pill { height: 8px; border-radius: 4px; background: var(--border-strong); opacity: 0.6; }
.mock-pill.active { background: linear-gradient(90deg,var(--accent),var(--accent-light)); opacity: 1; }
.mock-main { padding: 14px 16px 18px; }
.mock-kpi-row { display: flex; gap: 8px; margin-bottom: 14px; }
.mock-kpi {
  flex: 1; padding: 8px; background: rgba(0,0,0,0.2); border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px;
}
.mock-kpi-num { font-size: 0.82rem; font-weight: 700; color: var(--accent-light); font-family: var(--font-en); }
.mock-kpi-lbl { font-size: 0.65rem; color: var(--text-subtle); }
.mock-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px; padding: 8px; margin-bottom: 12px;
  background: rgba(0,0,0,0.18); border-radius: var(--radius); border: 1px solid var(--border);
}
.mock-bar {
  flex: 1; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg,var(--accent-light),var(--accent-dim));
  height: var(--h); min-height: 15%;
  animation: barGrow 1.3s var(--ease) 0.55s both;
}
.mock-bar.highlight { background: linear-gradient(180deg,#60a5fa,var(--accent-light)); }
.mock-bar:nth-child(2) { animation-delay:0.65s; }
.mock-bar:nth-child(3) { animation-delay:0.75s; }
.mock-bar:nth-child(4) { animation-delay:0.85s; }
.mock-bar:nth-child(5) { animation-delay:0.95s; }
.mock-bar:nth-child(6) { animation-delay:1.05s; }
@keyframes barGrow { from { transform:scaleY(0); transform-origin:bottom; opacity:0; } to { transform:scaleY(1); opacity:1; } }
.mock-rows { display: flex; flex-direction: column; gap: 7px; }
.mock-row { height: 9px; border-radius: 4px; background: var(--border-strong); }
.mock-row.short { width: 65%; }
.mock-row.medium { width: 80%; }
.mock-float {
  position: absolute; bottom: 12%; right: -6%;
  display: flex; align-items: center; gap: 10px;
  max-width: 230px; padding: 11px 14px;
  background: rgba(30,84,159,0.95);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); font-size: 0.78rem; line-height: 1.4;
  animation: floatIn 1s var(--ease) 0.9s both;
}
[dir="ltr"] .mock-float { right: auto; left: -6%; }
@media (max-width: 960px) { .mock-float { right: 4%; bottom: 5%; } }
.mock-float-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.2); display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
}
.mock-float-label { display: block; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; margin-bottom: 3px; }
.mock-float-text { color: rgba(255,255,255,0.95); }
@keyframes floatIn { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ═══ TRUST STRIP ═══ */
.trust-strip {
  position: relative; z-index: 1; padding: 1.15rem 0;
  border-block: 1px solid var(--border); background: rgba(18,18,18,0.6);
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem 1.5rem;
}
.trust-label { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--text-subtle); flex-shrink: 0; }
.trust-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.trust-pills li {
  font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.8rem;
  border-radius: 999px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); color: var(--text-muted);
}

/* ═══ SECTIONS ═══ */
.section { padding: clamp(4rem,8vw,5.5rem) 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 700;
  color: var(--accent-light); margin-bottom: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 1rem; font-family: var(--font-ar);
  font-size: clamp(1.85rem,3.8vw,2.5rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.18;
}
[dir="ltr"] .section-head h2 { font-family: var(--font-en); letter-spacing: -0.03em; }
.section-desc { margin: 0; color: var(--text-muted); font-size: 1.04rem; line-height: 1.76; }

/* ── About ── */
.about { background: linear-gradient(180deg,transparent,rgba(30,84,159,0.04) 50%,transparent); }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.35rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.card-feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.9rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  height: 100%;
  transition-delay: var(--delay, 0ms);
}
.card-feature:hover {
  border-color: rgba(30,84,159,0.42); transform: translateY(-5px);
  background: var(--bg-card-hover); box-shadow: var(--shadow-card);
}
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--radius); background: rgba(30,84,159,0.16);
  border: 1px solid rgba(30,84,159,0.32); color: var(--accent-light);
  margin-bottom: 1.1rem;
}
.card-feature h3 { margin: 0 0 0.65rem; font-family: var(--font-ar); font-size: 1.16rem; font-weight: 700; }
[dir="ltr"] .card-feature h3 { font-family: var(--font-en); }
.card-feature p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* ── Metrics ── */
.metrics { background: var(--bg-elevated); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.15rem; }
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem 1.5rem; text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.metric-card:hover { border-color: rgba(30,84,159,0.38); box-shadow: var(--shadow-card); }
.metric-value {
  display: block; font-family: var(--font-en);
  font-size: clamp(2rem,4.5vw,2.75rem); font-weight: 800;
  color: var(--text); letter-spacing: -0.04em; margin-bottom: 0.5rem; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric-title { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; }
.metric-desc { margin: 0; font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* ── Expertise ── */
.expertise-list { list-style: none; margin: 0; padding: 0; max-width: 900px; margin-inline: auto; }
.expertise-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border); align-items: start;
}
.expertise-list li:first-child { border-top: 1px solid var(--border); }
.expertise-num {
  font-family: var(--font-en); font-size: 0.82rem; font-weight: 800;
  color: var(--accent); opacity: 0.8; padding-top: 0.2rem;
}
.expertise-body strong { display: block; font-family: var(--font-ar); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
[dir="ltr"] .expertise-body strong { font-family: var(--font-en); }
.expertise-body span { color: var(--text-muted); font-size: 0.97rem; }

/* ── Systems ── */
.systems { background: linear-gradient(180deg,var(--bg-body),#1a1f26 50%,var(--bg-body)); }
.systems-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.35rem; }
@media (max-width: 900px) { .systems-grid { grid-template-columns: 1fr; } }
.system-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.85rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  transition-delay: var(--delay, 0ms);
}
.system-card::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 200px; height: 200px;
  background: radial-gradient(circle,var(--accent-glow),transparent 68%); opacity: 0.4; pointer-events: none;
}
.system-card:hover { transform: translateY(-5px); border-color: rgba(30,84,159,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.system-icon-wrap { color: var(--accent-light); margin-bottom: 1.1rem; }
.system-card h3 { margin: 0 0 0.75rem; font-family: var(--font-ar); font-size: 1.22rem; }
[dir="ltr"] .system-card h3 { font-family: var(--font-en); }
.system-card p { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.97rem; }
.system-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.system-tags li {
  font-size: 0.77rem; font-weight: 600; padding: 0.33rem 0.72rem;
  background: rgba(30,84,159,0.18); color: var(--text);
  border-radius: 999px; border: 1px solid rgba(30,84,159,0.32);
}

/* ── Integrations ── */
.integrations { background: var(--bg-elevated); }
.int-categories {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem;
}
@media (max-width: 900px) { .int-categories { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .int-categories { grid-template-columns: 1fr; } }
.int-cat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color 0.25s;
}
.int-cat:hover { border-color: rgba(30,84,159,0.35); }
.int-cat-title { margin: 0 0 1rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-light); }
.int-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.int-item {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.int-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.int-initial {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px;
  background: linear-gradient(145deg,var(--accent),var(--accent-dim));
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: var(--text); font-family: var(--font-en);
}
.int-more {
  margin: 2rem auto 0; text-align: center; color: var(--text-subtle);
  font-size: 0.9rem; max-width: 60ch;
}

/* ── Demo ── */
.demo-section { background: linear-gradient(180deg,var(--bg-body),rgba(30,84,159,0.06) 50%,var(--bg-body)); }
.demo-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
.demo-info h3 { margin: 0 0 0.85rem; font-family: var(--font-ar); font-size: 1.3rem; font-weight: 700; }
[dir="ltr"] .demo-info h3 { font-family: var(--font-en); }
.demo-info p { margin: 0 0 1.5rem; color: var(--text-muted); }
.demo-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.demo-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--text-muted); }
.demo-features svg { color: var(--accent-light); flex-shrink: 0; }

.demo-chat {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card);
}
.chat-header {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(145deg,var(--accent-light),var(--accent-dim));
  display: grid; place-items: center; font-size: 0.95rem; font-weight: 800; font-family: var(--font-en);
}
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-status { font-size: 0.78rem; color: var(--accent-light); }
.chat-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { max-width: 86%; animation: msgIn 0.5s var(--ease) both; }
.chat-msg-1 { animation-delay: 0.3s; }
.chat-msg-2 { animation-delay: 0.75s; }
.chat-msg-3 { animation-delay: 1.3s; }
.chat-msg-4 { animation-delay: 1.85s; }
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.chat-msg.user { align-self: flex-end; }
.chat-msg.user p {
  margin: 0; padding: 0.75rem 1rem; border-radius: 16px 4px 16px 16px;
  background: linear-gradient(135deg,var(--accent),var(--accent-dim));
  font-size: 0.92rem; line-height: 1.6;
}
[dir="ltr"] .chat-msg.user p { border-radius: 4px 16px 16px 16px; }
.chat-msg.ai { align-self: flex-start; }
.chat-name { display: block; font-size: 0.72rem; font-weight: 700; color: var(--accent-light); margin-bottom: 0.35rem; }
.chat-msg.ai p {
  margin: 0; padding: 0.75rem 1rem; border-radius: 4px 16px 16px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 0.92rem; line-height: 1.65;
}
[dir="ltr"] .chat-msg.ai p { border-radius: 16px 4px 16px 16px; }

/* ── Process ── */
.process { background: var(--bg-elevated); }
.process-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 900px) { .process-track { grid-template-columns: 1fr; } }
.process-step {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.35rem 1.65rem;
  transition: border-color 0.25s, background 0.25s;
}
.process-step:hover { border-color: rgba(30,84,159,0.38); background: var(--bg-card-hover); }
.process-index {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: linear-gradient(145deg,var(--accent-light),var(--accent-dim));
  font-family: var(--font-en); font-weight: 800; font-size: 0.92rem;
  margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1);
}
.process-content h3 { margin: 0 0 0.5rem; font-size: 1.04rem; font-weight: 700; }
.process-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
@media (min-width: 901px) {
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; left: -0.65rem; width: 1.3rem; height: 2px;
    background: linear-gradient(90deg,transparent,var(--accent)); transform:translateY(-50%); opacity:0.35;
  }
  [dir="ltr"] .process-step:not(:last-child)::after { left: auto; right: -0.65rem; background: linear-gradient(90deg,var(--accent),transparent); }
}

/* ── Compliance ── */
.compliance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 768px) { .compliance-grid { grid-template-columns: 1fr; } }
.compliance-card {
  padding: 1.65rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: rgba(255,255,255,0.018);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.compliance-card:hover { border-color: rgba(30,84,159,0.38); transform: translateY(-3px); }
.compliance-card h3 { margin: 0 0 0.65rem; font-size: 1.05rem; font-weight: 700; color: var(--accent-light); }
.compliance-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* ── Stories ── */
.stories { background: linear-gradient(180deg,rgba(30,84,159,0.05),transparent 40%); }
.stories-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 900px) { .stories-grid { grid-template-columns: 1fr; } }
.story-card {
  margin: 0; padding: 1.85rem 1.7rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.story-card:hover { transform: translateY(-4px); border-color: rgba(30,84,159,0.35); }
.story-card::before {
  content: "\201C"; position: absolute; top: 0.8rem; right: 1.2rem;
  font-size: 3.5rem; font-family: Georgia,serif; line-height:1;
  color: var(--accent); opacity:0.3;
}
[dir="ltr"] .story-card::before { content: "\201C"; right: auto; left: 1.2rem; }
.story-card p { margin: 0 0 1.2rem; font-size: 0.97rem; color: var(--text-muted); line-height:1.75; position:relative; z-index:1; }
.story-card footer { font-size: 0.85rem; font-weight: 600; }
.story-card cite { font-style: normal; color: var(--text-subtle); }

/* ── CV ── */
.cv-layout { display: grid; grid-template-columns: 1fr min(310px,33%); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .cv-layout { grid-template-columns: 1fr; } }
.cv-main { display: flex; flex-direction: column; gap: 1.35rem; }
.cv-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.9rem 2rem; }
.cv-block h3 { margin: 0 0 1rem; font-family: var(--font-ar); font-size: 1.1rem; color: var(--accent-light); }
[dir="ltr"] .cv-block h3 { font-family: var(--font-en); }
.cv-block p { margin: 0; color: var(--text-muted); }
.cv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .cv-two { grid-template-columns: 1fr; } }
.cv-skills { margin: 0; padding: 0 1.2rem 0 0; color: var(--text-muted); }
[dir="ltr"] .cv-skills { padding: 0 0 0 1.2rem; }
.cv-skills li { margin-bottom: 0.55rem; }
.cv-mini-list { margin: 0; padding: 0 1.1rem 0 0; color: var(--text-muted); font-size: 0.93rem; }
[dir="ltr"] .cv-mini-list { padding: 0 0 0 1.1rem; }
.cv-mini-list li { margin-bottom: 0.45rem; }
.cv-side { display: flex; flex-direction: column; gap: 1rem; }
.cv-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.45rem; }
.cv-card.accent { background: linear-gradient(150deg,rgba(30,84,159,0.28),var(--bg-card)); border-color: rgba(30,84,159,0.42); }
.cv-card h4 { margin: 0 0 0.75rem; font-family: var(--font-ar); font-size: 1rem; }
[dir="ltr"] .cv-card h4 { font-family: var(--font-en); }
.cv-card ul { margin: 0; padding: 0 1rem 0 0; color: var(--text-muted); font-size: 0.92rem; }
[dir="ltr"] .cv-card ul { padding: 0 0 0 1rem; }
.cv-card.accent p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-section { background: var(--bg-elevated); }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); overflow: hidden; }
.faq-trigger {
  width: 100%; text-align: right; padding: 1.1rem 1.3rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  color: var(--text); background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background 0.2s;
}
[dir="ltr"] .faq-trigger { text-align: left; }
.faq-trigger::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--accent-light); border-bottom: 2px solid var(--accent-light);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq-trigger[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq-trigger:hover { background: rgba(255,255,255,0.03); }
.faq-panel { padding: 0 1.3rem 1.15rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.72; }
.faq-panel[hidden] { display: none; }
.faq-panel p { margin: 0; }

/* ── Contact ── */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start;
  padding: clamp(2rem,4vw,2.75rem) clamp(1.75rem,4vw,2.5rem);
  background: linear-gradient(135deg,rgba(30,84,159,0.2),var(--bg-card) 60%);
  border: 1px solid rgba(30,84,159,0.35); border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; } }
.contact-copy h2 { margin: 0 0 0.75rem; font-family: var(--font-ar); font-size: clamp(1.55rem,3.2vw,2rem); }
[dir="ltr"] .contact-copy h2 { font-family: var(--font-en); }
.contact-copy p { margin: 0 0 1.25rem; color: var(--text-muted); max-width: 38ch; }
.contact-bullets { margin: 0 0 1.5rem; padding: 0 1.2rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
[dir="ltr"] .contact-bullets { padding: 0 0 0 1.2rem; }
.contact-bullets li { margin-bottom: 0.35rem; }
.contact-direct { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-email { font-size: 1.05rem; font-weight: 700; color: var(--accent-light); }
.contact-email:hover { text-decoration: underline; }
.contact-phone { font-size: 0.92rem; color: var(--text-muted); font-family: var(--font-en); }
.contact-address { font-size: 0.88rem; color: var(--text-subtle); font-family: var(--font-en); letter-spacing: 0.01em; }
.contact-website { font-size: 0.88rem; color: var(--text-subtle); font-family: var(--font-en); letter-spacing: 0.03em; transition: color 0.2s; }
.contact-website:hover { color: var(--accent-light); }
.footer-domain { color: var(--text-subtle); font-family: var(--font-en); font-size: inherit; transition: color 0.2s; }
.footer-domain:hover { color: var(--accent-light); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.83rem; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 0.7rem 0.85rem;
  font-family: var(--font); font-size: 0.93rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%; resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-subtle); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(61,126,201,0.2);
}
.form-field input.error,
.form-field textarea.error { border-color: #f87171; }
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { background: #242424; }
.form-success {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1rem; border-radius: var(--radius);
  background: rgba(40,200,100,0.1); border: 1px solid rgba(40,200,100,0.3);
  font-size: 0.92rem; font-weight: 600; color: #4ade80;
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 2.75rem 0 1.5rem; background: var(--bg-deep); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 2rem 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-ar); font-weight: 800; margin-bottom: 0.5rem; }
.footer-tagline { margin: 0; font-size: 0.9rem; color: var(--text-subtle); max-width: 26ch; }
.footer-heading { margin: 0 0 0.85rem; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 0.25rem 0; font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { padding-top: 1.25rem; }
.footer-copy { margin: 0; font-size: 0.87rem; color: var(--text-subtle); }

/* Back to top */
.to-top {
  position: fixed; bottom: 1.75rem; left: 1.75rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(36,36,36,0.92); backdrop-filter: blur(10px);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: opacity 0.3s, transform 0.3s var(--ease), border-color 0.2s, background 0.2s;
}
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--accent); background: rgba(30,84,159,0.3); transform: translateY(-3px); }

/* ── Reveal Animations ── */
.reveal-target {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal-target.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-target { opacity: 1; transform: none; transition: none; }
}

/* ── Print: CV ── */
@media print {
  .site-header, .hero, .trust-strip, .about, .metrics, .expertise, .systems,
  .integrations, .demo-section, .process, .compliance, .stories, .faq-section,
  .contact, .site-footer, .to-top, .scroll-progress, .skip-link { display: none !important; }
  .cv-section { display: block !important; padding: 2rem 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .cv-block, .cv-card { background: #f5f5f5 !important; border-color: #ccc !important; color: #000 !important; }
  .cv-block h3, .cv-card h4, .section-head h2 { color: #1e549f !important; }
  .cv-block p, .cv-skills, .cv-mini-list, .cv-card ul, .cv-card p { color: #333 !important; }
  .section-tag { color: #1e549f !important; }
}
