/* ==========================================================================
   FD Solutions LLC — design system
   No JavaScript anywhere: the nav and FAQ use native HTML behaviour so the
   CSP can forbid script entirely. Light + dark themes, fluid from 320px up.
   ========================================================================== */

/* --------------------------------------------------------------------------
   IBM Plex Sans Arabic — self-hosted (the CSP allows font-src 'self' only).
   Arabic and Latin subsets are split by unicode-range so a visitor only
   downloads the script they actually read.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-arabic-400.4fa3d81d41ab.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-arabic-500.106892212ea7.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-arabic-600.64891a810259.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plex-arabic-700.a4390abc98c2.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
                 U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
                 U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Latin companion: keeps OWASP, PCI DSS, CVSS etc. consistent inside Arabic. */
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-latin-400.4767e1197706.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-latin-500.80ebc672c915.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-latin-600.f417eeb0d15e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}
@font-face {
  font-family: "Plex Arabic";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/plex-latin-700.8d04403cf599.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014,
                 U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2212;
}

:root {
  color-scheme: light dark;

  /* Neutrals */
  --bg:        #ffffff;
  --bg-2:      #f6f8fb;
  --bg-3:      #eef2f7;
  --surface:   #ffffff;
  --ink:       #060a14;
  --ink-2:     #0d1424;
  --ink-3:     #16203a;
  --text:      #0f1626;
  --text-2:    #4a5568;
  --text-3:    #6b7688;
  --rule:      #e4e9f0;
  --rule-2:    #d3dae4;
  --rule-ink:  rgba(255, 255, 255, .12);

  /* Brand */
  --accent:    #3b5bfd;
  --accent-2:  #7b5cff;
  --accent-3:  #00d4c8;
  --signal:    #ff9d2e;
  --accent-ink: #7f96ff;
  --accent-soft: rgba(59, 91, 253, .09);

  --grad: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 130%);

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(9, 14, 28, .05), 0 1px 3px rgba(9, 14, 28, .04);
  --sh-2: 0 4px 12px -4px rgba(9, 14, 28, .1), 0 12px 32px -12px rgba(9, 14, 28, .12);
  --sh-3: 0 8px 20px -8px rgba(9, 14, 28, .16), 0 28px 60px -24px rgba(9, 14, 28, .22);
  --sh-glow: 0 0 0 1px rgba(59, 91, 253, .18), 0 18px 44px -18px rgba(59, 91, 253, .38);

  /* Rhythm */
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --step: clamp(4rem, 9vw, 8rem);
  --step-sm: clamp(2.5rem, 5vw, 4rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #070b14;
    --bg-2:    #0b111e;
    --bg-3:    #101828;
    --surface: #0e1523;
    --text:    #e8ecf4;
    --text-2:  #a3adc0;
    --text-3:  #7d8798;
    --rule:    rgba(255, 255, 255, .09);
    --rule-2:  rgba(255, 255, 255, .16);
    --accent:  #6d86ff;
    --accent-soft: rgba(109, 134, 255, .12);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 6px 20px -8px rgba(0, 0, 0, .6);
    --sh-3: 0 16px 48px -20px rgba(0, 0, 0, .8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15.5px, .35vw + 15px, 17px);
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: #fff; }

.skip {
  position: fixed; left: -9999px; top: 1rem; z-index: 200;
  background: var(--ink); color: #fff;
  padding: .8rem 1.4rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 1rem; }

.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 780px; }
/* A readable column that stays on the page's left rail instead of centring. */
.measure { max-width: 790px; }
.center { text-align: center; }

/* ==========================================================================
   Typography
   ========================================================================== */

.h1 {
  font-size: clamp(2.35rem, 1.2rem + 4.9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.042em;
  font-weight: 700;
  margin: 0 0 1.35rem;
  text-wrap: balance;
}
.h1-sm { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.4rem); letter-spacing: -.038em; }

.h2 {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -.034em;
  font-weight: 680;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.22rem, .95rem + 1.1vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -.024em;
  font-weight: 660;
  margin: 0 0 .6rem;
}

.h4 {
  font-size: clamp(1.02rem, .95rem + .3vw, 1.14rem);
  line-height: 1.35;
  letter-spacing: -.016em;
  font-weight: 660;
  margin: 0 0 .5rem;
}

.h5 {
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  margin: 0 0 .8rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; border-radius: 2px;
  background: var(--grad); flex: none;
}

.lede {
  font-size: clamp(1.06rem, .95rem + .6vw, 1.32rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 64ch;
  text-wrap: pretty;
}
.body-lg { font-size: clamp(1rem, .95rem + .3vw, 1.09rem); color: var(--text-2); max-width: 70ch; }
.narrow-p { max-width: 64ch; }
.small { font-size: .87rem; }
.muted { color: var(--text-3); }

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

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: clamp(62px, 8vw, 76px);
  position: relative;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 720;
  letter-spacing: -.035em; font-size: clamp(1.05rem, .95rem + .4vw, 1.2rem);
  flex: none;
}
.brand-mark {
  width: 17px; height: 19px; flex: none;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 24%, 100% 72%, 50% 100%, 0 72%, 0 24%);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(180deg) scale(1.06); }
.brand-dot {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav > a {
  position: relative;
  text-decoration: none; font-size: .93rem; font-weight: 550;
  color: var(--text-2); white-space: nowrap;
  transition: color .18s var(--ease);
}
.site-nav > a:not(.btn):not(.lang-switch)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -.45rem; height: 2px;
  border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s var(--ease);
}
.site-nav > a:hover { color: var(--text); }
.site-nav > a:not(.btn):not(.lang-switch):hover::after,
.site-nav > a.current::after { transform: scaleX(1); }
.site-nav > a.current { color: var(--text); font-weight: 620; }

.lang-switch {
  font-size: .82rem !important; font-weight: 650 !important;
  border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  padding: .32rem .9rem; text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.lang-switch:hover {
  border-color: transparent; color: #fff;
  background: var(--grad);
}

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--ink);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--btn-bg); color: #fff;
  padding: .8rem 1.55rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 620; letter-spacing: -.008em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), opacity .18s var(--ease);
  box-shadow: var(--sh-1);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: var(--grad);
  opacity: 0; transition: opacity .24s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-glow); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-sm { padding: .5rem 1.15rem; font-size: .87rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }

.btn-ghost {
  --btn-bg: transparent;
  color: var(--text); border-color: var(--rule-2); box-shadow: none;
}
.btn-ghost:hover { color: #fff; border-color: transparent; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem;
  font-size: .92rem; font-weight: 640; color: var(--accent);
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover { gap: .65rem; }
.link-arrow:hover::after { transform: translateX(2px); }

/* ==========================================================================
   Bands
   ========================================================================== */

.band { padding-block: var(--step); position: relative; }
.band-tint { background: var(--bg-2); }
.band + .band:not(.band-tint):not(.band-ink) { border-top: 1px solid var(--rule); }

.band-ink {
  background: var(--ink);
  color: #c6cede;
  position: relative; overflow: hidden;
}
.band-ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38rem 22rem at 12% 0%, rgba(59, 91, 253, .2), transparent 70%),
    radial-gradient(30rem 20rem at 92% 100%, rgba(0, 212, 200, .13), transparent 70%);
}
.band-ink > * { position: relative; }
.band-ink .h2, .band-ink .h3, .band-ink .h4 { color: #fff; }
.band-ink .lede { color: #9aa5ba; }
.band-ink .eyebrow { color: var(--accent-ink); }
.band-ink .btn { --btn-bg: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }

.section-head { max-width: 68ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

.two-col {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(4rem, 11vw, 9rem) 0;
}

/* Mesh glow + fine grid, both pure CSS so the CSP can stay at img-src 'self'. */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 130%; z-index: -2;
  background:
    radial-gradient(42rem 30rem at 78% 8%,  rgba(123, 92, 255, .34), transparent 62%),
    radial-gradient(36rem 26rem at 12% 22%, rgba(59, 91, 253, .3),   transparent 64%),
    radial-gradient(30rem 22rem at 55% 96%, rgba(0, 212, 200, .16),  transparent 66%);
  animation: drift 26s var(--ease) infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(72% 62% at 50% 34%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 34%, #000 30%, transparent 100%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.hero .h1 { color: #fff; max-width: 17ch; }
.hero-lede { color: #a3aec4; max-width: 58ch; }
.hero .eyebrow { color: #fff; opacity: .78; }
.hero .btn { --btn-bg: #fff; color: var(--ink); }
.hero .btn:hover { color: #fff; }
.hero .btn-ghost {
  --btn-bg: rgba(255, 255, 255, .06); color: #fff;
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}

.trust { margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.trust-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  list-style: none; margin: 0;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
  border-top: 1px solid var(--rule-ink);
}
.trust-list li {
  font-size: .82rem; font-weight: 550; color: #b6c0d2;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-pill);
  padding: .35rem .95rem;
}

/* ==========================================================================
   Page head
   ========================================================================== */

.page-head {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.25rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--rule);
}
.page-head::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 100%;
  pointer-events: none;
  background: radial-gradient(46rem 20rem at 82% -30%, var(--accent-soft), transparent 70%);
}
.page-head > * { position: relative; }
.page-head.tall { padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }

.jump {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.jump a {
  font-size: .85rem; font-weight: 560; text-decoration: none;
  color: var(--text-2); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  padding: .45rem 1.05rem;
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease);
}
.jump a:hover {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-1px); box-shadow: var(--sh-1);
}

/* ==========================================================================
   Service group cards
   ========================================================================== */

.group-grid {
  display: grid; gap: clamp(.9rem, 1.6vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
}

.group-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  text-decoration: none;
  overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease),
              border-color .26s var(--ease);
}
.group-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.group-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(20rem 12rem at 100% 0%, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.group-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--rule));
  box-shadow: var(--sh-3);
}
.group-card:hover::before { transform: scaleX(1); }
.group-card:hover::after { opacity: 1; }

.group-count {
  display: inline-flex; align-self: flex-start;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill); padding: .28rem .7rem;
  margin-bottom: 1rem;
}
.group-items {
  list-style: none; margin: .5rem 0 0; padding: 0;
  font-size: .91rem; color: var(--text-2);
}
.group-items li { padding: .32rem 0; border-top: 1px solid var(--rule); }
.group-items li:first-child { border-top: none; }
.group-card .link-arrow { margin-top: auto; padding-top: 1.3rem; }

/* ==========================================================================
   Services
   ========================================================================== */

.group-title {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.group-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--rule-2), transparent);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.service:first-of-type { border-top: none; padding-top: 0; }

@media (min-width: 720px) {
  .service { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.75rem; }
}

.service-num {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300; letter-spacing: -.05em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: .85;
}
.service-body { max-width: 70ch; }
.service-body > p { color: var(--text-2); }
.service-lede {
  font-size: clamp(1.05rem, .95rem + .4vw, 1.18rem);
  font-weight: 620; color: var(--text) !important;
  letter-spacing: -.018em;
}

.tick-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.tick-list li {
  position: relative;
  padding: .4rem 0 .4rem 1.7rem;
  color: var(--text-2); font-size: .95rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .95rem;
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--grad);
}
.small-list li { font-size: .9rem; }

.subgroups {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: 1.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.subgroup {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.25rem 1.35rem;
}
.subgroup .tick-list { margin-top: 0; }

.note-line { margin-top: 1.7rem; font-size: .92rem; color: var(--text-3); }
.band-ink .note-line { color: #8590a5; }

.authz-note {
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .91rem; color: var(--text-2) !important;
}

.callout {
  position: relative; overflow: hidden;
  margin-top: 2rem; padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--ink); color: #c2cbdb;
  border-radius: var(--r);
}
.callout::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(24rem 14rem at 100% 0%, rgba(123, 92, 255, .28), transparent 68%);
}
.callout > * { position: relative; }
.callout .h5 { color: var(--accent-ink); }
.callout p { color: #c2cbdb !important; margin: 0; font-size: .96rem; }

/* ==========================================================================
   Why us
   ========================================================================== */

.why-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              border-color .24s var(--ease);
}
.why-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--rule));
  box-shadow: var(--sh-2);
}
.why-item .h4 { display: flex; align-items: flex-start; gap: .55rem; }
.why-item .h4::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: .55rem;
  border-radius: 50%; background: var(--grad);
}
.why-item p { color: var(--text-2); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Deliverables
   ========================================================================== */

.deliverables {
  display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  list-style: none; margin: 0; padding: 0;
  counter-reset: d;
}
.deliverables li {
  counter-increment: d;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-ink);
}
.deliverables li::before {
  content: counter(d, decimal-leading-zero);
  display: block; margin-bottom: .6rem;
  font-size: .72rem; letter-spacing: .12em; font-weight: 700;
  color: var(--accent-ink);
}
.deliverables p { color: #929db2; font-size: .93rem; margin: 0; }

/* ==========================================================================
   Methodology table
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.std-table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: .95rem; }
.std-table th, .std-table td { text-align: left; padding: .9rem 1.15rem; }
.std-table thead th {
  font-size: .71rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.std-table tbody tr { border-top: 1px solid var(--rule); }
.std-table tbody tr:first-child { border-top: none; }
.std-table tbody th { font-weight: 640; white-space: nowrap; }
.std-table tbody td { color: var(--text-2); }
.std-table tbody tr { transition: background .16s var(--ease); }
.std-table tbody tr:hover { background: var(--accent-soft); }

/* ==========================================================================
   Steps
   ========================================================================== */

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.step {
  position: relative;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.35rem;
  max-width: 76ch;
}
.step::before {
  content: ""; position: absolute; left: 1.37rem; top: 3.4rem; bottom: -.6rem;
  width: 1px; background: var(--rule-2);
}
.step:last-child::before { display: none; }
.step-num {
  position: relative; z-index: 1;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: .95rem; font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg-2);
}
.step p { color: var(--text-2); margin: 0; font-size: .95rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: .75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.faq-item:hover { border-color: var(--rule-2); }
.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--rule));
  box-shadow: var(--sh-2);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 3.25rem 1.15rem 1.35rem;
  position: relative;
  font-size: clamp(.99rem, .95rem + .2vw, 1.06rem);
  font-weight: 630; letter-spacing: -.015em;
  transition: color .18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .24s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--accent); }
.faq-item > p {
  margin: 0; padding: 0 3.25rem 1.35rem 1.35rem;
  color: var(--text-2); max-width: 72ch;
}

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

.form-layout {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
}

.field-row {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; margin-bottom: .45rem;
  font-size: .86rem; font-weight: 640; letter-spacing: -.008em;
}
.opt { font-weight: 400; color: var(--text-3); }

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%; padding: .78rem .95rem;
  font: inherit; font-size: .96rem; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule-2); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form textarea { resize: vertical; min-height: 8.5rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - .8rem) 1.35rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.help { font-size: .84rem; color: var(--text-3); margin: .45rem 0 0; }
.field-error { font-size: .84rem; color: #dc2626; margin: .4rem 0 0; font-weight: 560; }
.form-error {
  border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
  background: color-mix(in srgb, #dc2626 8%, transparent);
  border-radius: var(--r-sm);
  padding: .95rem 1.15rem; margin-bottom: 1.5rem; font-size: .92rem;
}
.form button { margin-top: .6rem; }

.contact-aside {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  position: sticky; top: 6rem;
}
.contact-aside .h4 { margin-top: 1.85rem; }
.contact-aside .h4:first-child { margin-top: 0; }
.contact-aside .tick-list { margin-top: .55rem; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

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

.site-foot {
  background: var(--ink); color: #8a94a8;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.foot-grid {
  display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
}
.brand-foot { color: #fff; margin-bottom: .9rem; }
.foot-h {
  font-size: .71rem; letter-spacing: .13em; text-transform: uppercase;
  color: #fff; font-weight: 700; margin: 0 0 1rem;
}
.foot-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.foot-list li { padding: .3rem 0; }
.foot-list a {
  text-decoration: none; color: #8a94a8;
  transition: color .18s var(--ease);
}
.foot-list a:hover { color: #fff; }

.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2.25rem, 4vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid var(--rule-ink);
}
.foot-legal p { margin: 0; }

/* ==========================================================================
   Mobile navigation
   ========================================================================== */

@media (max-width: 860px) {
  .nav-burger {
    display: block; width: 42px; height: 42px; cursor: pointer;
    position: relative; border-radius: var(--r-sm);
    margin-inline-start: auto;
    transition: background .18s var(--ease);
  }
  .nav-burger:hover { background: var(--bg-3); }
  .nav-burger span,
  .nav-burger::before,
  .nav-burger::after {
    content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
    border-radius: 2px; background: var(--text);
    transition: transform .24s var(--ease), opacity .18s var(--ease);
  }
  .nav-burger::before { top: 14px; }
  .nav-burger span { top: 20px; }
  .nav-burger::after { top: 26px; }
  .nav-toggle:checked ~ .nav-burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }

  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    display: grid; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--sh-3);
    padding: .25rem var(--gutter) 1.35rem;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height .3s var(--ease), opacity .22s var(--ease), visibility .22s;
  }
  .nav-toggle:checked ~ .site-nav {
    max-height: 26rem; opacity: 1; visibility: visible;
  }
  .site-nav > a { padding: .9rem 0; border-top: 1px solid var(--rule); font-size: 1rem; }
  .site-nav > a:not(.btn):not(.lang-switch)::after { display: none; }
  .lang-switch { justify-self: start; margin-top: .9rem; border-top: none !important; }
  .site-nav > a.btn { margin-top: .9rem; justify-content: center; border-top: none; }
}

/* ==========================================================================
   Fine-tuning by width
   ========================================================================== */

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

@media (max-width: 560px) {
  .btn-row .btn { width: 100%; }
  .hero .h1 { max-width: none; }
  .faq-item summary { padding-inline: 1.1rem 2.75rem; }
  .faq-item > p { padding-inline: 1.1rem 1.6rem; }
  .step { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .9rem; }
  .step-num { width: 2.25rem; height: 2.25rem; font-size: .85rem; }
  .step::before { left: 1.12rem; top: 2.9rem; }
}

/* ==========================================================================
   Language switch / Arabic + RTL
   ========================================================================== */

html[lang="ar"] body {
  font-family: "Plex Arabic", "IBM Plex Sans Arabic", "Noto Sans Arabic",
               "Segoe UI", Tahoma, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(16px, .35vw + 15.5px, 17.5px);
  line-height: 1.9;
  font-feature-settings: normal;
}
html[lang="ar"] .h1,
html[lang="ar"] .h2,
html[lang="ar"] .h3,
html[lang="ar"] .h4 { letter-spacing: 0; line-height: 1.32; font-weight: 700; }
html[lang="ar"] .h1 { line-height: 1.26; font-weight: 700; }
html[lang="ar"] .h2 { line-height: 1.3; }
html[lang="ar"] .lede { line-height: 1.88; }
/* Arabic has no uppercase; small-caps styling turns into cramped noise. */
html[lang="ar"] .eyebrow,
html[lang="ar"] .h5,
html[lang="ar"] .foot-h,
html[lang="ar"] .group-count {
  text-transform: none;
  font-size: .82rem;
}
html[lang="ar"] .std-table thead th { text-transform: none; font-size: .8rem; }
html[lang="ar"] .service-lede { font-weight: 700; }
html[lang="ar"] .tick-list li { font-size: .97rem; }
html[lang="ar"] .eyebrow,
html[lang="ar"] .h5,
html[lang="ar"] .foot-h,
html[lang="ar"] .group-count,
html[lang="ar"] .std-table thead th { letter-spacing: .02em; }

[dir="rtl"] .tick-list li { padding: .4rem 1.7rem .4rem 0; }
[dir="rtl"] .tick-list li::before { left: auto; right: 0; }

[dir="rtl"] .authz-note {
  border-left: none; border-right: 3px solid transparent;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

[dir="rtl"] .faq-item summary { padding: 1.15rem 1.35rem 1.15rem 3.25rem; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 1.3rem; }
[dir="rtl"] .faq-item > p { padding: 0 1.35rem 1.35rem 3.25rem; }

[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-2px); }

[dir="rtl"] .group-card::before { transform-origin: right; }
[dir="rtl"] .group-title::after { background: linear-gradient(to left, var(--rule-2), transparent); }

[dir="rtl"] .std-table th,
[dir="rtl"] .std-table td { text-align: right; }

[dir="rtl"] .step::before { left: auto; right: 1.37rem; }
[dir="rtl"] .form select {
  background-position: 1.15rem 1.35rem, 1.4rem 1.35rem;
  padding-left: 2.5rem; padding-right: .95rem;
}

[dir="rtl"] .service-num,
[dir="rtl"] .deliverables li::before { direction: ltr; }

[dir="rtl"] .hero::before {
  background:
    radial-gradient(42rem 30rem at 22% 8%,  rgba(123, 92, 255, .34), transparent 62%),
    radial-gradient(36rem 26rem at 88% 22%, rgba(59, 91, 253, .3),   transparent 64%),
    radial-gradient(30rem 22rem at 45% 96%, rgba(0, 212, 200, .16),  transparent 66%);
}
[dir="rtl"] .page-head::before {
  background: radial-gradient(46rem 20rem at 18% -30%, var(--accent-soft), transparent 70%);
}

@media (max-width: 560px) {
  [dir="rtl"] .step::before { right: 1.12rem; }
}

/* Latin technical terms inside Arabic prose stay left-to-right. */
[dir="rtl"] [dir="ltr"] { display: inline-block; text-align: left; }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-head, .site-foot, .cta-band, .btn-row, .jump, .nav-burger { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .hero, .band-ink, .callout { background: #fff !important; color: #000 !important; }
  .hero::before, .hero::after, .band-ink::before, .callout::before { display: none; }
  .hero .h1, .band-ink .h2, .band-ink .h3, .band-ink .h4, .callout p { color: #000 !important; }
  .service-num { -webkit-text-fill-color: #000; color: #000; }
  a { text-decoration: underline; }
}
