/* Vision orbit — white KPI cards on animated track (React Vision parity + reference) */

.vision-visual {
  position: relative;
  min-height: 20rem;
}

.vision-orbit {
  --orbit-r: 6.5rem;
  --orbit-dur: 22s;
  --orbit-size: 18rem;
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  max-width: 100%;
  margin: 0 auto 1.5rem;
  overflow: visible;
  z-index: 5;
}

/* Concentric rings (280 / 220 / 160 / 120 px ≈ React w-72) */
.orbit-ring {
  --ring-dot-count: 3;
  --ring-r: 8.75rem;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  border: 1px solid;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: orbitRingSpin 18s linear infinite;
}

/* 3 dots per ring, evenly spaced */
.orbit-ring__dot {
  --dot-angle: calc((360deg / var(--ring-dot-count)) * var(--dot-i, 0));
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: rotate(var(--dot-angle)) translateY(calc(-1 * var(--ring-r))) rotate(calc(-1 * var(--dot-angle)));
  animation: orbitDotPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--dot-i, 0) * 0.35s);
}

@keyframes orbitDotPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.orbit-ring-1 {
  width: 17.5rem;
  height: 17.5rem;
  --ring-r: 8.75rem;
  border-color: rgba(6, 182, 212, 0.18);
}

.orbit-ring-1 .orbit-ring__dot {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.65);
}

.orbit-ring-2 {
  width: 13.75rem;
  height: 13.75rem;
  --ring-r: 6.875rem;
  border-color: rgba(99, 102, 241, 0.15);
  animation-duration: 22s;
  animation-direction: reverse;
}

.orbit-ring-2 .orbit-ring__dot {
  background: #818cf8;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.55);
}

.orbit-ring-3 {
  width: 10rem;
  height: 10rem;
  --ring-r: 5rem;
  border-color: rgba(139, 92, 246, 0.13);
  animation-duration: 26s;
}

.orbit-ring-3 .orbit-ring__dot {
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.55);
}

.orbit-ring-4 {
  width: 7.5rem;
  height: 7.5rem;
  --ring-r: 3.75rem;
  border-color: rgba(96, 165, 250, 0.12);
  animation-duration: 30s;
  animation-direction: reverse;
}

.orbit-ring-4 .orbit-ring__dot {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

@keyframes orbitRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6rem;
  height: 6rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(99, 102, 241, 0.2) 55%, transparent 80%);
  pointer-events: none;
  z-index: 1;
  animation: orbitGlowPulse 3s ease-in-out infinite;
}

@keyframes orbitGlowPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.vision-orbit .orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #4f46e5);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
  z-index: 10;
  animation: orbitStarFloat 4s ease-in-out infinite;
}

.vision-orbit .icon-sparkles-lg {
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
}

@keyframes orbitStarFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 8px)) scale(1.05); }
}

/* Rotating track — cards orbit center, stay upright */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-r) * 2);
  height: calc(var(--orbit-r) * 2);
  margin-top: calc(-1 * var(--orbit-r));
  margin-left: calc(-1 * var(--orbit-r));
  z-index: 8;
  animation: orbitTrackSpin var(--orbit-dur) linear infinite;
}

@keyframes orbitTrackSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

/* Top-left */
.orbit-node-enterprise {
  transform: rotate(-150deg) translateY(calc(-1 * var(--orbit-r))) rotate(150deg);
}

/* Upper-right */
.orbit-node-specialists {
  transform: rotate(-30deg) translateY(calc(-1 * var(--orbit-r))) rotate(30deg);
}

/* Bottom */
.orbit-node-industries {
  transform: rotate(90deg) translateY(calc(-1 * var(--orbit-r))) rotate(-90deg);
}

.orbit-card {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation:
    orbitCardUpright var(--orbit-dur) linear infinite,
    orbitCardBob 4.5s ease-in-out infinite;
}

.orbit-node-enterprise .orbit-card {
  animation-delay: 0s, 0s;
}

.orbit-node-specialists .orbit-card {
  animation-delay: 0s, 0.75s;
}

.orbit-node-industries .orbit-card {
  animation-delay: 0s, 1.5s;
}

@keyframes orbitCardUpright {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes orbitCardBob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -5px; }
}

.orbit-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orbit-card__icon .icon-lucide {
  width: 1.125rem;
  height: 1.125rem;
}

.orbit-card__icon--cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

.orbit-card__icon--purple {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.orbit-card__icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.orbit-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.25;
  max-width: 7rem;
  white-space: normal;
  text-align: left;
}

.vision-below {
  margin-top: 0.5rem;
  width: 100%;
}

.vision-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card-vision {
  background: #fff;
  border-radius: 1rem;
  padding: 1.375rem 1.125rem;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

@media (min-width: 992px) {
  .vision-orbit {
    --orbit-size: 18rem;
    --orbit-r: 6.75rem;
    margin-left: auto;
    margin-right: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .vision-orbit {
    --orbit-size: min(17rem, 92vw);
    --orbit-r: 5.75rem;
    margin-left: auto;
    margin-right: auto;
  }

  .orbit-ring-1 { width: 16rem; height: 16rem; --ring-r: 8rem; }
  .orbit-ring-2 { width: 12.5rem; height: 12.5rem; --ring-r: 6.25rem; }
  .orbit-ring-3 { width: 9rem; height: 9rem; --ring-r: 4.5rem; }
  .orbit-ring-4 { width: 6.5rem; height: 6.5rem; --ring-r: 3.25rem; }

  .orbit-card__label {
    font-size: 0.75rem;
    max-width: 5.75rem;
  }

  .vision-stats {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring,
  .orbit-track,
  .orbit-card,
  .orbit-glow,
  .orbit-ring__dot,
  .vision-orbit .orbit-center {
    animation: none !important;
  }
}
