/* AI Growth OS Installation Framework */

/* Homepage safety override: service-page parallax must not affect the homepage hero. */
body:not(.service-page) .hero {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  min-height: auto !important;
}

body:not(.service-page) main#top > section:not(.hero) {
  position: relative;
  z-index: auto !important;
}

.os-framework {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.os-framework::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 50%;
  width: min(520px, 42vw);
  height: min(520px, 42vw);
  transform: translateX(-10%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(64,64,227,.16), rgba(187,230,226,.08) 42%, rgba(16,30,52,0) 70%);
  pointer-events: none;
}

.os-framework .container {
  position: relative;
  z-index: 1;
}

.os-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
}

.os-step {
  position: relative;
  min-height: 230px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(16, 30, 52, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 24px 70px rgba(16, 30, 52, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.os-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #101E34;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.os-step h3 {
  margin: 24px 0 12px;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  letter-spacing: -.055em;
  color: #101E34;
}

.os-step p {
  margin: 0;
  color: rgba(16, 30, 52, .68);
  font-size: .98rem;
  line-height: 1.65;
}

.os-principle {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 54px);
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(26px, 4vw, 46px);
  border-radius: 34px;
  background: #101E34;
  color: #fff;
  box-shadow: 0 32px 90px rgba(16, 30, 52, .18);
}

.os-principle strong {
  display: block;
  font-size: clamp(1.65rem, 3.4vw, 3.15rem);
  line-height: .98;
  letter-spacing: -.075em;
}

.os-principle em {
  color: #BBE6E2;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

.os-principle p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .os-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-principle {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .os-flow-grid {
    grid-template-columns: 1fr;
  }

  .os-step {
    min-height: 0;
  }
}
