/* ============================================================
   SOFTWARE360 — HOMEPAGE STYLES
   (Hero & CTA Banner components are in design-system.css)
   ============================================================ */


/* === HERO SCALE INDICATOR (Solo → Enterprise) === */
.s360-hero__scale {
  margin-top: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(26, 122, 255, 0.12);
  max-width: 640px;
}

.s360-hero__scale-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s360-slate);
  white-space: nowrap;
}

.s360-hero__scale-track {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.s360-hero__scale-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--s360-midnight);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 122, 255, 0.15);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.s360-hero__scale-item:hover {
  color: var(--s360-electric);
  border-color: var(--s360-azure);
  background: var(--s360-white);
}

.s360-hero__scale-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s360-azure);
  opacity: 0.55;
}


/* === CTA BANNER — action stack (Book a Call + Explore Tools) === */
.s360-cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Ghost button variant for use on the gradient-blue CTA banner */
.s360-btn--ghost-light {
  background: transparent;
  color: var(--s360-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.s360-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--s360-white);
  border-color: var(--s360-white);
}


/* === TRUST BAR (AI + Cloud Partners) === */
.s360-trust {
  position: relative;
  background: var(--s360-white);
  border-top: 1px solid var(--s360-ice);
  padding: var(--sp-12) 0 var(--sp-10);
  overflow: hidden;
}

.s360-trust::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26, 122, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.s360-trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.s360-trust__lead {
  max-width: 520px;
}

.s360-trust__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(26, 122, 255, 0.12) 0%, rgba(77, 163, 255, 0.08) 100%);
  border: 1px solid rgba(26, 122, 255, 0.2);
  border-radius: 999px;
  color: var(--s360-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.s360-trust__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s360-electric);
  box-shadow: 0 0 0 4px rgba(26, 122, 255, 0.18);
  animation: s360-pulse 1.8s ease-in-out infinite;
}

@keyframes s360-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26, 122, 255, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(26, 122, 255, 0.05); }
}

.s360-trust__headline {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--s360-midnight);
  margin: 0 0 var(--sp-4);
}

.s360-trust__headline strong {
  color: var(--s360-electric);
  font-weight: 700;
}

.s360-trust__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--s360-electric);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap var(--dur-normal) var(--ease-out), color var(--dur-normal) var(--ease-out);
}

.s360-trust__link:hover {
  gap: 10px;
  color: var(--s360-deep);
}

.s360-trust__bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-6);
  background: var(--s360-snow);
  border: 1px solid var(--s360-ice);
  border-radius: 16px;
}

.s360-trust__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s360-slate);
}

.s360-trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-7);
}

.s360-trust__logo {
  color: var(--s360-slate);
  opacity: 0.78;
  filter: grayscale(20%);
  transition: opacity var(--dur-normal) var(--ease-out),
              filter var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.s360-trust__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.s360-trust__logo svg {
  display: block;
  height: 26px;
  width: auto;
}


/* === STATS BAR === */
.s360-stats {
  position: relative;
  background: var(--s360-white);
  border-top: 1px solid var(--s360-ice);
  border-bottom: 1px solid var(--s360-ice);
  padding: var(--sp-12) 0;
}

.s360-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}

.s360-stats__item {
  position: relative;
}

.s360-stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--s360-ice);
}


/* === TOOLS GRID === */
.s360-tools-section {
  background: var(--s360-snow);
  position: relative;
}

.s360-tools-section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--sp-12);
}

.s360-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}


/* === FEATURES === */
.s360-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.s360-feature {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
}

.s360-feature:hover .s360-feature__icon {
  background: var(--s360-gradient-blue);
  color: var(--s360-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}


/* === HOW IT WORKS ===
   The default `.s360-steps` is a 3-column grid. The `.s360-steps--4`
   variant (used on the homepage & services page) is a 4-column grid.
   Both variants share the connecting-line treatment that runs across
   the row of step-number circles; it's hidden on wrapped layouts so
   it never cuts through rows at odd angles. */

.s360-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10) var(--sp-8);
  position: relative;
  align-items: start;
}

/* 4-column variant override — wins regardless of CSS load order
   because of the compound `.s360-steps.s360-steps--4` selector. */
.s360-steps.s360-steps--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-10) var(--sp-6);
}

/* Connecting line — sits behind the step circles, running from the
   horizontal center of the first step to the center of the last step. */
.s360-steps::before {
  content: '';
  position: absolute;
  top: 44px;              /* vertically centers on the 88px circle */
  left: calc(100% / 3 / 2);   /* center of 1st column for 3-col grid */
  right: calc(100% / 3 / 2);  /* center of last column for 3-col grid */
  height: 2px;
  background: linear-gradient(90deg,
    var(--s360-ice) 0%,
    var(--s360-azure) 35%,
    var(--s360-azure) 65%,
    var(--s360-ice) 100%);
  z-index: 0;
  opacity: 0.85;
}

/* Recompute the line endpoints for the 4-column variant so it spans
   the center of step 1 → center of step 4. */
.s360-steps.s360-steps--4::before {
  left: calc(100% / 4 / 2);
  right: calc(100% / 4 / 2);
}

.s360-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 var(--sp-2);
}

.s360-step__number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--s360-white);
  border: 2px solid var(--s360-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--s360-electric);
  box-shadow:
    0 0 0 6px var(--s360-white),        /* white halo masks the line */
    0 8px 20px rgba(26, 122, 255, 0.12);
  transition: transform var(--dur-normal) var(--ease-out),
              background var(--dur-normal) var(--ease-out),
              color var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.s360-step:hover .s360-step__number {
  background: var(--s360-gradient-blue);
  color: var(--s360-white);
  border-color: transparent;
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 0 0 6px var(--s360-white),
    0 14px 32px rgba(26, 122, 255, 0.32);
}

.s360-step h3,
.s360-step .h4 {
  color: var(--s360-midnight);
  margin-bottom: var(--sp-3);
}

.s360-step p {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Tablet — collapse to a balanced 2×2 grid (no orphan rows) and
   hide the connecting line, which wouldn't make sense across rows. */
@media (max-width: 1024px) {
  .s360-steps,
  .s360-steps.s360-steps--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-10) var(--sp-6);
  }

  .s360-steps::before,
  .s360-steps.s360-steps--4::before { display: none; }
}


/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .s360-tools__grid { grid-template-columns: repeat(2, 1fr); }

  .s360-trust__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    text-align: left;
  }

  .s360-trust__lead { max-width: none; }
}

@media (max-width: 768px) {
  .s360-hero__scale {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    padding-top: var(--sp-5);
    margin-top: var(--sp-6);
  }

  .s360-hero__scale-track {
    gap: var(--sp-2);
  }

  .s360-hero__scale-item {
    font-size: 0.82rem;
    padding: 3px 9px;
  }

  .s360-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }

  .s360-stats__item:not(:last-child)::after { display: none; }
  .s360-stats__item:nth-child(2n)::after { display: none; }

  .s360-tools__grid,
  .s360-features__grid,
  .s360-steps,
  .s360-steps.s360-steps--4 { grid-template-columns: 1fr; }

  .s360-steps::before,
  .s360-steps.s360-steps--4::before { display: none; }

  .s360-step__number {
    width: 72px;
    height: 72px;
    font-size: 1.375rem;
  }

  .s360-step p { max-width: 100%; }

  .s360-trust { padding: var(--sp-10) 0 var(--sp-8); }

  .s360-trust__bar {
    padding: var(--sp-5);
  }

  .s360-trust__logos {
    gap: var(--sp-4) var(--sp-5);
    justify-content: flex-start;
  }

  .s360-trust__logo svg { height: 22px; }

  .s360-trust__headline { font-size: 1.02rem; }
}
