.zos-hero {
  --zos-ink: #102d5c;
  --zos-blue: #0799dc;
  --zos-deep-blue: #1763b8;
  --zos-soft-blue: #e9f7fe;
  position: relative;
  z-index: 0;
  display: flex;
  min-height: min(660px, calc(100svh - 142px));
  width: 100%;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5.8rem, 8vw, 7rem) 1.5rem clamp(2.8rem, 4.5vw, 4rem);
  color: var(--zos-ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(119, 91, 224, 0.11), transparent 28%),
    radial-gradient(circle at 83% 76%, rgba(7, 153, 220, 0.14), transparent 31%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 44%, #eef8ff 100%);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Arial, sans-serif;
}

.zos-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.55;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 69, 125, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 69, 125, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.72) 56%, transparent 100%);
}

.zos-hero__orb {
  position: absolute;
  z-index: -2;
  width: 29rem;
  height: 29rem;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.zos-hero__orb--one {
  top: -15rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(7, 153, 220, 0.17), transparent 68%);
}

.zos-hero__orb--two {
  bottom: -17rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(107, 82, 217, 0.12), transparent 69%);
}

.zos-hero__container {
  position: relative;
  min-width: 0;
  width: min(100%, 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 5rem);
  transform: translateY(-38px);
}

.zos-hero__copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 610px;
}

.zos-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  margin-bottom: 1.6rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(7, 153, 220, 0.18);
  border-radius: 999px;
  color: #315b8b;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(28, 74, 127, 0.07);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  font-weight: 600;
}

.zos-hero__eyebrow-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #08a877;
  box-shadow: 0 0 0 5px rgba(8, 168, 119, 0.1);
}

.zos-hero__title {
  margin: 0;
  color: var(--zos-ink);
  font-size: clamp(3rem, 4.6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.zos-hero__title span {
  display: block;
  width: fit-content;
  padding-block: 0.05em 0.13em;
  color: transparent;
  background: linear-gradient(92deg, #087fc3 0%, #3471b2 52%, #735dd7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zos-hero__lead {
  max-width: 565px;
  margin: 1.25rem 0 0;
  color: #58708f;
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  font-weight: 400;
  line-height: 1.9;
}

.zos-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.zos-hero__button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 999px;
  padding: 0.85rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.zos-hero__button:hover {
  transform: translateY(-2px);
}

.zos-hero__button:focus-visible {
  outline: 3px solid rgba(7, 153, 220, 0.28);
  outline-offset: 4px;
}

.zos-hero__button--primary {
  min-width: 10.8rem;
  color: #fff;
  background: linear-gradient(105deg, #087fc3, #1763b8);
  box-shadow: 0 14px 28px rgba(23, 99, 184, 0.23);
}

.zos-hero__button--primary:hover {
  box-shadow: 0 18px 36px rgba(23, 99, 184, 0.3);
}

.zos-hero__button--secondary {
  border: 1px solid rgba(27, 72, 124, 0.15);
  color: #244c7e;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 10px 25px rgba(30, 70, 120, 0.06);
}

.zos-hero__button--secondary:hover {
  border-color: rgba(7, 153, 220, 0.34);
  background: #fff;
}

.zos-hero__button-arrow {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--zos-deep-blue);
  background: #fff;
  font-size: 1rem;
  transition: transform 240ms ease;
}

.zos-hero__button--primary:hover .zos-hero__button-arrow {
  transform: translateX(-3px);
}

.zos-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.35rem;
  color: #466382;
  font-size: 0.86rem;
  font-weight: 500;
}

.zos-hero__features > span {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.zos-hero__features i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #19b986;
  box-shadow: 0 0 0 4px rgba(25, 185, 134, 0.09);
}

.zos-hero__visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  perspective: 1500px;
}

.zos-hero__visual-halo {
  position: absolute;
  inset: -11% -8% -17%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(7, 153, 220, 0.19) 0%, rgba(100, 92, 215, 0.08) 45%, transparent 72%);
  filter: blur(6px);
}

.zos-hero__dashboard {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 34px 80px rgba(27, 63, 113, 0.2),
    0 8px 24px rgba(40, 96, 156, 0.1),
    inset 0 0 0 1px rgba(35, 69, 125, 0.05);
  transform: rotateY(2.8deg) rotateX(1.1deg);
  transform-origin: center;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 650ms ease;
  will-change: transform;
}

.zos-hero__visual:hover .zos-hero__dashboard {
  box-shadow:
    0 40px 95px rgba(27, 63, 113, 0.24),
    0 10px 30px rgba(40, 96, 156, 0.11),
    inset 0 0 0 1px rgba(35, 69, 125, 0.05);
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.zos-hero__dashboard-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.05rem;
  border-bottom: 1px solid rgba(35, 69, 125, 0.08);
  color: #395a82;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

.zos-hero__dashboard-bar strong {
  font-weight: 600;
}

.zos-hero__window-dots {
  direction: ltr;
  display: flex;
  justify-self: end;
  gap: 0.34rem;
}

.zos-hero__window-dots span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #dbe7f3;
}

.zos-hero__window-dots span:nth-child(2) {
  background: #95d8f4;
}

.zos-hero__window-dots span:nth-child(3) {
  background: #45b8e9;
}

.zos-hero__live {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.38rem;
  color: #1a8a65;
  font-size: 0.72rem;
  font-weight: 600;
}

.zos-hero__live i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #19b986;
  box-shadow: 0 0 0 4px rgba(25, 185, 134, 0.1);
}

.zos-hero__dashboard-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1847 / 851;
  background: #eff6fc;
}

.zos-hero__dashboard-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(34, 70, 118, 0.04);
}

.zos-hero__dashboard-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zos-hero__float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 12.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  color: #224b7d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(31, 73, 124, 0.16);
  backdrop-filter: blur(15px);
  animation: zos-hero-float 5.5s ease-in-out infinite;
}

.zos-hero__float-card--top {
  top: -2.2rem;
  right: -2.1rem;
}

.zos-hero__float-card--bottom {
  bottom: -2.35rem;
  left: -2.1rem;
  animation-delay: -2.3s;
}

.zos-hero__float-card strong,
.zos-hero__float-card small {
  display: block;
}

.zos-hero__float-card strong {
  font-size: 0.85rem;
  font-weight: 650;
}

.zos-hero__float-card small {
  margin-top: 0.12rem;
  color: #6f829d;
  font-size: 0.68rem;
}

.zos-hero__float-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, #0799dc, #1763b8);
  box-shadow: 0 8px 16px rgba(23, 99, 184, 0.22);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
}

.zos-hero__pulse {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
  margin-inline: 0.72rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #19b986;
  box-shadow: 0 0 0 7px rgba(25, 185, 134, 0.1);
}

.zos-hero__pulse::after {
  content: "";
  position: absolute;
  inset: -0.42rem;
  border: 1px solid rgba(25, 185, 134, 0.28);
  border-radius: inherit;
  animation: zos-hero-pulse 2.8s ease-out infinite;
}

.zos-hero__edge {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.78));
}

.zos-hero__anchor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
}

@keyframes zos-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes zos-hero-pulse {
  0% { opacity: 0.75; transform: scale(0.8); }
  75%, 100% { opacity: 0; transform: scale(1.65); }
}

@media (max-width: 1180px) {
  .zos-hero__container {
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    gap: 3.2rem;
  }

  .zos-hero__title {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .zos-hero__float-card--top { right: -0.75rem; }
  .zos-hero__float-card--bottom { left: -0.75rem; }
}

@media (max-width: 980px) {
  .zos-hero {
    min-height: auto;
    padding-top: 8.6rem;
    padding-bottom: 6.5rem;
  }

  .zos-hero__container {
    grid-template-columns: 1fr;
    gap: 4.75rem;
    transform: translateY(-34px);
  }

  .zos-hero__copy {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .zos-hero__eyebrow,
  .zos-hero__title span {
    margin-inline: auto;
  }

  .zos-hero__lead {
    margin-inline: auto;
  }

  .zos-hero__actions,
  .zos-hero__features {
    justify-content: center;
  }

  .zos-hero__visual {
    width: min(100%, 760px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .zos-hero {
    padding: 7.4rem 1rem 4.8rem;
  }

  .zos-hero__grid {
    background-size: 42px 42px;
  }

  .zos-hero__container {
    gap: 3rem;
  }

  .zos-hero__eyebrow {
    margin-bottom: 1.15rem;
    padding: 0.52rem 0.72rem;
    font-size: 0.75rem;
  }

  .zos-hero__title {
    overflow-wrap: anywhere;
    font-size: clamp(2.25rem, 10.5vw, 2.85rem);
    line-height: 1.16;
  }

  .zos-hero__title span {
    width: auto;
    max-width: 100%;
  }

  .zos-hero__lead {
    margin-top: 1.15rem;
    font-size: 0.97rem;
    line-height: 1.8;
  }

  .zos-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.65rem;
  }

  .zos-hero__button {
    width: 100%;
  }

  .zos-hero__features {
    gap: 0.65rem 0.9rem;
    margin-top: 1.35rem;
    font-size: 0.76rem;
  }

  .zos-hero__dashboard {
    border-radius: 1rem;
    transform: none;
  }

  .zos-hero__dashboard-bar {
    min-height: 2.6rem;
    padding-inline: 0.7rem;
    font-size: 0.68rem;
  }

  .zos-hero__float-card {
    min-width: 0;
    padding: 0.62rem 0.72rem;
    border-radius: 0.78rem;
  }

  .zos-hero__float-card--top {
    top: -1.35rem;
    right: 0.4rem;
  }

  .zos-hero__float-card--bottom {
    bottom: -1.8rem;
    left: 0.4rem;
  }

  .zos-hero__float-card strong { font-size: 0.72rem; }
  .zos-hero__float-card small { font-size: 0.58rem; }

  .zos-hero__float-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.58rem;
    font-size: 0.8rem;
  }

  .zos-hero__pulse {
    width: 0.56rem;
    height: 0.56rem;
    margin-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zos-hero__dashboard,
  .zos-hero__button,
  .zos-hero__button-arrow,
  .zos-hero__float-card,
  .zos-hero__pulse::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the footer brand readable without changing the compact header logo. */
#footer img[src*="galaxy-of-solutions-logo.png"] {
  display: block;
  width: auto !important;
  height: 5.25rem !important;
  max-width: min(100%, 20rem);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(2, 20, 42, 0.18);
  box-sizing: content-box;
  object-fit: contain;
}

@media (max-width: 639px) {
  #footer img[src*="galaxy-of-solutions-logo.png"] {
    height: 4.5rem !important;
    max-width: min(100%, 17rem);
    padding: 0.65rem 0.9rem;
  }
}
