:root {
  --blue: #0029ff;
  --blue-2: #001fce;
  --navy: #070d22;
  --navy-2: #0b1740;
  --ink: #09111f;
  --muted: #526074;
  --line: #d8e1f3;
  --mist: #f5fbff;
  --panel: #ffffff;
  --shadow: 0 28px 80px rgba(7, 13, 34, 0.16);
  --soft-shadow: 0 14px 42px rgba(7, 13, 34, 0.08);
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 86, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 86, 255, 0.018) 1px, transparent 1px),
    #ffffff;
  background-size: 44px 44px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 14%, rgba(0, 119, 255, 0.07), transparent 25%),
    radial-gradient(circle at 88% 12%, rgba(0, 119, 255, 0.045), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 36%, #f7fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

section,
header,
footer,
nav,
form,
.section,
.site-header,
.hero,
.hero-copy,
.hero-visual,
.code-workspace,
.section-heading,
.service-grid,
.service-card,
.value-grid,
.value-grid article,
.case-grid,
.case-card,
.case-card-media,
.case-card-body,
.case-meta-grid,
.case-result,
.case-result-card,
.split,
.industry-list,
.stack-grid,
.stack-grid article,
.contact,
.contact-card,
.service-hero,
.service-hero-copy,
.service-hero-panel,
.service-detail-band,
.article-copy,
.capability-grid,
.capability-grid article,
.process-list,
.use-case-grid,
.use-case-grid article,
.dark-band,
.button {
  box-sizing: border-box;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  padding: 18px 30px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.9), rgba(251, 253, 255, 0.62));
  border-bottom: 1px solid rgba(216, 225, 243, 0.54);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 220px;
  max-width: min(220px, 100%);
  height: 62px;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(216, 225, 243, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 32px rgba(7, 13, 34, 0.06);
}

.nav-links a,
.nav-cta,
.lang-toggle {
  border-radius: 999px;
  padding: 11px 16px;
  color: #2f3a50;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--navy);
  color: #ffffff;
}

.nav-cta {
  justify-self: end;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 41, 255, 0.28);
}

.lang-toggle {
  justify-self: end;
  border: 1px solid rgba(0, 41, 255, 0.18);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-family: inherit;
}

.nav-cta:hover,
.button:hover,
.lang-toggle:hover {
  transform: translateY(-2px);
}

.nav-links a:active,
.nav-cta:active,
.lang-toggle:active,
.button:active {
  transform: translateY(1px) scale(0.99);
}

html[dir="rtl"] body {
  font-family: Tajawal, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] .button,
html[dir="rtl"] .nav-cta,
html[dir="rtl"] .lang-toggle {
  font-family: Tajawal, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[dir="rtl"] .section-heading,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .article-copy,
html[dir="rtl"] .service-hero-copy,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .split,
html[dir="rtl"] .split > p {
  text-align: right;
}

html[dir="rtl"] .services .section-heading,
html[dir="rtl"] .work .section-heading,
html[dir="rtl"] .stack .section-heading {
  margin-right: calc((100% - min(100%, 1180px)) / 2);
  margin-left: auto;
}

html[dir="rtl"] .dark-band .section-heading {
  margin-right: clamp(24px, 7vw, 86px);
  margin-left: auto;
}

html[dir="rtl"] .service-detail-band .section-heading,
html[dir="rtl"] .capability-grid article,
html[dir="rtl"] .capability-grid span,
html[dir="rtl"] .capability-grid h3,
html[dir="rtl"] .capability-grid p {
  text-align: right;
}

html[dir="rtl"] .service-detail-band .section-heading {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .service-hero-copy {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .service-hero-copy p,
html[dir="rtl"] .article-copy p,
html[dir="rtl"] .process-list p {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .process-list article {
  grid-template-columns: 260px minmax(0, 1fr);
}

html[dir="rtl"] .process-list span {
  text-align: right;
}

html[dir="rtl"] .process-list p {
  text-align: right;
}

html[dir="rtl"] .service-card,
html[dir="rtl"] .value-grid article,
html[dir="rtl"] .case-card-body,
html[dir="rtl"] .stack-grid article,
html[dir="rtl"] .case-meta-grid article,
html[dir="rtl"] .case-result-card {
  text-align: right;
}

html[dir="rtl"] .service-card > a,
html[dir="rtl"] .service-card .card-action {
  right: 28px;
  left: auto;
}

html[dir="rtl"] .case-meta-grid span,
html[dir="rtl"] .capability-grid span {
  letter-spacing: 0;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

html[dir="rtl"] .workspace-head,
html[dir="rtl"] .platform-card-head {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .platform-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  grid-template-rows: auto minmax(150px, 1fr) auto;
  gap: 14px;
  min-height: 340px;
  padding: 22px;
}

html[dir="rtl"] .platform-map {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

html[dir="rtl"] .platform-map span {
  min-height: 58px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.22;
}

html[dir="rtl"] .main-platform-card {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  text-align: right;
}

html[dir="rtl"] .platform-metric {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 0;
  padding: 16px 18px;
  text-align: right;
}

html[dir="rtl"] .metric-one {
  grid-column: 2;
  grid-row: 2;
}

html[dir="rtl"] .metric-two {
  grid-column: 2;
  grid-row: 3;
}

html[dir="rtl"] .platform-status {
  position: relative;
  grid-column: 1;
  grid-row: 3;
  inset: auto;
  justify-self: start;
  flex-direction: row-reverse;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--navy);
}

.section {
  position: relative;
  padding: 104px 24px;
}

.hero {
  min-height: 94dvh;
  display: grid;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
  gap: 48px;
  align-items: center;
  padding-top: 116px;
  padding-bottom: 30px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 10vh;
  z-index: -1;
  width: 44vw;
  max-width: 100vw;
  height: 44vw;
  border: 1px solid rgba(0, 86, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.055), transparent 62%);
}

.hero-copy,
.hero-visual,
.section-heading,
.service-grid,
.value-grid,
.case-grid,
.case-meta-grid,
.case-result,
.split,
.industry-list,
.stack-grid,
.contact-card,
footer {
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 12px 22px;
  border: 1px solid rgba(0, 41, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 28px;
  color: #425069;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 41, 255, 0.28);
}

.button.secondary {
  border-color: rgba(8, 17, 38, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  max-width: 100%;
  min-width: 0;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 41, 255, 0.16);
  border-radius: 50%;
  inset: 70px 0 22px 74px;
}

.orbit-one {
  transform: rotate(-14deg);
}

.orbit-two {
  inset: 24px 42px 88px 12px;
  border-color: rgba(0, 41, 255, 0.2);
  transform: rotate(11deg);
}

.code-workspace {
  position: relative;
  margin: 36px auto 0;
  width: 100%;
  max-width: 550px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.76)),
    radial-gradient(circle at 14% 4%, rgba(0, 119, 255, 0.07), transparent 32%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.code-workspace::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(0, 86, 255, 0.18), rgba(0, 119, 255, 0.06), transparent 72%);
}

.card-top {
  display: flex;
  gap: 8px;
  padding: 4px 0 18px;
}

.card-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8e1f3;
}

.workspace-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.workspace-head p,
.workspace-head strong {
  margin: 0;
}

.workspace-head p {
  color: var(--muted);
  font-weight: 900;
}

.workspace-head strong {
  display: block;
  color: var(--navy);
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.status-pill {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(0, 41, 255, 0.11);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.platform-stage {
  position: relative;
  max-width: 100%;
  min-width: 0;
  min-height: 306px;
  padding: 20px;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(92, 120, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(8, 17, 38, 0.99), rgba(9, 19, 67, 0.98));
}

.platform-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.12) 1.5px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 44px 44px;
}

.platform-map,
.platform-card,
.platform-metric,
.platform-status {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.platform-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.platform-map span {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7ecff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.main-platform-card {
  width: min(68%, 338px);
  min-height: 164px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 239, 255, 0.9)),
    #ffffff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.platform-card-head b {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 41, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
}

.main-platform-card strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.platform-bars {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.platform-bars span {
  height: 10px;
  width: var(--bar-width);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(52, 200, 255, 0.78));
}

.platform-metric {
  position: absolute;
  z-index: 2;
  gap: 6px;
  width: 168px;
  padding: 16px;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(8, 22, 98, 0.86);
  color: #eff3ff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.metric-one {
  right: 20px;
  top: 118px;
}

.metric-two {
  right: 76px;
  bottom: 24px;
}

.platform-metric small {
  color: #aebcff;
  font-weight: 900;
}

.platform-metric b {
  font-size: 26px;
  line-height: 1;
}

.platform-metric span {
  color: rgba(239, 243, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.platform-status {
  position: absolute;
  left: 22px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #eff3ff;
  font-size: 13px;
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #48d7ff;
  box-shadow: 0 0 0 6px rgba(72, 215, 255, 0.16);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.concept-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(216, 225, 243, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.concept-grid b,
.concept-grid small {
  display: block;
}

.concept-grid small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  max-width: 840px;
  text-align: left;
}

.section-heading p:not(.eyebrow),
.split p,
.contact-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.services .section-heading,
.work .section-heading,
.stack .section-heading {
  margin-left: calc((100% - min(100%, 1180px)) / 2);
  margin-right: auto;
}

.service-grid,
.value-grid,
.case-grid,
.stack-grid {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}

.service-grid {
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
}

.service-card {
  position: relative;
  min-height: 300px;
  grid-column: span 2;
  padding: 28px;
  border: 1px solid rgba(216, 225, 243, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 220ms ease, border 220ms ease, box-shadow 220ms ease;
}

.service-card:nth-child(1),
.service-card:nth-child(2) {
  grid-column: span 3;
}

.service-card:hover,
.stack-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 41, 255, 0.46);
  box-shadow: var(--shadow);
}

.service-card .icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.service-card h3,
.stack-grid h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.18;
}

.service-card p,
.stack-grid p,
.value-grid p,
.case-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.7;
}

.service-card > a {
  position: absolute;
  z-index: 1;
  left: 28px;
  bottom: 24px;
  display: inline-flex;
  color: var(--blue);
  font-weight: 900;
}

.service-card .card-action {
  position: absolute;
  z-index: 1;
  left: 28px;
  bottom: 24px;
  display: inline-flex;
  color: var(--blue);
  font-weight: 900;
}

.service-card-link {
  display: block;
  color: inherit;
}

.dark-band {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(155deg, #1230ff 0%, #0721c8 34%, #061044 72%, #050916 100%);
  box-shadow: 0 34px 90px rgba(7, 13, 34, 0.22);
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.light {
  position: relative;
  z-index: 1;
}

.light h2,
.value-grid h3 {
  color: #ffffff;
}

.light p:not(.eyebrow),
.value-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.value-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.work {
  background:
    linear-gradient(180deg, #f8fcff, #ffffff);
}

.case-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: minmax(240px, auto);
}

.case-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.case-card-link:hover {
  transform: translateY(-6px);
}

.case-card:first-child {
  grid-row: span 2;
  justify-content: flex-start;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1));
}

.case-card p,
.case-card h3,
.case-card span {
  position: relative;
  z-index: 2;
}

.case-card p {
  margin-bottom: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.78);
}

.case-card h3 {
  color: #ffffff;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.case-card span {
  color: rgba(255, 255, 255, 0.84);
}

.case-card-image {
  justify-content: flex-start;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.case-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-image::before {
  display: none;
}

.case-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.case-card-image .case-card-body p {
  color: var(--blue);
}

.case-card-image .case-card-body h3 {
  color: var(--navy);
}

.case-card-image .case-card-body span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.case-card-image .case-card-body strong {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
}

.case-card.blue { background: linear-gradient(160deg, #0029ff, #07114f); }
.case-card.royal { background: linear-gradient(160deg, #0029ff, #06105c); }
.case-card.navy { background: linear-gradient(160deg, #111b3d, #050816); }
.case-card.white {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 12%, rgba(0, 119, 255, 0.06), transparent 35%),
    #ffffff;
}
.case-card.white p { color: var(--blue); }
.case-card.white h3 { color: var(--navy); }
.case-card.white span { color: var(--muted); }

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
  padding-top: 142px;
}

.case-hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 243, 0.92);
  border-radius: 18px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.case-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
}

.case-meta-grid article {
  padding: 24px;
  background: #ffffff;
}

.case-meta-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-meta-grid p {
  color: var(--navy);
  font-weight: 800;
}

.case-result {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.case-result-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(160deg, var(--blue), var(--navy));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.case-result-card span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.case-result-card strong {
  display: block;
  margin-top: 46px;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 56px;
  align-items: start;
}

.split > p {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(8, 17, 38, 0.14);
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.industry-list span {
  padding: 15px 18px;
  border: 1px solid rgba(8, 17, 38, 0.11);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(7, 13, 34, 0.04);
}

.stack {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 119, 255, 0.045), transparent 28%),
    #ffffff;
}

.stack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-grid article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(216, 225, 243, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, border 220ms ease, box-shadow 220ms ease;
}

.contact {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto 34px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(155deg, #1230ff 0%, #0721c8 34%, #061044 72%, #050916 100%);
  box-shadow: 0 34px 90px rgba(7, 13, 34, 0.22);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%);
  pointer-events: none;
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 46px;
  align-items: start;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(5, 9, 22, 0.24);
}

.contact-card h2 {
  color: var(--navy);
}

.contact-card form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d4ea;
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #69768a;
}

.form-error {
  display: none;
  margin: 0;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(217, 45, 32, 0.07);
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 28px 24px 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(155deg, #1230ff 0%, #061bba 46%, #061044 100%);
  box-shadow: 0 22px 54px rgba(0, 41, 255, 0.22);
  text-align: center;
}

.form-success.is-visible,
form.is-submitted .form-success {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.success-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(238, 243, 255, 0.96)),
    #ffffff;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.08),
    inset 0 -10px 24px rgba(18, 48, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.success-icon::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.success-icon::before {
  inset: 9px;
  border: 1px solid rgba(18, 48, 255, 0.1);
  border-radius: 999px;
}

.success-icon-check {
  width: 30px;
  height: 17px;
  border-left: 7px solid #1230ff;
  border-bottom: 7px solid #1230ff;
  border-radius: 0 0 0 5px;
  transform: rotate(-45deg) translate(2px, -3px);
  transform-origin: center;
}

.form-success p {
  margin: 0;
  max-width: 28ch;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

form.is-submitted label,
form.is-submitted .button {
  display: none;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav-cta:focus-visible,
.menu-toggle:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 41, 255, 0.12);
}

textarea {
  resize: vertical;
}

footer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 38px 24px;
}

footer img {
  width: 170px;
  height: 52px;
  object-fit: cover;
  object-position: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ltr-number,
input[type="tel"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.service-hero {
  min-height: 84dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.52fr);
  gap: 48px;
  align-items: center;
  padding-top: 132px;
  padding-bottom: 72px;
}

.service-hero-copy,
.service-hero-panel,
.article-copy,
.capability-grid,
.process-list,
.use-case-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.service-hero-copy {
  margin-right: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 900;
}

.service-hero-copy p,
.article-copy p {
  max-width: 760px;
  color: #425069;
  font-size: 19px;
  line-height: 1.74;
}

.service-hero-panel {
  margin-left: 0;
  padding: 30px;
  border: 1px solid rgba(216, 225, 243, 0.96);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 119, 255, 0.055), transparent 36%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.service-hero-panel p {
  margin-bottom: 20px;
  color: var(--blue);
  font-weight: 900;
}

.service-hero-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-hero-panel li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(8, 17, 38, 0.1);
  color: var(--navy);
  font-weight: 850;
  line-height: 1.45;
}

.service-hero-panel li:last-child {
  border-bottom: 0;
}

.service-intro {
  background: #ffffff;
}

.article-copy {
  max-width: 900px;
}

.article-copy p + p {
  margin-top: 18px;
}

.service-detail-band {
  overflow: hidden;
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  border-radius: 34px;
  padding-right: 48px;
  padding-left: 48px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(155deg, #1230ff 0%, #0721c8 38%, #061044 78%, #050916 100%);
  box-shadow: 0 34px 90px rgba(7, 13, 34, 0.22);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 48px;
}

.capability-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(216, 225, 243, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 119, 255, 0.045), transparent 38%),
    rgba(248, 251, 255, 0.96);
  color: var(--navy);
  box-shadow: 0 18px 44px rgba(7, 13, 34, 0.08);
}

.capability-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.capability-grid h3 {
  color: var(--navy);
  font-size: 26px;
}

.capability-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.process-section {
  background:
    linear-gradient(180deg, #ffffff, #f8fcff);
}

.process-list {
  display: grid;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(8, 17, 38, 0.12);
}

.process-list article {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(8, 17, 38, 0.12);
}

.process-list span {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.mobile-use-cases,
.service-use-cases {
  background: #ffffff;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.use-case-grid article {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(216, 225, 243, 0.92);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 119, 255, 0.045), transparent 40%),
    rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.service-cta .contact-card {
  align-items: center;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    min-height: auto;
  }

  .code-workspace {
    max-width: 680px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 18px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .brand img {
    width: clamp(150px, 48vw, 196px);
    height: 58px;
  }

  .menu-toggle {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .lang-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 48px;
    height: 44px;
    padding: 0 13px;
    border-color: rgba(0, 41, 255, 0.22);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(7, 13, 34, 0.08);
    color: var(--blue);
    font-size: 0;
  }

  .lang-toggle::after {
    content: "ع";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  html[lang="ar"] .lang-toggle::after {
    content: "EN";
  }

  .site-header.menu-open .nav-links,
  .site-header.menu-open .nav-cta {
    display: flex;
    width: 100%;
  }

  .site-header.menu-open .nav-links {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .site-header.menu-open .nav-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .service-grid,
  .value-grid,
  .case-grid,
  .case-meta-grid,
  .case-result,
  .stack-grid,
  .capability-grid,
  .use-case-grid,
  .contact-card,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    grid-column: span 1;
  }

  .case-card:first-child {
    grid-row: span 1;
  }

  .case-hero {
    grid-template-columns: 1fr;
  }

  .service-detail-band {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 82px 18px;
  }

  .hero {
    padding-top: 112px;
    overflow: hidden;
  }

  .hero::after {
    right: -28vw;
    width: min(72vw, 280px);
    height: min(72vw, 280px);
  }

  .hero-visual {
    width: 100%;
    overflow: hidden;
  }

  .orbit {
    inset: 22px 12px 18px;
    width: auto;
    height: auto;
    transform-origin: center;
  }

  .orbit-one {
    transform: rotate(-8deg) scale(0.94);
  }

  .orbit-two {
    inset: 14px 16px 32px;
    transform: rotate(7deg) scale(0.92);
  }

  .code-workspace {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .service-hero {
    min-height: auto;
    padding-top: 126px;
  }

  .service-detail-band {
    width: min(calc(100% - 24px), 1240px);
    border-radius: 24px;
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .service-grid,
  .value-grid,
  .case-grid,
  .case-meta-grid,
  .case-result,
  .stack-grid,
  .capability-grid,
  .use-case-grid,
  .contact-card,
  .split,
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .process-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html[dir="rtl"] .process-list article {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .process-list span,
  html[dir="rtl"] .process-list p {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .workspace-head {
    grid-template-columns: 1fr;
  }

  .platform-stage {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .platform-map {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
  }

  .platform-map span {
    min-height: 48px;
    overflow-wrap: anywhere;
  }

  .main-platform-card {
    width: 100%;
    min-height: 150px;
  }

  .platform-metric {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
  }

  .metric-one {
    left: auto;
  }

  .metric-two {
    right: auto;
  }

  .platform-status {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    justify-content: center;
  }

  html[dir="rtl"] .code-workspace {
    padding: 14px;
  }

  html[dir="rtl"] .workspace-head {
    gap: 12px;
  }

  html[dir="rtl"] .workspace-head strong {
    font-size: 24px;
    line-height: 1.16;
  }

  html[dir="rtl"] .status-pill {
    width: 100%;
    text-align: center;
  }

  html[dir="rtl"] .platform-stage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    min-height: auto;
    padding: 14px;
  }

  html[dir="rtl"] .platform-map {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html[dir="rtl"] .platform-map span {
    min-height: 54px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.18;
  }

  html[dir="rtl"] .platform-map span:nth-child(3) {
    grid-column: 1 / -1;
  }

  html[dir="rtl"] .main-platform-card,
  html[dir="rtl"] .platform-metric,
  html[dir="rtl"] .platform-status {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  html[dir="rtl"] .main-platform-card {
    min-height: auto;
    padding: 18px;
  }

  html[dir="rtl"] .main-platform-card strong {
    font-size: 22px;
    line-height: 1.24;
  }

  html[dir="rtl"] .platform-metric {
    min-height: 124px;
    align-content: center;
  }

  html[dir="rtl"] .platform-metric b {
    font-size: 32px;
  }

  html[dir="rtl"] .platform-status {
    justify-self: stretch;
    justify-content: center;
  }

  .service-card {
    min-height: 280px;
  }

  .split > p {
    margin-top: 0;
  }

  .contact-card {
    padding: 28px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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