/* Homepage open editorial correction
   Removes the heavy boxed feeling from the middle sections. */

/* Keep the system flow as a controlled module, but lighter */
.home-page main section:nth-of-type(2) .home-panel {
  background: rgba(2, 8, 23, 0.42) !important;
  border-color: rgba(0, 242, 255, 0.18) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
}

/* Unbox the Problem / Esther Layer section */
.home-page main section:nth-of-type(3) {
  padding-top: 4rem !important;
  padding-bottom: 5rem !important;
}

.home-page main section:nth-of-type(3) > div {
  max-width: 1480px !important;
  gap: 6rem !important;
  align-items: start !important;
}

/* Remove heavy cards from the two editorial panels */
.home-page main section:nth-of-type(3) .home-panel {
  min-height: auto !important;
  padding: 1rem 0 1rem 2.2rem !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid rgba(0, 242, 255, 0.34) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Add subtle glow line instead of box */
.home-page main section:nth-of-type(3) .home-panel::before {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, rgb(34, 211, 238), transparent);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.55);
}

/* Make those two titles elegant and readable */
.home-page .home-body-title-text {
  font-size: clamp(2.65rem, 4vw, 5.2rem) !important;
  line-height: 1.06 !important;
  letter-spacing: 0.015em !important;
  font-weight: 300 !important;
  max-width: 720px !important;
}

/* Body text below those titles */
.home-page main section:nth-of-type(3) .home-panel p:not(.heading-futuristic):not(.section-kicker) {
  max-width: 720px !important;
  font-size: 1.18rem !important;
  line-height: 1.75 !important;
  color: rgba(226, 232, 240, 0.88) !important;
}

/* Make the Operating Engines panel feel less like a box */
.home-page main section:nth-of-type(4) .home-panel {
  background:
    linear-gradient(145deg, rgba(2, 8, 23, 0.54), rgba(8, 20, 40, 0.24)) !important;
  border-color: rgba(0, 242, 255, 0.18) !important;
}

/* Keep CTA as a clean command module */
.home-page main section:last-of-type .home-panel {
  background: rgba(2, 8, 23, 0.58) !important;
  border-color: rgba(0, 242, 255, 0.24) !important;
}

/* Mobile: restore light cards for readability */
@media (max-width: 900px) {
  .home-page main section:nth-of-type(3) > div {
    gap: 3rem !important;
  }

  .home-page main section:nth-of-type(3) .home-panel {
    padding: 2rem !important;
    background: rgba(2, 8, 23, 0.54) !important;
    border: 1px solid rgba(0, 242, 255, 0.18) !important;
    border-radius: 1.75rem !important;
  }

  .home-page .home-body-title-text {
    font-size: clamp(2.1rem, 8vw, 3.25rem) !important;
  }
}
