:root {
  --navy-950: #021529;
  --navy-900: #031a33;
  --navy-850: #042541;
  --navy-800: #062f52;
  --teal-700: #075f74;
  --teal-600: #0b7890;
  --cyan: #2fe1f3;
  --cyan-soft: #74e8ff;
  --white: #ffffff;
  --text: #f4fbff;
  --muted: #c6d8e6;
  --muted-2: #91b2c8;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(116, 232, 255, 0.22);
  --border-soft: rgba(255, 255, 255, 0.11);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1240px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 90% 7%, rgba(47, 225, 243, 0.20), transparent 20rem),
    radial-gradient(circle at 12% 83%, rgba(47, 225, 243, 0.14), transparent 22rem),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 38%, var(--navy-800) 66%, var(--teal-700) 100%);
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}
body::before {
  width: 760px;
  height: 760px;
  top: -230px;
  inset-inline-end: -150px;
  border-radius: 50%;
  border: 1px solid rgba(47, 225, 243, 0.16);
  box-shadow: 0 0 0 82px rgba(47, 225, 243, 0.028), 0 0 0 168px rgba(47, 225, 243, 0.018), 0 0 0 252px rgba(47, 225, 243, 0.012);
}
body::after {
  width: 270px;
  height: 300px;
  bottom: 90px;
  inset-inline-start: 0;
  background-image: radial-gradient(circle, rgba(47, 225, 243, 0.40) 1.4px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: 0.50;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.skip-link { position: absolute; top: 10px; left: -9999px; z-index: 999; padding: 10px 14px; color: #00192e; background: #fff; border-radius: 10px; }
.skip-link:focus { left: 10px; }
.lang-ar, .lang-en { display: none; }
.lang-inline-ar, .lang-inline-en { display: none; }
body.lang-ar-active .lang-ar { display: block; }
body.lang-en-active .lang-en { display: block; }
body.lang-ar-active .lang-inline-ar { display: inline; }
body.lang-en-active .lang-inline-en { display: inline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(2, 19, 38, 0.90);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 230px 1fr 252px;
  align-items: center;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { width: 188px; height: auto; }
.nav-wrap { display: flex; justify-content: center; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.main-nav a {
  padding: 12px 17px;
  color: var(--muted);
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); background: rgba(255,255,255,0.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #031b32; background: linear-gradient(135deg, var(--cyan-soft), var(--cyan)); box-shadow: 0 14px 26px rgba(47,225,243,0.20); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.17); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: .94rem; }
.lang-toggle, .menu-toggle { min-width: 104px; color: var(--text); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); }
.menu-toggle { display: none; min-width: 46px; font-size: 1.25rem; }

.hero {
  position: relative;
  padding: 0 0 54px;
}
.hero-cover {
  min-height: calc(100vh - var(--header-h));
  max-height: 820px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(2, 18, 38, .98) 0%, rgba(3, 28, 52, .95) 37%, rgba(6, 76, 98, .82) 70%, rgba(10, 125, 145, .72) 100%),
    radial-gradient(circle at 84% 22%, rgba(47,225,243,.28), transparent 20rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-800) 55%, var(--teal-600));
  border-bottom: 1px solid rgba(116,232,255,.18);
}
.hero-cover::before,
.page-hero::before,
.cta-panel::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  top: -160px;
  inset-inline-end: -120px;
  border-radius: 50%;
  border: 1px solid rgba(47,225,243,.18);
  box-shadow: 0 0 0 68px rgba(47,225,243,.035), 0 0 0 136px rgba(47,225,243,.024), 0 0 0 204px rgba(47,225,243,.014);
}
.hero-cover::after,
.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 380px;
  inset-inline-start: 0;
  top: 18%;
  background-image: radial-gradient(circle, rgba(47,225,243,.42) 1.5px, transparent 1.7px);
  background-size: 15px 15px;
  opacity: .46;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  padding: clamp(50px, 8vw, 90px) 0;
}
.hero-copy { max-width: 730px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: var(--cyan-soft);
  border: 1px solid rgba(47,225,243,.25);
  background: rgba(47,225,243,.10);
  border-radius: 999px;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.65rem, 5.8vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -1px;
}
.accent { color: var(--cyan); }
.hero p, .lead {
  color: var(--muted);
  line-height: 1.95;
  font-size: clamp(1.06rem, 1.55vw, 1.27rem);
  max-width: 800px;
}
.hero-actions,
.cta-row,
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pill-list span {
  padding: 11px 15px;
  color: var(--muted);
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-weight: 700;
}
.hero-visual { position: relative; }
.device-stage { position: relative; transform: perspective(1200px) rotateY(-4deg); }
body.lang-ar-active .device-stage { transform: perspective(1200px) rotateY(4deg); }
.device-stage::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 2%; height: 28px;
  border-radius: 50%;
  background: rgba(47,225,243,.32);
  filter: blur(18px);
}
.device-stage img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 70px rgba(0,0,0,.42)); }
.floating-card {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  inset-inline-start: -8%;
  width: min(260px, 42%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(3, 28, 52, .80);
  border: 1px solid rgba(116,232,255,.26);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.floating-card strong { display: block; color: var(--white); margin-bottom: 8px; font-size: 1.04rem; }
.floating-card span { color: var(--muted); line-height: 1.6; font-size: .92rem; }

.section { position: relative; padding: 68px 0; }
.section.alt { background: rgba(2, 21, 41, .22); border-block: 1px solid rgba(255,255,255,.06); }
.section-title { max-width: 860px; margin-bottom: 30px; }
.section-title.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--cyan-soft); font-weight: 900; margin-bottom: 10px; }
.section-title h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.15; margin-bottom: 12px; }
.section-title p { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card, .panel, .resource-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.052));
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 50px rgba(0,0,0,.18);
}
.card { padding: 24px; }
.card::after, .resource-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(47,225,243,.18), transparent 66%);
  pointer-events: none;
}
.card h3, .resource-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p, .resource-card p, .check-list li { color: var(--muted); line-height: 1.85; }
.icon-badge {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cyan-soft);
  font-weight: 900;
  border-radius: 18px;
  border: 1px solid rgba(47,225,243,.30);
  background: rgba(47,225,243,.10);
  margin-bottom: 18px;
}
.problem-card { min-height: 260px; }
.feature-band {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}
.feature-panel {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(3,25,47,.92), rgba(7,78,98,.62)),
    radial-gradient(circle at 15% 85%, rgba(47,225,243,.16), transparent 22rem);
  border: 1px solid rgba(116,232,255,.22);
  box-shadow: var(--shadow);
}
.feature-panel h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.18; margin-bottom: 14px; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 34px; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(47,225,243,.12);
}
.lifecycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lifecycle-step {
  padding: 22px 16px;
  min-height: 124px;
  text-align: center;
  border-radius: 22px;
  background: rgba(2, 28, 52, .60);
  border: 1px solid rgba(116,232,255,.18);
}
.lifecycle-step strong { display: block; color: var(--cyan-soft); font-size: 1.25rem; margin-bottom: 8px; }
.lifecycle-step span { color: var(--muted); line-height: 1.6; }
.page-hero { position: relative; overflow: hidden; padding: 88px 0 56px; background: rgba(3,26,51,.26); border-bottom: 1px solid rgba(255,255,255,.07); }
.page-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 34px; }
.page-hero p { color: var(--muted); line-height: 1.9; font-size: 1.12rem; max-width: 780px; }
.hero-mini-visual { border-radius: 32px; padding: 26px; border: 1px solid rgba(116,232,255,.22); background: rgba(255,255,255,.055); box-shadow: var(--shadow); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.metric { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.12); }
.metric strong { display: block; color: var(--cyan-soft); font-size: 1.18rem; margin-bottom: 8px; }
.metric span { display: block; color: var(--muted); line-height: 1.55; }
.table-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid rgba(116,232,255,.20); }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: rgba(3, 29, 54, .70); }
th, td { padding: 18px 20px; text-align: start; border-bottom: 1px solid rgba(255,255,255,.10); vertical-align: top; }
th { color: var(--cyan-soft); font-weight: 900; background: rgba(47,225,243,.09); }
td { color: var(--muted); line-height: 1.75; }
tr:last-child td { border-bottom: 0; }
.cta-panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 46px); border-radius: var(--radius-xl); border: 1px solid rgba(116,232,255,.24); background: linear-gradient(120deg, rgba(3,26,51,.95), rgba(7,86,104,.72)); box-shadow: var(--shadow); }
.cta-panel > * { position: relative; z-index: 2; }
.resource-card { padding: 26px; }
.qr-box { width: min(260px, 100%); padding: 16px; border-radius: 22px; background: #fff; margin-top: 18px; }
.qr-box img { width: 100%; height: auto; }
.footer { padding: 34px 0; border-top: 1px solid rgba(255,255,255,.08); background: rgba(2,18,38,.62); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .96rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 900; }
.footer-brand img { width: 38px; height: 38px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

body.lang-en-active { direction: ltr; }
body.lang-ar-active { direction: rtl; }
body.lang-ar-active .main-nav,
body.lang-ar-active .header-actions,
body.lang-ar-active .hero-actions,
body.lang-ar-active .cta-row,
body.lang-ar-active .quick-actions { direction: rtl; }
body.lang-en-active .main-nav,
body.lang-en-active .header-actions,
body.lang-en-active .hero-actions,
body.lang-en-active .cta-row,
body.lang-en-active .quick-actions { direction: ltr; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 185px 1fr 214px; }
  .brand img { width: 160px; }
  .main-nav a { padding: 11px 12px; }
  .hero-inner, .page-hero-inner, .feature-band { grid-template-columns: 1fr; }
  .hero-cover { min-height: auto; }
  .hero-visual { max-width: 720px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  :root { --header-h: 74px; }
  .header-inner { grid-template-columns: 1fr auto; min-height: var(--header-h); }
  .brand img { width: 148px; }
  .nav-wrap {
    position: absolute;
    top: calc(var(--header-h) + 1px);
    inset-inline: 16px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: rgba(2, 19, 38, .97);
    border: 1px solid rgba(116,232,255,.18);
    box-shadow: var(--shadow);
  }
  .nav-wrap.open { display: block; }
  .main-nav { display: grid; gap: 6px; justify-items: stretch; }
  .main-nav a { display: block; text-align: center; }
  .header-actions { grid-column: 2; }
  .header-actions .btn-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { padding: 42px 0 52px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 4.1rem); }
  .floating-card { position: static; width: auto; margin-top: 16px; }
  .device-stage, body.lang-ar-active .device-stage { transform: none; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .metrics { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .brand img { width: 132px; }
  .lang-toggle { min-width: 86px; }
  .btn { width: 100%; min-height: 48px; padding-inline: 14px; }
  .header-actions .btn, .menu-toggle, .lang-toggle { width: auto; }
  .hero-cover::before, .page-hero::before, .cta-panel::before { width: 420px; height: 420px; }
  .pill-list span { width: 100%; text-align: center; }
  .lifecycle { grid-template-columns: 1fr; }
  .card, .resource-card, .feature-panel, .cta-panel { border-radius: 22px; padding: 22px; }
  .page-hero { padding: 54px 0 38px; }
}

/* v8 LinkedIn-style visual sections */
.cover-hero {
  padding: 34px 0 54px;
  background: radial-gradient(circle at 70% 0%, rgba(47,225,243,.18), transparent 28rem);
}
.cover-card {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(116,232,255,.22);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}
.cover-card img {
  width: 100%;
  height: auto;
  display: none;
}
body.lang-ar-active .cover-card img.lang-ar,
body.lang-en-active .cover-card img.lang-en { display: block; }
.cover-cta-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(116,232,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
}
.cover-cta-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.2;
}
.cover-cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}
.visual-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.visual-showcase {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(116,232,255,.22);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}
.visual-showcase.square {
  max-width: 760px;
  margin-inline: auto;
}
.visual-showcase img {
  width: 100%;
  height: auto;
  display: none;
}
body.lang-ar-active .visual-showcase img.lang-ar,
body.lang-en-active .visual-showcase img.lang-en { display: block; }
.resource-qr-img {
  width: min(100%, 360px);
  border-radius: 26px;
  background: #fff;
  padding: 14px;
}
@media (max-width: 900px) {
  .cover-cta-panel { grid-template-columns: 1fr; }
  .cover-cta-panel .hero-actions { margin-top: 0; }
}
@media (max-width: 640px) {
  .cover-hero { padding-top: 18px; }
  .cover-card, .visual-showcase { border-radius: 18px; }
  .cover-cta-panel { padding: 18px; border-radius: 18px; }
}

/* v9 production refinements */
.resource-card .btn { margin-top: 18px; }
.resources-hero-panel { margin-top: 0; }
.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(116,232,255,.24);
  background: linear-gradient(120deg, rgba(3,26,51,.96), rgba(7,86,104,.74));
  box-shadow: var(--shadow);
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -180px;
  inset-inline-end: -130px;
  border-radius: 50%;
  border: 1px solid rgba(47,225,243,.18);
  box-shadow: 0 0 0 70px rgba(47,225,243,.03), 0 0 0 140px rgba(47,225,243,.018);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 2; }
.contact-card h2 { margin: 10px 0 12px; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.22; }
.contact-card p { margin: 0; color: var(--muted); line-height: 1.9; max-width: 760px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
body.lang-ar-active .contact-actions { direction: rtl; }
body.lang-en-active .contact-actions { direction: ltr; }
.site-footer { padding: 28px 0 36px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(2,18,38,.62); }
@media (max-width: 640px) {
  .contact-actions .btn { width: 100%; }
}

/* v10 responsive and browser-consistency refinements */
.cover-card img.mobile-cover { display: none !important; }
.cover-cta-panel { grid-template-columns: minmax(0, 1fr) max-content; }
.cover-cta-panel h1 {
  font-size: clamp(1.65rem, 2.35vw, 2.45rem);
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}
@media (min-width: 1181px) {
  .cover-cta-panel h1 { white-space: nowrap; }
}
@media (max-width: 1180px) {
  .cover-cta-panel { grid-template-columns: 1fr; }
  .cover-cta-panel h1 { white-space: normal; }
}
@media (max-width: 840px) {
  .site-header { position: sticky; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .brand img { width: 138px; }
  .header-actions { gap: 8px; }
  .lang-toggle { min-width: 82px; }
  .menu-toggle { min-width: 42px; }
  .cover-hero { padding: 20px 0 38px; }
  .cover-card { border-radius: 22px; }
  .cover-cta-panel {
    margin-top: 16px;
    padding: 20px;
    border-radius: 22px;
    gap: 14px;
  }
  .cover-cta-panel h1 {
    font-size: clamp(1.55rem, 7vw, 2.35rem);
    line-height: 1.22;
  }
  .cover-cta-panel p { font-size: .98rem; line-height: 1.8; }
  .section-title h2, .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.7rem); }
  .section-title p { font-size: 1rem; }
  .visual-showcase.square { max-width: 100%; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body::before { width: 520px; height: 520px; top: -210px; inset-inline-end: -250px; }
  body::after { width: 180px; height: 240px; opacity: .30; }
  .container { width: min(calc(100% - 20px), var(--container)); }
  .header-inner { min-height: var(--header-h); }
  .brand img { width: 118px; }
  .header-actions { gap: 6px; }
  .lang-toggle { min-width: 76px; min-height: 38px; padding-inline: 12px; font-size: .86rem; }
  .menu-toggle { min-width: 40px; min-height: 38px; padding-inline: 10px; }
  .nav-wrap { inset-inline: 10px; top: calc(var(--header-h) + 1px); }
  .main-nav a { padding: 12px 10px; font-size: .98rem; }
  .cover-hero { padding: 14px 0 30px; }
  .cover-card.home-cover img.desktop-cover { display: none !important; }
  body.lang-ar-active .cover-card.home-cover img.mobile-cover.lang-ar,
  body.lang-en-active .cover-card.home-cover img.mobile-cover.lang-en { display: block !important; }
  .cover-card,
  .visual-showcase { border-radius: 18px; }
  .cover-card:not(.home-cover) img,
  .visual-showcase img { width: 100%; height: auto; }
  .cover-cta-panel { padding: 18px; }
  .hero-actions, .cta-row, .quick-actions, .contact-actions { gap: 10px; }
  .btn { min-height: 46px; padding-inline: 14px; font-size: .94rem; }
  .cover-cta-panel .btn,
  .cta-panel .btn,
  .contact-card .btn,
  .resource-card .btn { width: 100%; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 20px; }
  .grid-2, .grid-3, .grid-4 { gap: 14px; }
  .card, .resource-card { padding: 18px; border-radius: 18px; }
  .card h3, .resource-card h3 { font-size: 1.12rem; }
  .card p, .resource-card p { font-size: .96rem; line-height: 1.75; }
  .icon-badge { width: 46px; height: 46px; border-radius: 15px; margin-bottom: 12px; }
  .visual-showcase.square { border-radius: 18px; }
  .resource-qr-img { width: min(100%, 280px); margin-inline: auto; padding: 10px; border-radius: 18px; }
  .contact-card { padding: 22px; border-radius: 22px; }
  .contact-card h2 { font-size: clamp(1.55rem, 7vw, 2.15rem); }
  .footer-inner { align-items: center; text-align: center; }
}
@media (max-width: 390px) {
  .brand img { width: 108px; }
  .lang-toggle { min-width: 70px; font-size: .82rem; }
  .cover-cta-panel h1 { font-size: 1.45rem; }
}


/* v11 production mobile layout fix
   Keep the document canvas LTR to avoid Chrome mobile RTL horizontal anchoring.
   Arabic reading direction is applied to content blocks only. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  direction: ltr;
}

body {
  direction: ltr;
  position: relative;
}

.site-header,
main,
.site-footer,
.cover-hero,
.section,
.container,
.cover-card,
.cover-cta-panel,
.visual-showcase,
.card,
.resource-card,
.contact-card,
.cta-panel {
  max-width: 100%;
}

body.lang-ar-active .header-inner,
body.lang-ar-active .main-nav,
body.lang-ar-active .header-actions,
body.lang-ar-active .hero-actions,
body.lang-ar-active .cta-row,
body.lang-ar-active .quick-actions,
body.lang-ar-active .contact-actions,
body.lang-ar-active .cover-cta-panel,
body.lang-ar-active .section-title,
body.lang-ar-active .card,
body.lang-ar-active .resource-card,
body.lang-ar-active .contact-card,
body.lang-ar-active .cta-panel,
body.lang-ar-active .footer-inner,
body.lang-ar-active .footer-copy,
body.lang-ar-active .lang-ar {
  direction: rtl;
}

body.lang-en-active .header-inner,
body.lang-en-active .main-nav,
body.lang-en-active .header-actions,
body.lang-en-active .hero-actions,
body.lang-en-active .cta-row,
body.lang-en-active .quick-actions,
body.lang-en-active .contact-actions,
body.lang-en-active .cover-cta-panel,
body.lang-en-active .section-title,
body.lang-en-active .card,
body.lang-en-active .resource-card,
body.lang-en-active .contact-card,
body.lang-en-active .cta-panel,
body.lang-en-active .footer-inner,
body.lang-en-active .footer-copy,
body.lang-en-active .lang-en {
  direction: ltr;
}

body.lang-ar-active .lang-ar,
body.lang-ar-active .card,
body.lang-ar-active .resource-card,
body.lang-ar-active .contact-card,
body.lang-ar-active .cta-panel,
body.lang-ar-active .cover-cta-panel {
  text-align: right;
}

body.lang-en-active .lang-en,
body.lang-en-active .card,
body.lang-en-active .resource-card,
body.lang-en-active .contact-card,
body.lang-en-active .cta-panel,
body.lang-en-active .cover-cta-panel {
  text-align: left;
}

.section-title.center,
.section-title.center .lang-ar,
.section-title.center .lang-en {
  text-align: center !important;
}

@media (max-width: 640px) {
  html,
  body {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body::before,
  body::after {
    display: none;
  }

  .site-header {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
    margin-inline: auto;
  }

  .header-inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .nav-wrap {
    left: 10px;
    right: 10px;
    inset-inline: auto;
    width: auto;
    max-width: calc(100vw - 20px);
  }

  .cover-hero,
  .section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .cover-card,
  .cover-cta-panel,
  .visual-showcase,
  .card,
  .resource-card,
  .contact-card,
  .cta-panel {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .cover-cta-panel,
  .grid-2,
  .grid-3,
  .grid-4,
  .feature-band,
  .metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-actions,
  .cta-row,
  .quick-actions,
  .contact-actions {
    width: 100%;
    max-width: 100%;
  }

  .cover-card img,
  .visual-showcase img {
    max-width: 100%;
  }

  .resource-qr-img {
    display: block;
    max-width: min(100%, 280px);
  }
}

/* v12 production enhancements */
.header-demo-btn,
.header-demo-btn span {
  white-space: nowrap !important;
}
.header-demo-btn {
  min-width: 144px;
  flex: 0 0 auto;
  line-height: 1;
}
body.lang-ar-active .lang-en,
body.lang-en-active .lang-ar {
  display: none !important;
}
body.lang-ar-active .btn.lang-ar,
body.lang-en-active .btn.lang-en,
body.lang-ar-active .lang-flex.lang-ar,
body.lang-en-active .lang-flex.lang-en {
  display: inline-flex !important;
}
body.lang-ar-active img.lang-ar,
body.lang-en-active img.lang-en {
  display: block !important;
}
.quick-nav-section {
  padding-top: 18px;
}
.quick-nav-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3.2vw, 38px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(116,232,255,.22);
  background: linear-gradient(120deg, rgba(255,255,255,.078), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}
.quick-nav-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.25;
}
.quick-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
body.lang-en-active .quick-nav-links {
  justify-content: flex-start;
}
.quick-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 800;
  white-space: nowrap;
}
.quick-nav-links a:hover {
  background: rgba(47,225,243,.14);
  border-color: rgba(47,225,243,.28);
}
.compact-hero {
  padding-bottom: 18px;
}
.flyer-hero-panel {
  margin-top: 0;
}
.flyer-preview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(116,232,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.082), rgba(255,255,255,.042));
  box-shadow: var(--shadow);
}
.flyer-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.flyer-toolbar h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}
.flyer-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.flyer-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.flyer-frame-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(2,18,38,.65);
  padding: 18px 0 26px;
}
.flyer-frame {
  display: none;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: transparent;
}
body.lang-ar-active .flyer-frame.lang-ar,
body.lang-en-active .flyer-frame.lang-en {
  display: block !important;
}
.resource-qr-img.lang-ar,
.resource-qr-img.lang-en {
  margin-inline: auto;
}
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 204px 1fr 294px;
  }
  .brand img { width: 172px; }
  .main-nav { gap: 4px; }
  .main-nav a { padding-inline: 12px; font-size: .95rem; }
}
@media (max-width: 980px) {
  .quick-nav-card,
  .flyer-toolbar {
    grid-template-columns: 1fr;
  }
  .quick-nav-links,
  body.lang-en-active .quick-nav-links {
    justify-content: center;
  }
  .flyer-toolbar-actions {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .header-demo-btn {
    min-width: 112px;
    padding-inline: 11px;
    font-size: .82rem;
  }
  .quick-nav-card {
    padding: 20px;
    border-radius: 22px;
  }
  .quick-nav-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .quick-nav-links a {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding-block: 10px;
  }
  .flyer-toolbar {
    padding: 20px;
  }
  .flyer-toolbar-actions,
  .flyer-toolbar-actions .btn {
    width: 100%;
  }
  .flyer-frame-wrap {
    padding: 12px 0 18px;
  }
  .flyer-frame {
    min-height: 1200px;
  }
}


/* v13 production refinements */
/* Mobile header alignment: logo at page edge, menu/language group at opposite edge */
@media (max-width: 640px) {
  .site-header .container {
    padding-inline: 12px;
  }
  .header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--header-h);
  }
  body.lang-ar-active .brand { order: 2; }
  body.lang-ar-active .header-actions { order: 1; }
  body.lang-en-active .brand { order: 1; }
  body.lang-en-active .header-actions { order: 2; }
  .brand img { width: 128px; }
  .header-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
  }
  body.lang-en-active .header-actions { justify-content: flex-end; }
  .menu-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    flex: 0 0 42px;
  }
  .lang-toggle {
    width: auto !important;
    min-width: 86px !important;
    height: 42px;
    min-height: 42px;
    padding: 0 14px !important;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .nav-wrap {
    left: 10px;
    right: 10px;
    max-width: calc(100vw - 20px);
  }
}

/* Header demo button: keep Arabic label on one line in Chrome */
.header-demo-btn {
  min-width: 154px;
  white-space: nowrap !important;
}
.header-demo-btn span,
.header-demo-btn .lang-inline-ar,
.header-demo-btn .lang-inline-en {
  white-space: nowrap !important;
  line-height: 1 !important;
}
@media (max-width: 840px) {
  .header-demo-btn { display: none !important; }
}

/* Compact quick navigation */
.quick-nav-card {
  grid-template-columns: .64fr 1.36fr;
  gap: 18px;
}
.quick-nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
body.lang-en-active .quick-nav-links { justify-content: flex-start; }
.quick-nav-links a {
  min-height: 40px;
  padding: 0 12px;
  font-size: .90rem;
  flex: 0 1 auto;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .quick-nav-card { grid-template-columns: 1fr; }
  .quick-nav-links,
  body.lang-en-active .quick-nav-links { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .quick-nav-card {
    padding: 18px;
    gap: 14px;
  }
  .quick-nav-card h2 {
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .quick-nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .quick-nav-links a {
    width: 100%;
    min-height: 38px;
    padding: 7px 8px;
    font-size: .84rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .quick-nav-links a:last-child {
    grid-column: 1 / -1;
  }
}

/* Normal flyer page: no iframe, no zoomed embedded page */
.flyer-page-section,
.flyer-preview-card,
.flyer-toolbar,
.flyer-frame-wrap,
.flyer-frame {
  display: none !important;
}
.flyer-normal-hero .cover-cta-panel {
  margin-top: 0;
}
.flyer-normal-section .card h3 {
  line-height: 1.35;
}
.flyer-capability-grid .card,
.flyer-feature-grid .card {
  min-height: 100%;
}
.flyer-lifecycle {
  margin-bottom: 22px;
}
.flyer-table-wrap {
  margin-top: 24px;
}
.flyer-final-cta {
  margin-top: 24px;
}
@media (max-width: 640px) {
  .flyer-normal-hero .cover-cta-panel {
    padding: 20px;
  }
  .flyer-normal-hero h1 {
    font-size: 1.55rem;
  }
  .flyer-normal-section .section-title h2 {
    font-size: 1.55rem;
  }
  .flyer-normal-section .card {
    padding: 18px;
  }
  .flyer-table-wrap table {
    min-width: 720px;
  }
}


/* v14 mobile header stability fix
   Keep the hamburger/menu placement predictable after language changes.
   Arabic: logo on the right, controls on the left, hamburger at the far-left edge.
   English: logo on the left, controls on the right, hamburger at the far-right edge. */
@media (max-width: 640px) {
  .header-inner,
  body.lang-ar-active .header-inner,
  body.lang-en-active .header-inner {
    direction: ltr !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-actions,
  body.lang-ar-active .header-actions,
  body.lang-en-active .header-actions {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  body.lang-ar-active .brand {
    order: 2 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
  }

  body.lang-ar-active .header-actions {
    order: 1 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
    flex-direction: row-reverse !important;
  }

  body.lang-en-active .brand {
    order: 1 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }

  body.lang-en-active .header-actions {
    order: 2 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    flex-direction: row !important;
  }

  .menu-toggle {
    order: 2 !important;
  }

  .lang-toggle {
    order: 1 !important;
  }

  body.lang-ar-active .menu-toggle {
    order: 2 !important;
  }

  body.lang-ar-active .lang-toggle {
    order: 1 !important;
  }

  .nav-wrap,
  body.lang-ar-active .nav-wrap,
  body.lang-en-active .nav-wrap {
    direction: ltr !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  .main-nav,
  body.lang-ar-active .main-nav,
  body.lang-en-active .main-nav {
    direction: inherit !important;
  }

  body.lang-ar-active .main-nav {
    direction: rtl !important;
    text-align: right !important;
  }

  body.lang-en-active .main-nav {
    direction: ltr !important;
    text-align: left !important;
  }
}

/* v15 mobile header mirror override
   User-requested mirrored mobile header alignment.
   Arabic: logo left, controls right, hamburger at far-right.
   English: logo right, controls left, hamburger at far-left. */
@media (max-width: 640px) {
  body.lang-ar-active .brand {
    order: 1 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }

  body.lang-ar-active .header-actions {
    order: 2 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    flex-direction: row !important;
  }

  body.lang-en-active .brand {
    order: 2 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
  }

  body.lang-en-active .header-actions {
    order: 1 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
    flex-direction: row-reverse !important;
  }
}
