:root {
  --bg: #06111f;
  --bg-2: #0d203b;
  --bg-3: #081a31;
  --surface: rgba(9, 25, 46, 0.82);
  --line: rgba(133, 184, 237, 0.26);
  --text: #eaf4ff;
  --muted: #9eb6d5;
  --brand: #41adff;
  --brand-soft: #98d8ff;
  --white: #ffffff;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-lg: 0 28px 70px rgba(2, 9, 19, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #05101d 0%, #07162a 100%);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 350px at 12% 5%, rgba(72, 164, 255, 0.24), transparent 60%),
    radial-gradient(600px 380px at 85% 16%, rgba(132, 215, 255, 0.2), transparent 64%),
    radial-gradient(900px 450px at 50% 120%, rgba(68, 141, 233, 0.14), transparent 68%);
  filter: saturate(110%);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  top: 0;
  z-index: 30;
  margin-top: 12px;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(5, 16, 31, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(157, 207, 255, 0.52);
  object-fit: cover;
}

.brand span {
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0.3);
  transform-origin: left;
  opacity: 0;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 30, 56, 0.85);
  padding: 0;
}

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

.lang-toggle {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 33, 60, 0.6);
  color: var(--white);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-toggle:hover {
  border-color: rgba(172, 222, 255, 0.8);
}

.lang-toggle .lang-option {
  opacity: 0.66;
}

.lang-toggle .lang-option.is-active {
  opacity: 1;
  color: #ffffff;
}

.lang-toggle .lang-sep {
  opacity: 0.45;
}

.btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-solid {
  color: #042444;
  background: linear-gradient(130deg, #b6e8ff, #57b7ff 65%);
  box-shadow: 0 10px 24px rgba(79, 172, 255, 0.3);
}

.btn-outline {
  color: var(--white);
  background: rgba(11, 33, 60, 0.6);
  border-color: var(--line);
}

.btn:hover {
  transform: translateY(-1px);
}

main {
  padding: 2.2rem 0 1.6rem;
}

.hero {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: center;
}

.hero-copy {
  padding: 1.2rem 0;
  min-height: 520px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-soft);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero .eyebrow,
#solutions .eyebrow,
#numbers .eyebrow,
.section-why .eyebrow,
#partners .eyebrow {
  font-size: 0.82rem;
  line-height: 1.1;
}

.hero-copy h1 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
  animation: hero-in 560ms ease both;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-points {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.hero-points li {
  color: #d8e9ff;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  font-size: 0.95rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--brand-soft), var(--brand));
  box-shadow: 0 0 12px rgba(138, 211, 255, 0.9);
}

.hero-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 520px;
  max-height: 520px;
  aspect-ratio: 1 / 1;
  margin-top: 28px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section {
  position: relative;
  margin-top: 3.2rem;
  padding: 3rem 0;
}

.section-solutions {
  overflow: hidden;
  margin-top: 5.2rem;
  background:
    linear-gradient(180deg, rgba(7, 22, 42, 0.35), rgba(6, 20, 39, 0.35)),
    url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-radius: 18px;
}

.section-numbers {
  background: transparent;
}

.section-why {
  background: transparent;
}

.section-partners {
  background: transparent;
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  text-wrap: balance;
}

.solution-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.solution-card {
  text-decoration: none;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(149, 204, 255, 0.34);
  background: rgba(8, 26, 48, 0.74);
  backdrop-filter: blur(4px);
  display: block;
  transition: transform 230ms ease, box-shadow 230ms ease, border-color 230ms ease;
}

.solution-card:hover {
  transform: scale(1.025);
  border-color: rgba(172, 222, 255, 0.8);
  box-shadow: 0 20px 35px rgba(2, 9, 18, 0.42);
}

.solution-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #b6e7ff, #64bdff);
  color: #03325e;
}

.solution-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.solution-icon-hands svg {
  width: 22px;
  height: 22px;
}

.solution-icon-hands i {
  font-size: 21px;
  line-height: 1;
}

.solution-card h3 {
  margin-top: 0.9rem;
  font-size: 1.25rem;
}

.solution-card p {
  margin: 0.5rem 0 0;
  color: #c2d9f5;
  line-height: 1.65;
}

.solution-card span {
  display: inline-block;
  margin-top: 0.92rem;
  color: #d9edff;
  font-weight: 700;
}

.stats-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(7, 24, 45, 0.74);
}

.stat-value {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  color: #ffffff;
}

.stat-label {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.source-note {
  margin-top: 0.85rem;
  color: #bed6f3;
  font-size: 0.88rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.why-grid p {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.08rem;
}

.why-list {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  color: #ddeeff;
  line-height: 1.9;
  font-size: 1.04rem;
}

.why-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 300px;
  background: rgba(6, 20, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.partners-track {
  margin-top: 1.1rem;
  display: flex;
  width: max-content;
  gap: 0.7rem;
  transition: none;
  will-change: transform;
}

.partners-carousel {
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.partners-track {
  direction: ltr;
}

.partner-item {
  border: 1px solid rgba(147, 201, 250, 0.4);
  border-radius: 14px;
  padding: 1rem 0.8rem;
  background: rgba(8, 27, 50, 0.82);
  text-align: center;
  min-width: 280px;
  flex: 0 0 auto;
}

.partner-item img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.15) contrast(1.1);
}

.partner-item span {
  display: block;
  margin-top: 0.6rem;
  color: #d4e8ff;
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 14, 27, 0.9);
}

.footer-grid {
  padding: 1.6rem 0 1rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1rem;
}

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

.site-footer .brand {
  align-items: center;
}

.site-footer .brand img {
  display: block;
}

.footer-grid h4 {
  margin: 0;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  margin-top: 0.54rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.footer-grid a:hover {
  color: var(--white);
}

.social-links {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 31, 58, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-base {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lang-toggle-footer {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-visible {
  opacity: 1;
  transform: none;
  transition: opacity 540ms ease, transform 540ms ease;
}

.inner-solution-page {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.solution-layout {
  padding-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.solution-layout .section {
  padding: 1.4rem;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.solution-layout h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.solution-layout p {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.video-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.solution-switcher {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.solution-switcher a {
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  color: #cfe3fb;
  font-weight: 700;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.01em;
  background: rgba(8, 24, 45, 0.62);
  transition: 180ms ease;
}

html[lang="ar"] .solution-switcher a {
  font-family: "Tajawal", "Manrope", sans-serif;
  letter-spacing: 0;
}

.solution-switcher a:hover {
  border-color: rgba(172, 222, 255, 0.8);
  color: #ffffff;
}

.solution-switcher a.is-active {
  color: #042444;
  background: linear-gradient(130deg, #b6e8ff, #57b7ff 65%);
  border-color: transparent;
}

.contact-form {
  display: grid;
  gap: 0.52rem;
}

.contact-form label {
  font-size: 0.88rem;
  color: #d7e9ff;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 42px;
  padding: 0.56rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: rgba(8, 24, 45, 0.7);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(163, 217, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(140, 205, 255, 0.2);
}

.force-open {
  display: inline-flex;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[lang="ar"] body {
  font-family: "Tajawal", "Manrope", sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: "Tajawal", "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .stat-value {
  font-family: "Tajawal", "Manrope", sans-serif;
  letter-spacing: 0;
  font-weight: 800;
}

html[lang="ar"] .eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

html[dir="rtl"] .hero-points li {
  display: block;
  width: 100%;
  text-align: right;
  position: relative;
  padding-right: 18px;
}

html[dir="rtl"] .hero-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-items: normal;
  width: 100%;
}

html[dir="rtl"] .hero-points li .dot {
  position: absolute;
  right: 0;
  top: 0.62em;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .section-why .reveal {
  text-align: right;
}

html[dir="rtl"] .why-list {
  padding-right: 1rem;
  padding-left: 0;
}

html[dir="rtl"] .main-nav a::after {
  transform-origin: right;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    top: 0;
    margin-top: 10px;
  }

  .hero-grid,
  .why-grid,
  .solution-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6, 20, 39, 0.96);
    padding: 0.8rem;
  }

  .inner-solution-page .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: center;
    gap: 0.45rem 0.7rem;
    padding: 0.55rem 0.75rem;
  }

  .inner-solution-page .main-nav.force-open {
    grid-area: nav;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    display: flex;
    margin-top: 0.1rem;
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;
  }

  .inner-solution-page .brand {
    grid-area: brand;
  }

  .inner-solution-page .lang-toggle {
    grid-area: lang;
    margin-left: 0;
    justify-self: end;
    min-height: 34px;
    padding: 0.3rem 0.65rem;
  }

  .inner-solution-page .main-nav.force-open a {
    margin: 0;
    font-size: 0.95rem;
  }

  .main-nav.is-open,
  .main-nav.force-open {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .hero-copy {
    min-height: 0;
    padding: 0.6rem 0;
  }

  .hero-media,
  .why-media {
    min-height: 300px;
    max-height: 300px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-media img {
    object-position: center center;
  }

  .hero-media {
    width: min(420px, 100%);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }

  .solution-switcher {
    grid-template-columns: 1fr;
  }

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