:root {
  --page: #e8ebf8;
  --paper: #ffffff;
  --ink: #020307;
  --muted: #545763;
  --line: #d9def0;
  --line-strong: #a7b0db;
  --blue: #3d4fa9;
  --blue-2: #5872e8;
  --blue-soft: #eef1ff;
  --aqua: #768cb4;
  --green: #17a56b;
  --slate: #30364e;
  --shadow: 0 26px 80px rgba(48, 54, 78, 0.16);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Tajawal", "Inter", system-ui, sans-serif;
}

body[dir="ltr"] {
  font-family: "Inter", "Tajawal", system-ui, sans-serif;
}

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

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.88), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(61, 79, 169, 0.2), transparent 30%),
    radial-gradient(circle at 70% 74%, rgba(118, 140, 180, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(61, 79, 169, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(61, 79, 169, 0.04) 1px, transparent 1px),
    var(--page);
  background-size: auto, auto, auto, 86px 86px, 86px 86px, auto;
}

.premium-nav {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(167, 176, 219, 0.35);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}

.premium-nav.nav-scrolled {
  box-shadow: none;
}

.brand-mark img {
  width: 84px;
  height: auto;
}

.nav-links {
  gap: 0.35rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.32rem 0.58rem !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-login {
  color: #ffffff !important;
  background: linear-gradient(135deg, #020307, var(--blue));
  padding: 0.42rem 0.95rem !important;
  margin-inline-start: 0.25rem;
}

.nav-login:hover,
.nav-login:focus {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(29, 109, 242, 0.16);
}

.lang-switch {
  min-width: 72px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  font-weight: 800;
  padding: 0.3rem 0.62rem;
  font-size: 0.84rem;
}

.hero-section {
  padding: 2.8rem 0 3.8rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.96), transparent 26%),
    radial-gradient(circle at 86% 26%, rgba(61, 79, 169, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(232, 235, 248, 0.7));
  box-shadow: 0 40px 110px rgba(48, 54, 78, 0.18);
  padding: clamp(1.35rem, 4vw, 4.25rem);
  overflow: hidden;
  position: relative;
}

.hero-layout::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  border: 1px solid rgba(61, 79, 169, 0.16);
  box-shadow: inset 0 0 0 34px rgba(255, 255, 255, 0.3);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 1rem;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--line-strong));
}

.hero-copy h1,
.section-title {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.65rem, 4.35vw, 4.95rem);
  letter-spacing: -0.01em;
}

.hero-copy p,
.section-lead,
.section-heading p,
.muted-copy {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.06rem;
}

.hero-copy p {
  max-width: 660px;
  margin: 1.35rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  border-radius: 999px;
  font-weight: 800;
  padding: 0.88rem 1.15rem;
}

.btn-primary-brand {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #020307, var(--blue));
  box-shadow: 0 18px 36px rgba(61, 79, 169, 0.24);
}

.btn-primary-brand:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-quiet {
  border: 1px solid var(--line-strong);
  color: var(--blue);
  background: var(--paper);
}

.btn-quiet:hover {
  border-color: rgba(29, 109, 242, 0.5);
  color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-2px);
}

.solution-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(167, 176, 219, 0.24), transparent 24%),
    linear-gradient(145deg, #020307, #30364e 62%, #3d4fa9);
  box-shadow: 0 30px 90px rgba(2, 3, 7, 0.26);
  padding: 1.25rem;
  color: #ffffff;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-top img {
  width: 94px;
  filter: brightness(0) invert(1);
}

.panel-top span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.enterprise-stack {
  display: grid;
  gap: 0.78rem;
  padding-top: 1rem;
}

.stack-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 1.15rem;
}

.stack-status strong,
.stack-status span {
  display: block;
}

.stack-status strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.stack-status span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.stack-status b {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.42rem 0.7rem;
  font-size: 0.95rem;
}

.stack-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.88rem 1rem;
}

.stack-layer span {
  color: #ffffff;
  font-weight: 800;
}

.stack-layer em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-style: normal;
  text-align: end;
}

.assurance-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.assurance-row span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(232, 235, 248, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-strip div {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.1rem;
  box-shadow: 0 16px 44px rgba(48, 54, 78, 0.1);
}

.trust-strip strong {
  display: block;
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 800;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section-block {
  padding: 4.8rem 0;
}

.contact-section {
  padding-bottom: 1.5rem;
}

.section-block:nth-child(odd) {
  background: rgba(255, 255, 255, 0.36);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.split-heading .section-title + .muted-copy,
.split-heading .section-title + .section-lead {
  margin-top: 1rem;
}

.section-lead,
.section-heading p {
  margin: 0;
}

.section-heading {
  max-width: 870px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

#why .section-heading {
  max-width: 760px;
}

#why .section-title {
  font-size: clamp(2.15rem, 3.8vw, 4rem);
  line-height: 1.16;
}

#products .section-title {
  font-size: clamp(2.1rem, 3.7vw, 4rem);
  line-height: 1.18;
}

#products .section-heading p {
  margin-top: 1rem;
}

#services .section-title {
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.18;
}

#services .muted-copy {
  margin-top: 1rem;
}

#aimansoft .section-title {
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  line-height: 1.2;
}

#aimansoft .section-lead {
  margin-top: 1rem;
}

#contact .section-title {
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  line-height: 1.2;
}

#contact .muted-copy {
  margin-top: 1rem;
}

.value-grid,
.products-grid,
.service-list,
.why-grid {
  display: grid;
  gap: 1rem;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.products-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-list,
.why-grid {
  grid-template-columns: repeat(2, 1fr);
}

.value-card,
.product-card,
.service-card,
.why-card {
  position: relative;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(48, 54, 78, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.value-card:hover,
.product-card:hover,
.service-card:hover,
.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 109, 242, 0.4);
  box-shadow: var(--shadow);
}

.value-card,
.service-card,
.why-card {
  padding: 1.25rem;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.card-watermark {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 0.35rem;
  width: 118px;
  height: 118px;
  color: var(--blue);
  opacity: 0.055;
  transform: rotate(-8deg);
  pointer-events: none;
}

body[dir="rtl"] .card-watermark {
  transform: rotate(8deg);
}

.card-watermark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card {
  min-height: 310px;
  padding: 1.15rem;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.why-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  position: relative;
  z-index: 1;
}

.why-card {
  min-height: 205px;
  padding: 1.35rem;
}

.why-card p {
  position: relative;
  z-index: 1;
  max-width: 90%;
  margin-top: 0.75rem;
}

.why-watermark {
  position: absolute;
  inset-inline-end: 1.1rem;
  bottom: 0.2rem;
  width: 112px;
  height: 112px;
  color: var(--blue);
  opacity: 0.045;
  transform: rotate(-8deg);
  pointer-events: none;
}

body[dir="rtl"] .why-watermark {
  transform: rotate(8deg);
}

.why-watermark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--slate));
  font-weight: 800;
}

.product-icon,
.about-icon,
.why-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #020307, var(--blue));
  box-shadow: 0 14px 28px rgba(61, 79, 169, 0.18);
}

.about-icon {
  margin-bottom: 1rem;
}

.why-icon {
  margin-bottom: 0;
}

.product-icon svg,
.about-icon svg,
.why-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3,
.product-card h3,
.service-card h3,
.why-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.value-card p,
.product-card p,
.service-card p,
.why-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.product-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1rem;
}

.product-card .tags span {
  border-radius: 999px;
  background: #eef1ff;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.58rem;
}

.vision-band,
.services-band,
.sectors-band {
  border-block: 1px solid rgba(167, 176, 219, 0.34);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 235, 248, 0.46));
}

.wasael-detail {
  background: rgba(255, 255, 255, 0.48);
  padding-bottom: 2.2rem;
}

.wasael-brand-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(135deg, rgba(232, 235, 248, 0.54), rgba(255, 255, 255, 0.44));
  padding-top: 2.2rem;
}

.wasael-brand-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(61, 79, 169, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.wasael-brand-copy .section-title {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.18;
}

.wasael-brand-copy .section-lead {
  max-width: 720px;
  margin-top: 1rem;
}

.wasael-brand-logo {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.wasael-brand-logo img {
  width: min(260px, 78%);
  height: auto;
}

.wasael-video {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(167, 176, 219, 0.42);
  border-radius: 22px;
  background: #eef1f6;
  box-shadow: 0 18px 44px rgba(48, 54, 78, 0.12);
  object-fit: contain;
  overflow: hidden;
}

.wasael-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.wasael-brand-pills span {
  border: 1px solid rgba(61, 79, 169, 0.2);
  border-radius: 999px;
  background: rgba(238, 241, 255, 0.78);
  color: var(--blue);
  font-weight: 800;
  padding: 0.58rem 0.85rem;
}

.platform-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(61, 79, 169, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 235, 248, 0.72));
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.platform-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.platform-points span {
  position: relative;
  border: 1px solid rgba(167, 176, 219, 0.44);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-weight: 800;
  padding: 0.75rem 1rem;
}

.platform-stack {
  display: grid;
  gap: 0.9rem;
}

.platform-stack div {
  border: 1px solid rgba(167, 176, 219, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.platform-stack strong,
.arm-grid strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.platform-stack span,
.arm-grid span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.aimansoft-section {
  background:
    linear-gradient(135deg, rgba(13, 71, 183, 0.04), rgba(0, 167, 200, 0.035)),
    #f7faff;
}

.arm-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.arm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.arm-grid div {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid rgba(167, 176, 219, 0.4);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 241, 255, 0.68));
  padding: 1.1rem;
}

.arm-grid strong,
.arm-grid span:not(.arm-watermark) {
  position: relative;
  z-index: 1;
}

.arm-watermark {
  position: absolute;
  inset-inline-end: 0.9rem;
  bottom: 0.25rem;
  width: 104px;
  height: 104px;
  color: var(--blue);
  opacity: 0.06;
  transform: rotate(-8deg);
  pointer-events: none;
}

body[dir="rtl"] .arm-watermark {
  transform: rotate(8deg);
}

.arm-watermark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vision-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vision-pill,
.sector-pill {
  border: 1px solid rgba(167, 176, 219, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  padding: 0.7rem 0.95rem;
  font-weight: 800;
}

.sector-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 10%, rgba(61, 79, 169, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.contact-details {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-top: 1.4rem;
  color: var(--blue);
  font-weight: 800;
}

.contact-details > * {
  white-space: nowrap;
}

body[dir="rtl"] #contact .contact-details {
  justify-content: flex-start;
  text-align: right;
}

#contact .contact-details > *:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-inline-start: 1rem;
  vertical-align: -0.12em;
  background: rgba(61, 79, 169, 0.28);
}

.social-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(48, 54, 78, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(48, 54, 78, 0.18);
}

.social-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.linkedin-icon svg {
  width: 23px;
  height: 23px;
}

.email-icon svg {
  width: 24px;
  height: 24px;
}

.email-icon {
  background: #3d4fa9;
}

.whatsapp-icon {
  background: #16a765;
}

.linkedin-icon {
  background: #0a66c2;
}

.youtube-icon {
  background: #ff0033;
}

.contact-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

body[dir="rtl"] #contact .contact-social {
  justify-content: flex-start;
}

body[dir="rtl"] #contact .contact-details {
  direction: ltr;
}

body[dir="rtl"] #contact .contact-details > * {
  direction: rtl;
}

body[dir="rtl"] #contact .contact-details .phone-link {
  direction: ltr;
}

body[dir="rtl"] .footer .phone-link {
  display: block;
  width: 100%;
  text-align: right;
  direction: ltr;
}

.phone-link {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

#contact .phone-link {
  justify-self: start;
}

body[dir="rtl"] #contact .phone-link {
  justify-self: end;
}

.contact-form label {
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fbfdff;
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(29, 109, 242, 0.5);
  box-shadow: 0 0 0 0.18rem rgba(29, 109, 242, 0.12);
}

.privacy-page {
  align-items: start;
}

.privacy-content h2 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}

.privacy-content p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.35rem;
}

.privacy-content a {
  color: var(--blue);
  font-weight: 800;
}

.footer {
  padding: 1.4rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(111, 124, 190, 0.28), transparent 24%),
    linear-gradient(145deg, #03050c, #151827 58%, #30364e);
  box-shadow: 0 34px 90px rgba(2, 3, 7, 0.28);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand img {
  width: 118px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 360px;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.footer-brand span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  padding: 0.5rem 0.8rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.footer-links h3 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.footer-links a,
.footer-links span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(145deg, #03050c, #151827 58%, #30364e);
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.footer-bottom div {
  display: flex;
  gap: 1rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.18s;
}

@media (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wasael-brand-copy .section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 0.7rem;
  }

  .hero-layout,
  .split-heading,
  .contact-shell,
  .footer-shell,
  .wasael-brand-card,
  .platform-feature,
  .arm-card {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    padding: 2.2rem 0 3rem;
  }

  .section-block {
    padding: 3.4rem 0;
  }

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

  .trust-strip,
  .products-grid,
  .value-grid,
  .arm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 1.8rem 0 2.6rem;
  }

  .section-block {
    padding: 2.6rem 0;
  }

  .wasael-detail {
    padding-bottom: 1.4rem;
  }

  .wasael-brand-section {
    padding-top: 1.4rem;
  }

  .section-heading {
    margin-bottom: 1.2rem;
  }

  .split-heading {
    gap: 1.4rem;
  }

  .trust-strip {
    margin-top: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .wasael-brand-copy .section-title {
    font-size: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-strip,
  .products-grid,
  .value-grid,
  .service-list,
  .why-grid,
  .arm-grid {
    grid-template-columns: 1fr;
  }

  .panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-details {
    flex-wrap: wrap;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
  }

  .footer-links h3 {
    margin-bottom: 0.45rem;
  }

  .footer-links a,
  .footer-links span {
    line-height: 1.45;
    margin-bottom: 0.25rem;
  }

  .footer-shell {
    gap: 1.4rem;
    padding: 1.4rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-brand img {
    width: 96px;
    margin-bottom: 0.8rem;
  }

  .footer-brand span {
    padding: 0.42rem 0.68rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 1.5rem;
  }

  .stack-layer {
    align-items: flex-start;
    flex-direction: column;
  }

  .stack-layer em {
    text-align: inherit;
  }

  .assurance-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
