/* cards-3d.css — constellation orbs + product reveal */
.orb {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.5s var(--ease-out-expo);
  will-change: transform;
}

.orb__core {
  width: var(--orb-size, 92px);
  height: var(--orb-size, 92px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(123, 47, 255, 0.5), rgba(123, 47, 255, 0.05) 70%);
  border: 1px solid rgba(123, 47, 255, 0.4);
  box-shadow: 0 0 30px rgba(123, 47, 255, 0.35), inset 0 0 20px rgba(123, 47, 255, 0.25);
  backdrop-filter: blur(4px);
  transition: box-shadow 0.4s, border-color 0.4s, transform 0.5s var(--ease-out-expo);
  animation: orbBreath var(--orb-breath, 4s) ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.orb__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  color: var(--white);
  padding: 0 0.4em;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.orb[data-frontier] .orb__core {
  background: radial-gradient(circle at 35% 30%, rgba(255, 45, 120, 0.4), transparent 70%);
  border-color: rgba(255, 45, 120, 0.5);
  box-shadow: 0 0 30px rgba(255, 45, 120, 0.4);
  animation: orbFrontier 1.2s steps(3) infinite;
}
@keyframes orbFrontier { 0%{opacity:.6} 50%{opacity:1} 100%{opacity:.7} }

/* Luminous core node at the constellation center */
.orb--core .orb__core {
  background: radial-gradient(circle at 40% 35%, rgba(190,239,255,0.9), rgba(0,245,255,0.35) 45%, rgba(123,47,255,0.08) 75%);
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 50px rgba(0,245,255,0.5), 0 0 90px rgba(123,47,255,0.4), inset 0 0 30px rgba(255,255,255,0.3);
}
.orb--core .orb__label { font-weight: 700; }

.orb:hover { transform: translate(-50%, -50%) scale(1.18); z-index: 5; }
.orb:hover .orb__core {
  box-shadow: 0 0 60px var(--cyan), inset 0 0 30px rgba(0, 245, 255, 0.4);
  border-color: var(--cyan);
}

/* Product reveal popover */
.orb__products {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px) scale(0.9);
  margin-top: 12px;
  min-width: 190px;
  padding: 1rem 1.1rem;
  background: rgba(5, 3, 18, 0.92);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 255, 0.15);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out-expo);
  z-index: 8;
}
.orb:hover .orb__products,
.orb.is-open .orb__products {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}
.orb__products-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}
.orb__products li {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.22rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.orb__products li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px var(--purple);
}

/* Connection lines layer */
.universe__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.universe__links line {
  stroke: rgba(123, 47, 255, 0.18);
  stroke-width: 1;
  transition: stroke 0.4s, stroke-width 0.4s;
}
.universe__links line.is-lit {
  stroke: rgba(0, 245, 255, 0.6);
  stroke-width: 1.6;
}
