/* Flowgear 2026, hero connector constellation. Imported by HeroOrbit.tsx.
   Ported from the pre-redesign site and scoped under .fg26 so it is fully
   self-contained (does not depend on legacy globals.css). Pure CSS animation:
   steady state is particle dots flowing along the spokes plus a gentle node
   float; the clip-merge, node-settle and spark travel play once on entry. */

.fg26 .hero-constellation {
  position: relative;
  overflow: visible;
  width: 100%;
  /* geometry is authored on a 640×520 canvas, hold the ratio so the spoke
     paths keep meeting the connector nodes at every width */
  aspect-ratio: 640 / 520;
}

.fg26 .hero-orbit-bg {
  position: absolute;
  z-index: 1;
  inset: 13%;
  border-radius: 50%;
  opacity: 0.7;
  background:
    radial-gradient(circle at 50% 50%, rgba(41, 186, 171, 0.14), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(106, 139, 199, 0.08), transparent 72%);
  box-shadow: 0 0 90px rgba(41, 186, 171, 0.1);
}

.fg26 .hero-network-lines {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fg26 .net-line {
  stroke: url(#fg-hero-line);
  stroke-width: 3.25;
  stroke-linecap: round;
  fill: none;
  opacity: 0.9;
  stroke-dasharray: 0.2 20;
  filter: drop-shadow(0 0 7px rgba(41, 186, 171, 0.82));
  animation: fgParticleFlow 3.8s linear infinite;
}

.fg26 .net-line-2,
.fg26 .net-line-4,
.fg26 .net-line-6,
.fg26 .net-line-8,
.fg26 .net-line-10,
.fg26 .net-line-12 {
  animation-name: fgParticleFlowReverse;
}

.fg26 .net-line-3,
.fg26 .net-line-7,
.fg26 .net-line-9,
.fg26 .net-line-11 {
  animation-duration: 4.2s;
}

.fg26 .net-line-5,
.fg26 .net-line-6 {
  animation-duration: 4.6s;
}

.fg26 .fg-hub {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
}

.fg26 .fg-hub svg {
  display: block;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  overflow: visible;
}

.fg26 .fg-clip-half {
  fill: #29BAAB;
  filter: drop-shadow(0 0 10px rgba(41, 186, 171, 0.55));
  transform-box: fill-box;
  transform-origin: center;
  animation: fgClipMergeLeft 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fg26 .fg-clip-right {
  animation-name: fgClipMergeRight;
}

.fg26 .connector-node {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 104px;
  height: 70px;
  border-radius: 14px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(41, 186, 171, 0.18));
  opacity: 0;
  text-decoration: none;
  transform: translate(-50%, -50%) scale(0.78);
  animation:
    fgNodeSettle 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    fgNodeFloat 7s cubic-bezier(0.25, 1, 0.5, 1) 2.2s infinite;
}

.fg26 .connector-node:hover,
.fg26 .connector-node:focus-visible {
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 24px rgba(41, 186, 171, 0.32));
}

.fg26 .connector-node:focus-visible {
  outline: 2px solid rgba(41, 186, 171, 0.95);
  outline-offset: 8px;
}

.fg26 .connector-node::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.65;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(41, 186, 171, 0.08) 38%, transparent 68%);
}

.fg26 .connector-node img {
  display: block;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

/* Optical centering: these source SVGs have uneven visual mass inside their
   square viewBox, so shift only the artwork while the node center stays on the
   spoke endpoint. */
.fg26 .connector-node-3 img { transform: translate(-8px, 7px); }
.fg26 .connector-node-5 img { transform: translate(-9px, -7px); }

.fg26 .connector-node-1 { top: 10%; left: 50%; animation-delay: 1.25s, 2.2s; }
.fg26 .connector-node-2 { top: 14%; left: 67.5%; animation-delay: 1.35s, 2.35s; }
.fg26 .connector-node-3 { top: 27.5%; left: 81.5%; animation-delay: 1.45s, 2.5s; }
.fg26 .connector-node-4 { top: 50%; left: 88.5%; animation-delay: 1.55s, 2.65s; }
.fg26 .connector-node-5 { top: 72.5%; left: 81.5%; animation-delay: 1.65s, 2.8s; }
.fg26 .connector-node-6 { top: 86%; left: 67.5%; animation-delay: 1.75s, 2.95s; }
.fg26 .connector-node-7 { top: 90%; left: 50%; animation-delay: 1.85s, 3.1s; }
.fg26 .connector-node-8 { top: 86%; left: 32.5%; animation-delay: 1.95s, 3.25s; }
.fg26 .connector-node-9 { top: 72.5%; left: 18.5%; animation-delay: 2.05s, 3.4s; }
.fg26 .connector-node-10 { top: 50%; left: 11.5%; animation-delay: 2.15s, 3.55s; }
.fg26 .connector-node-11 { top: 27.5%; left: 18.5%; animation-delay: 2.25s, 3.7s; }
.fg26 .connector-node-12 { top: 14%; left: 32.5%; animation-delay: 2.35s, 3.85s; }

.fg26 .hero-star {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 16px #ffffff,
    0 0 34px #29BAAB,
    0 0 72px rgba(41, 186, 171, 0.72);
  opacity: 0;
  animation: fgStarTravel 3.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fg26 .hero-star::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 186, 171, 0.42), transparent 62%);
}

.fg26 .hero-star-1 { --from-x: 0px; --from-y: -86px; --sx: 0px; --sy: -176px; animation-delay: 0.38s; }
.fg26 .hero-star-2 { --from-x: 56px; --from-y: -74px; --sx: 114px; --sy: -152px; animation-delay: 0.52s; }
.fg26 .hero-star-3 { --from-x: 84px; --from-y: -40px; --sx: 188px; --sy: -88px; animation-delay: 0.66s; }
.fg26 .hero-star-4 { --from-x: 90px; --from-y: 0px; --sx: 212px; --sy: 0px; animation-delay: 0.8s; }
.fg26 .hero-star-5 { --from-x: 84px; --from-y: 40px; --sx: 188px; --sy: 88px; animation-delay: 0.94s; }
.fg26 .hero-star-6 { --from-x: 56px; --from-y: 74px; --sx: 114px; --sy: 152px; animation-delay: 1.08s; }
.fg26 .hero-star-7 { --from-x: 0px; --from-y: 86px; --sx: 0px; --sy: 176px; animation-delay: 1.22s; }
.fg26 .hero-star-8 { --from-x: -56px; --from-y: 74px; --sx: -114px; --sy: 152px; animation-delay: 1.36s; }
.fg26 .hero-star-9 { --from-x: -84px; --from-y: 40px; --sx: -188px; --sy: 88px; animation-delay: 1.5s; }
.fg26 .hero-star-10 { --from-x: -90px; --from-y: 0px; --sx: -212px; --sy: 0px; animation-delay: 1.64s; }
.fg26 .hero-star-11 { --from-x: -84px; --from-y: -40px; --sx: -188px; --sy: -88px; animation-delay: 1.78s; }
.fg26 .hero-star-12 { --from-x: -56px; --from-y: -74px; --sx: -114px; --sy: -152px; animation-delay: 1.92s; }

@keyframes fgClipMergeLeft {
  0% { opacity: 0; transform: translateX(-72px) rotate(-8deg) scale(0.94); }
  100% { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
}

@keyframes fgClipMergeRight {
  0% { opacity: 0; transform: translateX(72px) rotate(8deg) scale(0.94); }
  100% { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
}

@keyframes fgParticleFlow {
  to { stroke-dashoffset: -160; }
}

@keyframes fgParticleFlowReverse {
  to { stroke-dashoffset: 160; }
}

@keyframes fgStarTravel {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--from-x)), calc(-50% + var(--from-y))) scale(0.35);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1);
  }
}

@keyframes fgNodeSettle {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes fgNodeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (max-width: 880px) {
  .fg26 .connector-node { width: 88px; height: 58px; }
  .fg26 .connector-node img { max-height: 46px; }
  .fg26 .fg-hub { width: 124px; height: 124px; }
  .fg26 .fg-hub svg { width: 86px; height: 86px; }
}

@media (max-width: 520px) {
  .fg26 .connector-node { width: 70px; height: 48px; }
  .fg26 .connector-node img { max-height: 36px; }
  .fg26 .fg-hub { width: 104px; height: 104px; }
  .fg26 .fg-hub svg { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .fg26 .net-line,
  .fg26 .fg-hub,
  .fg26 .fg-clip-half,
  .fg26 .connector-node {
    animation: none !important;
  }
  .fg26 .net-line {
    opacity: 0.42;
    stroke-dasharray: 2 14;
  }
  .fg26 .connector-node {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .fg26 .hero-star {
    display: none;
  }
}
