/* SaaS orbital — hub + spokes + business impact strip */

.saas-orbit {
  --ink: #0f172a;
  --mute: #64748b;
  --blue: #0000ff;
  width: calc(100% + 1.5rem);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: Poppins, sans-serif;
  color: var(--ink);
  overflow: hidden;
}

@media (min-width: 640px) {
  .saas-orbit {
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}

.saas-orbit__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.saas-orbit__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.saas-orbit__dash {
  animation: saas-orbit-dash 5s linear infinite;
}

/* One clear outer dashed ring (reference) */
.saas-orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.6px dashed rgba(148, 163, 184, 0.5);
  z-index: 1;
  pointer-events: none;
}

.saas-orbit__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
}

.saas-orbit__core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  color: #fff;
  background: radial-gradient(circle at 32% 24%, #6b7bff, #0000ff 50%, #000098);
  box-shadow:
    0 0 0 5px rgba(0, 0, 255, 0.08),
    0 0 26px rgba(0, 80, 255, 0.28),
    0 12px 24px rgba(0, 0, 140, 0.28);
  text-align: center;
  padding: 0.45rem 0.4rem 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.saas-orbit__core svg {
  width: 16px;
  height: 16px;
  margin-bottom: 0.08rem;
}

.saas-orbit__hub-saas {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.saas-orbit__hub-platform {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* Reference: light pill, dark text */
.saas-orbit__hub-badge {
  margin-top: 0.28rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  font-size: 5.8px;
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  line-height: 1.2;
}

.saas-orbit__card {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 126px;
  max-width: 31%;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.34rem 0.38rem;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 0.7rem;
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.38);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: left, top;
}

.saas-orbit__card.is-pulse {
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--card-color) 50%, transparent);
  transform: translate(-50%, -50%) scale(1.03);
}

.saas-orbit__card-ico {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  color: var(--card-color);
  background: var(--card-bg);
}

.saas-orbit__card-ico svg {
  width: 0.82rem;
  height: 0.82rem;
}

.saas-orbit__card-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.saas-orbit__card-text strong {
  font-size: 8px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.saas-orbit__card-text small {
  font-size: 6.4px;
  font-weight: 500;
  color: var(--mute);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Business Impact strip (replaces tech bar) */
.saas-orbit__impact {
  flex-shrink: 0;
  text-align: center;
  padding: 0 0.1rem 0.05rem;
}

.saas-orbit__impact-title {
  margin: 0 0 0.32rem;
  font-size: 10px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.01em;
}

.saas-orbit__impact-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  padding: 0.35rem 0.2rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px -14px rgba(15, 23, 42, 0.25);
}

.saas-orbit__impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.22rem;
  padding: 0.2rem 0.28rem;
  text-align: center;
  border-right: 1px solid #eef2f7;
  min-width: 0;
}

.saas-orbit__impact-item:last-child {
  border-right: 0;
}

.saas-orbit__impact-ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--impact-color);
  background: var(--impact-bg);
  flex-shrink: 0;
}

.saas-orbit__impact-ico svg {
  width: 0.78rem;
  height: 0.78rem;
}

.saas-orbit__impact-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.saas-orbit__impact-text strong {
  font-size: 7px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.saas-orbit__impact-text small {
  font-size: 5.8px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes saas-orbit-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -140; }
}

@media (max-width: 560px) {
  .saas-orbit__impact-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.35rem;
  }
  .saas-orbit__impact-item:nth-child(3) {
    border-right: 0;
  }
  .saas-orbit__impact-item:nth-child(n+4) {
    border-top: 1px solid #eef2f7;
    padding-top: 0.35rem;
  }
}

@media (max-width: 420px) {
  .saas-orbit__card {
    width: 116px;
    max-width: 35%;
    padding: 0.3rem 0.32rem;
  }
  .saas-orbit__card-text small { -webkit-line-clamp: 1; }
  .saas-orbit__core { width: 84px; height: 84px; }
  .saas-orbit__hub-saas { font-size: 11px; }
  .saas-orbit__ring { width: 108px; height: 108px; }
  .saas-orbit__impact-title { font-size: 9px; }
  .saas-orbit__impact-text strong { font-size: 6.5px; }
  .saas-orbit__impact-text small { font-size: 5.4px; }
}
