/* ==================================================================
   BrighteningTech — Design System
   Branding: Inter · Primary #1D4EDB · Deep #0F172A · Ink #0B0F19
   ================================================================== */

:root {
  --c-blue: #1D4EDB;
  --c-blue-hover: #1740bc;
  --c-deep: #0F172A;
  --c-ink: #0B0F19;
  --c-slate: #334155;
  --c-gray: #64748B;
  --c-bg: #F1F5F9;
  --c-white: #ffffff;
  --c-green: #10B981;
  --c-green-hover: #0da874;
  --c-purple: #7C3AED;
  --c-border: #e2e8f0;
  --c-border-dark: rgba(148, 163, 184, 0.18);
  --c-text-on-dark: #cbd5e1;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14);

  --header-h: 76px;
  --container: 1200px;
}

html[lang="ar"] {
  --font-sans: 'IBM Plex Sans Arabic', 'Inter', -apple-system, sans-serif;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-slate);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 {
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  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.4;
}
html[lang="ar"] body { line-height: 1.9; }

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--c-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9875rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: 0.9375rem; }
.btn-lg { padding: 16px 34px; font-size: 1.0625rem; }

.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-hover); color: #fff; }

.btn-outline { border-color: #cbd5e1; color: var(--c-ink); background: transparent; }
.btn-outline:hover { border-color: var(--c-blue); color: var(--c-blue); }

.btn-outline-light { border-color: rgba(203, 213, 225, 0.4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-white { background: #fff; color: var(--c-ink); }
.btn-white:hover { background: var(--c-bg); }

.btn-whatsapp { background: var(--c-green); color: #fff; }
.btn-whatsapp:hover { background: var(--c-green-hover); color: #fff; }

/* ---------- Text helpers ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 16px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }

.on-dark .eyebrow { color: #7ea2f5; }

.lede {
  font-size: 1.1875rem;
  color: var(--c-gray);
  max-width: 46em;
}
.on-dark .lede, .on-dark p { color: var(--c-text-on-dark); }

.text-link {
  font-weight: 600;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { text-decoration: underline; }
.arr { display: inline-block; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ==================================================================
   Header
   ================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand-word {
  font-family: 'Inter', var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  white-space: nowrap;
  direction: ltr;
}
.brand-word[dir="rtl"] { direction: rtl; }
.brand-accent { color: var(--c-blue); font-weight: 600; }

.main-nav { margin-inline-start: 8px; }
.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.9625rem;
  font-weight: 500;
  color: var(--c-slate);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--c-ink); background: var(--c-bg); }
.nav-item.is-open > .nav-link { color: var(--c-blue); background: var(--c-bg); }
.chev { transition: transform 0.2s; opacity: 0.55; }
.nav-item.is-open .chev { transform: rotate(180deg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}

.lang-switch {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-slate);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.lang-switch:hover { color: var(--c-blue); background: var(--c-bg); }

/* Mega menu */

.has-mega { position: static; }

.mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-item.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 32px 24px 36px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.mm-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 28px;
}
.mm-link {
  display: block;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.mm-link:hover { background: var(--c-bg); }
.mm-link-title { display: block; font-weight: 600; color: var(--c-ink); font-size: 0.9875rem; }
.mm-link:hover .mm-link-title { color: var(--c-blue); }
.mm-link-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--c-gray);
  line-height: 1.5;
  margin-top: 3px;
}

.mm-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--c-ink), var(--c-deep) 60%, #14245a);
  color: #fff;
}
.mm-feature-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ea2f5;
}
html[lang="ar"] .mm-feature-eyebrow { letter-spacing: 0; }
.mm-feature-title { font-size: 1.125rem; font-weight: 600; color: #fff; }
.mm-feature-text { font-size: 0.875rem; color: var(--c-text-on-dark); line-height: 1.55; }
.mm-feature-cta { margin-top: auto; padding-top: 10px; font-size: 0.875rem; font-weight: 600; color: #9db9f7; }
.mm-feature:hover .mm-feature-cta { color: #fff; }

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================================================================
   Hero
   ================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 80% -10%, rgba(29, 78, 219, 0.28), transparent 62%),
    radial-gradient(700px 420px at 8% 110%, rgba(124, 58, 237, 0.12), transparent 60%),
    linear-gradient(160deg, var(--c-ink) 0%, var(--c-deep) 68%, #101c3d 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-home { padding: clamp(76px, 10vw, 132px) 0 clamp(64px, 8vw, 108px); }
.hero-home h1 { color: #fff; max-width: 15.5em; }
.hero-home .hero-lede { margin-top: 24px; }

.hero-lede {
  font-size: 1.1875rem;
  color: var(--c-text-on-dark);
  max-width: 42em;
  line-height: 1.75;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-trust {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--c-border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-blue);
}

/* Inner page hero */

.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 84px); }
.page-hero h1 { color: #fff; max-width: 17em; }
.page-hero .hero-lede { margin-top: 22px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 22px;
}
.breadcrumbs a { color: #cbd5e1; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs [aria-current] { color: #7ea2f5; }

/* ==================================================================
   Sections
   ================================================================== */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--c-bg); }
.section-dark {
  background: linear-gradient(160deg, var(--c-ink), var(--c-deep));
  color: var(--c-text-on-dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { margin-top: 0; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row { margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Grids & cards ---------- */

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

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
a.card:hover, .card.is-link:hover {
  border-color: rgba(29, 78, 219, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.section-alt .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.section-alt a.card:hover { box-shadow: var(--shadow); }

.card h3 { margin-bottom: 10px; font-size: 1.1875rem; }
.card p { font-size: 0.9625rem; color: var(--c-gray); line-height: 1.65; }
.card .text-link { margin-top: auto; padding-top: 18px; font-size: 0.9375rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(29, 78, 219, 0.08);
  color: var(--c-blue);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--c-green); }
.card-icon.purple { background: rgba(124, 58, 237, 0.09); color: var(--c-purple); }
.card-icon.deep { background: rgba(15, 23, 42, 0.07); color: var(--c-deep); }

/* Dark cards */
.section-dark .card, .card-dark {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--c-border-dark);
}
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: #94a3b8; }
.section-dark a.card:hover { border-color: rgba(126, 162, 245, 0.5); transform: translateY(-3px); box-shadow: none; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split-narrow { grid-template-columns: 5fr 4fr; }
.split h2 { margin-bottom: 18px; }
.split .lede { margin-bottom: 14px; }
.split p + p { margin-top: 14px; }

/* ---------- Check / feature lists ---------- */

.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li {
  position: relative;
  padding-inline-start: 32px;
  font-size: 1rem;
  color: var(--c-slate);
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 12 12"><path d="M2.5 6.2l2.4 2.4 4.6-5" fill="none" stroke="%2310B981" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 11px no-repeat;
}
.on-dark .check-list li, .section-dark .check-list li { color: var(--c-text-on-dark); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li, .pill {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-slate);
}
.section-dark .pill-list li, .pill-dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--c-border-dark);
  color: var(--c-text-on-dark);
}

/* ---------- Logo wall (client / project logos) ---------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 22px;
  height: 96px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.section-dark .logo-tile { border-color: transparent; }

@media (max-width: 1080px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } .logo-tile { height: 84px; padding: 12px 16px; } .logo-tile img { max-height: 40px; } }
@media (max-width: 420px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* Faded cover photo behind a case-study hero */
.hero.has-cover .hero-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 88%);
  pointer-events: none;
}

/* Cover photo as case-study card media */
.cs-card-media.has-img {
  background-size: cover;
  background-position: center;
}

/* ---------- Experience / logo strip ---------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 12px;
}
.logo-strip li {
  padding: 12px 24px;
  border: 1px solid var(--c-border-dark);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9625rem;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}
.logo-strip-light li {
  border-color: var(--c-border);
  color: var(--c-slate);
  background: #fff;
}

/* ---------- Process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step {
  position: relative;
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.section-dark .step { background: rgba(255, 255, 255, 0.035); border-color: var(--c-border-dark); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.section-dark .step h3 { color: #fff; }
.step p { font-size: 0.9375rem; color: var(--c-gray); }
.section-dark .step p { color: #94a3b8; }

/* ---------- Numbered / detail rows ---------- */

.detail-rows { display: grid; gap: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px 48px;
  padding: 30px 0;
  border-top: 1px solid var(--c-border);
}
.detail-row:last-child { border-bottom: 1px solid var(--c-border); }
.detail-row h3 { font-size: 1.1875rem; }
.detail-row p { color: var(--c-gray); }
.detail-row .check-list { margin-top: 14px; }

/* ---------- Case study cards ---------- */

.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.cs-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(29, 78, 219, 0.35); }
.cs-card-media {
  height: 168px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background:
    radial-gradient(420px 200px at 85% -20%, rgba(29, 78, 219, 0.5), transparent 70%),
    linear-gradient(150deg, var(--c-ink), var(--c-deep) 75%, #16255c);
}
.cs-card-media.g2 { background: radial-gradient(420px 200px at 85% -20%, rgba(124, 58, 237, 0.45), transparent 70%), linear-gradient(150deg, var(--c-ink), var(--c-deep) 75%, #2a1a58); }
.cs-card-media.g3 { background: radial-gradient(420px 200px at 85% -20%, rgba(16, 185, 129, 0.4), transparent 70%), linear-gradient(150deg, var(--c-ink), var(--c-deep) 75%, #0c3d33); }
.cs-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5bdf8;
}
html[lang="ar"] .cs-card-tag { letter-spacing: 0; }
.cs-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cs-card-body h3 { font-size: 1.1875rem; margin-bottom: 8px; color: var(--c-ink); }
/* cs-cards keep a white body even inside dark sections — force a dark title
   so it isn't white-on-white (was only visible on hover). */
.section-dark .cs-card-body h3 { color: var(--c-ink); }
.cs-card:hover h3 { color: var(--c-blue); }
.cs-card-body p { font-size: 0.9375rem; color: var(--c-gray); line-height: 1.6; }
.cs-card-body .text-link { margin-top: auto; padding-top: 16px; font-size: 0.9375rem; }

/* Case study article */

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.cs-meta span {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-border-dark);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8438rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* ---------- Article layout (case studies / insights) ---------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 14px;
}
.aside-card {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 26px;
}
.aside-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray);
  margin-bottom: 14px;
}
html[lang="ar"] .aside-card h3 { letter-spacing: 0; }
.aside-card ul { display: grid; gap: 9px; }
.aside-card a { font-weight: 500; }
.aside-card p { font-size: 0.9375rem; color: var(--c-slate); }

@media (max-width: 920px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

/* ---------- Insights: filter bar + blog cards ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-slate);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-pill:hover { border-color: var(--c-blue); color: var(--c-blue); }
.filter-pill.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.insight-card { min-height: 100%; }
.insight-card .blog-readtime {
  margin-top: auto;
  font-size: 0.8438rem;
  color: var(--c-gray);
}
.insight-card .text-link { padding-top: 14px; }
.blog-readtime {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #94a3b8;
}
.page-hero .blog-readtime { margin-top: 16px; color: #94a3b8; }
.insight-card[hidden] { display: none; }

/* Branded per-category cover art for blog cards (no external images) */
.blog-cover { position: relative; overflow: hidden; }
.blog-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%);
  mask-image: linear-gradient(120deg, #000, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.cs-card-media.blog-cover--ai { background: linear-gradient(140deg, #2a1a58, #7C3AED 130%); }
.cs-card-media.blog-cover--sw { background: linear-gradient(140deg, #0F172A, #1D4EDB 135%); }
.cs-card-media.blog-cover--events { background: linear-gradient(140deg, #0B0F19, #16255c 120%); }
.cs-card-media.blog-cover--commerce { background: linear-gradient(140deg, #0c3d33, #10B981 145%); }
.cs-card-media.blog-cover--data { background: linear-gradient(140deg, #14245a, #7C3AED 155%); }
.cs-card-media.blog-cover--managed { background: linear-gradient(140deg, #0F172A, #475569 140%); }
.cs-card-media.blog-cover--dx { background: linear-gradient(140deg, #0F172A, #1D4EDB 140%); }
.cs-card-media.blog-cover--biz { background: linear-gradient(140deg, #0B0F19, #1e293b); }

/* ---------- Prose (long-form content) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.625rem; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { display: grid; gap: 10px; margin: 18px 0 22px; }
.prose ul li {
  position: relative;
  padding-inline-start: 26px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c-blue);
  opacity: 0.75;
}
.prose strong { color: var(--c-ink); }
.prose blockquote {
  border-inline-start: 3px solid var(--c-blue);
  padding: 6px 0 6px;
  padding-inline-start: 22px;
  margin: 26px 0;
  font-size: 1.125rem;
  color: var(--c-ink);
  font-weight: 500;
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  font-weight: 600;
  color: var(--c-ink);
  font-size: 1.0313rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-inline-end: 2px solid var(--c-gray);
  border-bottom: 2px solid var(--c-gray);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq details[open] summary { color: var(--c-blue); }
.faq .faq-a { padding: 0 26px 22px; color: var(--c-gray); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -30%, rgba(29, 78, 219, 0.45), transparent 65%),
    radial-gradient(500px 300px at 5% 130%, rgba(124, 58, 237, 0.18), transparent 60%),
    linear-gradient(155deg, var(--c-ink), var(--c-deep) 70%, #14245a);
  color: #fff;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 17em; margin-bottom: 18px; }
.cta-band p { color: var(--c-text-on-dark); max-width: 44em; }
.cta-band .hero-ctas { margin-top: 30px; }

/* ==================================================================
   Footer
   ================================================================== */

.site-footer {
  background: var(--c-ink);
  color: #94a3b8;
  padding: clamp(56px, 7vw, 84px) 0 0;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 56px;
}
.brand-word-footer { font-size: 1.3rem; color: #fff; display: inline-block; }
.footer-about { margin: 18px 0 24px; line-height: 1.7; max-width: 34em; }
.footer-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
html[lang="ar"] .footer-title { letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #94a3b8; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { margin-bottom: 12px; line-height: 1.7; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--c-border-dark);
  padding: 22px 0 26px;
  font-size: 0.875rem;
  color: #64748b;
}

/* ==================================================================
   Forms
   ================================================================== */

.form-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9375rem; color: var(--c-ink); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  color: var(--c-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 219, 0.12);
}
.form-radios { display: flex; flex-wrap: wrap; gap: 12px; }
.form-radios label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-slate);
  cursor: pointer;
}
.form-radios label:has(input:checked) { border-color: var(--c-blue); color: var(--c-blue); background: rgba(29, 78, 219, 0.05); }
.form-radios input { accent-color: var(--c-blue); }
.form-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--c-gray); }
.form-consent input { margin-top: 5px; accent-color: var(--c-blue); }

/* ==================================================================
   Utility
   ================================================================== */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ==================================================================
   Floating buttons (WhatsApp + back to top)
   ================================================================== */

.floating-actions {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s, background 0.18s, opacity 0.2s, visibility 0.2s;
}
.fab:active { transform: scale(0.94); }
.fab svg { width: 26px; height: 26px; }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-whatsapp:hover { background: #1eb455; color: #fff; transform: translateY(-2px); }
.fab-top {
  background: var(--c-ink);
  color: #fff;
  width: 46px;
  height: 46px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.fab-top svg { width: 20px; height: 20px; }
.fab-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-top:hover { background: var(--c-blue); color: #fff; }

@media (max-width: 640px) {
  .floating-actions { inset-inline-end: 14px; bottom: 14px; }
  .fab { width: 48px; height: 48px; }
}

/* ==================================================================
   Responsive
   ================================================================== */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .mega-inner { grid-template-columns: 1fr 280px; }
}

@media (max-width: 920px) {
  /* A backdrop-filter on the sticky header would make it the containing block
     for the fixed drawer (trapping its height). Drop it on mobile so the
     drawer can fill the viewport; the header stays solid instead. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    bottom: 0;
    height: calc(100dvh - var(--header-h));
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 24px 48px;
    display: none;
    margin: 0;
    border-top: 1px solid var(--c-border);
  }
  .main-nav.is-open { display: block; }
  body.nav-locked { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--c-border); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 17px 4px;
    font-size: 1.0625rem;
    border-radius: 0;
  }
  .nav-link:hover { background: none; }

  .mega {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: hidden;
    transform: none;
    display: none;
    background: transparent;
  }
  .nav-item.is-open > .mega { display: block; visibility: visible; }
  .mega-inner { grid-template-columns: 1fr; padding: 0 0 18px; gap: 18px; }
  .mm-links { grid-template-columns: 1fr; gap: 2px; }
  .mm-link { padding: 10px 8px; }
  .mm-link-desc { display: none; }
  .mm-feature { display: none; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .split, .split-narrow { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps, .steps-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-ctas .btn { width: 100%; }
  .container { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
