:root {
  /* Brand colours picked from the logo */
  --purple: #7A2FA8;
  --indigo: #2E3F96;
  --teal: #2BB5C9;
  --teal-light: #3CC8D8;
  --navy: #0F1535;
  --ink: #1B2040;
  --muted: #5B6180;
  --line: #E4E6F0;
  --bg: #FFFFFF;
  --bg-alt: #F6F7FB;
  --grad: linear-gradient(120deg, var(--purple) 0%, var(--indigo) 50%, var(--teal-light) 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 24, 60, .08);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .8em;
}
.eyebrow-light { color: var(--teal-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: #fff; background: var(--grad); background-size: 150% 100%;
  box-shadow: 0 8px 20px rgba(46, 63, 150, .25);
  transition: background-position .4s, transform .2s, box-shadow .2s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46, 63, 150, .32); }
.btn-sm { padding: .55em 1.2em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--indigo); box-shadow: none; }
.btn-light { background: #fff; color: var(--indigo); box-shadow: none; }
.btn-light:hover { background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { margin-inline-end: auto; min-width: 0; }
.brand-name { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .site-header .brand-name { font-size: 1.05rem; }
  .lang-switch button { padding: .5em .7em; }
}

/* Language switch */
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-alt);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: 600 .82rem/1 var(--font-head); color: var(--muted);
  padding: .55em .9em; border-radius: 999px; letter-spacing: 0;
  transition: background .2s, color .2s;
}
.lang-switch button[lang="ar"] { font-family: "Noto Kufi Arabic", sans-serif; }
.lang-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.b-ailla { color: var(--purple); }
.b-sol { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--indigo); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; background: var(--navy); color: #C9CDE6; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 12% 20%, rgba(122, 47, 168, .55), transparent 70%),
    radial-gradient(700px 500px at 90% 80%, rgba(60, 200, 216, .35), transparent 70%),
    radial-gradient(500px 400px at 60% 10%, rgba(46, 63, 150, .6), transparent 70%);
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-inner { position: relative; max-width: 860px; text-align: center; }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 { color: #fff; }
.hero .grad-text { background: linear-gradient(90deg, #C084FC, var(--teal-light)); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 680px; margin: 0 auto 2em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-tags { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags li {
  font-size: .85rem; font-weight: 500; color: #E3E6F7;
  padding: .45em 1em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
}
@media (max-width: 600px) { .hero { padding: 72px 0 80px; } }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card > p { color: var(--muted); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-purple { background: linear-gradient(135deg, #9B4DCA, var(--purple)); }
.ic-blue { background: linear-gradient(135deg, #4A5BC4, var(--indigo)); }
.ic-teal { background: linear-gradient(135deg, var(--teal-light), #1E95A8); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg) translateY(-3px);
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.step-num {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.why-text p:last-child { color: var(--muted); font-size: 1.05rem; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 22px; border-radius: 12px; background: var(--bg-alt);
  border-inline-start: 4px solid var(--teal);
}
.why-list li:nth-child(odd) { border-inline-start-color: var(--purple); }
.why-list strong { font-family: var(--font-head); color: var(--navy); }
.why-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 36px; } }

/* Contact */
.contact { padding-top: 0; }
.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 24px;
  background: linear-gradient(130deg, #3A1E63 0%, var(--indigo) 55%, #167D90 100%);
  color: #D9DCF0;
  position: relative; overflow: hidden;
}
.contact-panel::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(60,200,216,.35), transparent 70%);
  pointer-events: none;
}
.contact-intro h2 { color: #fff; }
.contact-intro p { margin-bottom: 1.6em; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: background .2s;
}
.contact-list li:hover { background: rgba(255,255,255,.14); }
.c-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.c-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-label { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #A9AED0; }
.contact-list a { color: #fff; font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-list a:hover { color: var(--teal-light); }
@media (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; } }
@media (max-width: 600px) { .contact-panel { padding: 32px 20px; border-radius: 18px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-footer .brand-name { font-size: 1.1rem; }
.footer-services, .copy { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .footer-inner { flex-direction: column; text-align: center; } }

/* Arabic / RTL */
/* Body: Naskh, the classic written/book style. Headings & UI: Kufi, the geometric traditional style. */
html[lang="ar"] body {
  font-family: "Noto Naskh Arabic", var(--font-body);
  font-size: 18px; line-height: 1.9;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .btn, html[lang="ar"] .eyebrow, html[lang="ar"] .nav-links a,
html[lang="ar"] .hero-tags li, html[lang="ar"] .c-label, html[lang="ar"] .why-list strong,
html[lang="ar"] .footer-services, html[lang="ar"] .copy {
  font-family: "Noto Kufi Arabic", var(--font-body);
}
html[lang="ar"] .brand-name { font-family: var(--font-head); }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.5; }
html[lang="ar"] h2 { line-height: 1.6; }
html[lang="ar"] h3 { line-height: 1.6; font-size: 1.15rem; }
html[lang="ar"] .eyebrow, html[lang="ar"] .c-label { text-transform: none; font-size: .85rem; }
html[lang="ar"] .nav-links a, html[lang="ar"] .btn { font-size: .92rem; }
html[lang="ar"] .hero-tags li { font-size: .8rem; }
html[lang="ar"] .footer-services, html[lang="ar"] .copy { font-size: .82rem; }
html[dir="rtl"] .contact-panel::after { right: auto; left: -120px; }
html[dir="rtl"] .contact-list a[dir="ltr"] { unicode-bidi: isolate; }

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