/* Home hero only: the CodeReveal product solar system. */
[data-hero-orbit] { pointer-events: none; }
.cr-orbit {
  position: absolute;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  right: max(32px, calc((100vw - 1440px) / 2 + 32px));
  top: 30%;
  transform: translateY(-50%);
  isolation: isolate;
  z-index: 1;
  pointer-events: none;
}
.cr-orbit__scene {
  position: absolute;
  width: 640px;
  height: 640px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--orbit-scale, 1));
}
.cr-orbit__atmosphere {
  position: absolute;
  inset: 75px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 48% 48%, #6674d21c, #c59b4c0a 48%, transparent 72%);
  filter: blur(25px);
}
.cr-orbit__paths { position: absolute; inset: 0; overflow: visible; }
.cr-orbit__path {
  fill: none;
  stroke: #d7ba783b;
  stroke-width: 1;
}
.cr-orbit__star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #f5ddab; opacity: .35; }
.cr-orbit__core {
  position: absolute;
  left: 320px;
  top: 320px;
  width: 148px;
  height: 148px;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: grid;
  place-items: center;
  border: 1px solid #d7ba7866;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, #454776, #151538 55%, #080c1b 85%);
  box-shadow: inset 5px 7px 18px #c5c9ff21, inset -12px -15px 25px #020612b3, 0 0 0 9px #b2b5ff04, 0 0 0 10px #d7ba7812, 0 0 65px #7675df24;
}
.cr-orbit__core::after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid #d7ba7812;
  border-radius: 50%;
}
.cr-orbit__core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cr-orbit__node {
  --planet-color: #d9b46a;
  position: absolute;
  left: 320px;
  top: 320px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  pointer-events: auto;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.cr-orbit__planet {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--planet-color) 55%, transparent);
  background: radial-gradient(circle at 32% 24%, #293249, #111726 66%, #080c18);
  box-shadow: inset 2px 3px 8px #e4e8ff13, inset -4px -5px 12px #0008, 0 8px 22px #0006, 0 0 22px color-mix(in srgb, var(--planet-color) 10%, transparent);
  transition: box-shadow .25s, border-color .25s;
}
.cr-orbit__planet img {
  display: block;
  width: 67px;
  height: 67px;
  object-fit: contain;
  border-radius: 50%;
}
.cr-orbit__node[data-product="grahadisha"] img { width: 100%; height: 100%; object-fit: cover; }
.cr-orbit__node[data-product="vastumarg"] img { width: 76px; height: 76px; }
.cr-orbit__node[data-product="hershieldnow"] img { width: 76px; height: 76px; }
.cr-orbit__node[data-product="dstrak"] img { border-radius: 0; width: 84px; height: 66px; }
.cr-orbit__node[data-product="postanon"] img { border-radius: 0; width: 72px; height: 72px; }
.cr-orbit__name {
  position: absolute;
  top: 99px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  white-space: nowrap;
  border: 1px solid #d7ba781a;
  border-radius: 20px;
  background: #0c1221e8;
  color: #dededc;
  font: 500 13px/1.2 Geist, sans-serif;
  letter-spacing: .1px;
  transition: color .25s, border-color .25s;
}
.cr-orbit__node:hover .cr-orbit__planet,
.cr-orbit__node:focus-visible .cr-orbit__planet {
  border-color: var(--planet-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--planet-color) 10%, transparent), 0 0 36px color-mix(in srgb, var(--planet-color) 25%, transparent);
}
.cr-orbit__node:hover .cr-orbit__name,
.cr-orbit__node:focus-visible .cr-orbit__name { color: #fff2ce; border-color: #d7ba7877; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .cr-orbit { width: 43vw; top: 28%; }
}
@media (max-width: 1023px) {
  .cr-orbit { width: min(90%, 540px); right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-orbit__planet, .cr-orbit__name { transition: none; }
}

.cr-orbit__node--upper .cr-orbit__name { top: auto; bottom: 99px; }

@media (max-width: 600px) {
  .cr-orbit__name { font-size: 17px; }
}
