/* Nowe tło hero: nocne góry i jezioro, zgodne z kierunkiem wizualnym SONARIQ. */
.hero {
  background-image:
    linear-gradient(90deg, rgba(5, 11, 19, .82) 0%, rgba(5, 11, 19, .42) 46%, rgba(5, 11, 19, .12) 100%),
    linear-gradient(180deg, rgba(5, 11, 19, .16), rgba(5, 11, 19, .55)),
    url('grafika/hero-mountains.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Znaki projektów w odcieniach nocnych gór. */
.node-web .node-icon,
.node-sound .node-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 7px;
  font-size: 0;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(82, 213, 255, .28);
}

.node-web .node-icon { background-image: url('grafika/soni-mountain.webp'); }
.node-sound .node-icon { background-image: url('grafika/znaksoundsaar-mountain.webp'); }

.project-a { background-image: url('grafika/soni-mountain.webp') !important; }
.project-b { background-image: url('grafika/znaksoundsaar-mountain.webp') !important; }

/* Ten sam znak SONARIQ pojawia się w nagłówku i w centralnym kole. */
.brand-mark {
  width: 38px;
  height: 30px;
  background: url('grafika/sonariqznak-mountain.webp') center / contain no-repeat;
}

.brand-mark i,
.core-icon i { display: none; }

.core-icon {
  width: 128px;
  height: 62px;
  margin-bottom: 10px;
  background: url('grafika/sonariqznak-mountain.webp') center / contain no-repeat;
}

.core strong,
.core small { display: none; }

/* Płaskie koła jak w projekcie referencyjnym — bez efektu wypukłości. */
.orbit {
  border-color: rgba(43, 157, 235, .45);
  box-shadow: none;
}

.orbit-two {
  border-color: rgba(65, 185, 245, .28);
}

.core {
  background: rgba(4, 13, 24, .76);
  box-shadow: 0 0 0 1px rgba(35, 144, 224, .12);
}

.node {
  background: rgba(4, 13, 24, .72);
  border-color: rgba(48, 157, 234, .78);
  box-shadow: none;
}

.node:hover {
  box-shadow: 0 0 0 1px rgba(82, 213, 255, .32);
}

.node-web .node-icon,
.node-sound .node-icon {
  box-shadow: none;
}

/* Układ promienisty: centralne koło + cztery proste odnogi do kół. */
.orbit { display: none; }

.orbit-line {
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 1px;
  opacity: 1;
  background: rgba(53, 167, 241, .88);
  box-shadow: 0 0 7px rgba(42, 157, 236, .25);
}

.line-a { transform: rotate(-135deg); }
.line-b { transform: rotate(-45deg); }
.line-c { transform: rotate(135deg); }
.line-d { transform: rotate(45deg); }

.core,
.node {
  z-index: 2;
  background: radial-gradient(circle at 38% 30%, rgba(24, 37, 52, .96), rgba(2, 7, 14, .98) 68%);
  border-color: rgba(74, 176, 242, .86);
  box-shadow:
    inset 7px 7px 15px rgba(42, 67, 91, .28),
    inset -9px -10px 17px rgba(0, 0, 0, .82),
    0 5px 12px rgba(0, 0, 0, .38);
}

.node {
  isolation: isolate;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.node::before,
.node::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(82, 213, 255, 0);
  border-radius: 50%;
  pointer-events: none;
}

.node:hover {
  transform: scale(1.045);
  border-color: #6fe0ff;
  box-shadow:
    inset 7px 7px 15px rgba(71, 125, 164, .3),
    inset -9px -10px 17px rgba(0, 0, 0, .76),
    0 0 18px rgba(26, 157, 255, .55),
    0 0 42px rgba(39, 175, 255, .22);
}

.node:hover::before {
  border-color: rgba(82, 213, 255, .95);
  box-shadow: 0 0 12px rgba(82, 213, 255, .72), inset 0 0 8px rgba(82, 213, 255, .3);
}

.node:hover::after {
  border-color: rgba(82, 213, 255, .52);
  animation: node-ring 1.15s ease-out infinite;
}

.node:hover .node-icon {
  filter: brightness(1.55) saturate(1.35);
  text-shadow: 0 0 12px rgba(82, 213, 255, .9);
}

.node:hover strong,
.node:hover small {
  color: #f5fbff;
  text-shadow: 0 0 9px rgba(82, 213, 255, .75);
}

@keyframes node-ring {
  0% { inset: -7px; opacity: .9; }
  100% { inset: -23px; opacity: 0; }
}

/* Dokładne kąty wynikające z położenia kół bocznych. */
.orbit-line { width: 43%; }
.line-a { transform: rotate(-120deg); }
.line-b { transform: rotate(-60deg); }
.line-c { transform: rotate(120deg); }
.line-d { transform: rotate(60deg); }
.orbit-line { width: 48%; }

/* Przezroczyste grafiki — bez czarnych prostokątów. */
.brand-mark { background-image: url('grafika/sonariqznak-transparent.webp'); }
.core-icon { background-image: url('grafika/sonariqznak-transparent.webp'); }
.node-web .node-icon { background-image: url('grafika/soni-mountain-transparent.webp'); }
.node-sound .node-icon { background-image: url('grafika/znaksoundsaar-mountain-transparent.webp'); }
.project-a { background-image: url('grafika/soni-mountain-transparent.webp') !important; }
.project-b { background-image: url('grafika/znaksoundsaar-mountain-transparent.webp') !important; }

/* Prostsze zarysy są czytelniejsze w małych kołach. */
.node-web .node-icon { background-image: url('grafika/soni-outline.webp'); }
.node-sound .node-icon { background-image: url('grafika/znaksoundsaar-outline.webp'); }
.project-a { background-image: url('grafika/soni-outline.webp') !important; }
.project-b { background-image: url('grafika/znaksoundsaar-outline.webp') !important; }

/* Wersja domyślna: ciemna, cienka i spokojna. */
.node-web .node-icon {
  background-image: url('grafika/soni-dark-outline.webp');
  opacity: .62;
  filter: brightness(.82) saturate(.7);
}

.node-sound .node-icon {
  background-image: url('grafika/znaksoundsaar-dark-outline.webp');
  opacity: .62;
  filter: brightness(.78) saturate(.7);
  transform: rotate(-5deg);
}

.node-web .node-icon { transform: rotate(-3deg); }

.project-a { background-image: url('grafika/soni-dark-outline.webp') !important; }
.project-b { background-image: url('grafika/znaksoundsaar-dark-outline.webp') !important; }

/* Neon pojawia się dopiero po najechaniu na konkretne koło. */
.node:hover .node-icon {
  opacity: 1;
  filter: brightness(1.7) saturate(1.45) drop-shadow(0 0 6px rgba(82, 213, 255, .95)) drop-shadow(0 0 15px rgba(35, 157, 255, .72));
}

/* Znak ma być czytelny także przed najechaniem. */
.node-web .node-icon,
.node-sound .node-icon {
  width: 64px;
  height: 64px;
  opacity: .94;
  filter: brightness(1.75) saturate(1.18);
  image-rendering: auto;
}

/* Po hoverze znak ma ten sam chłodny cyjan co obręcz koła. */
.node:hover .node-icon {
  opacity: 1;
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(83%) saturate(1390%) hue-rotate(161deg)
    brightness(103%) contrast(105%)
    drop-shadow(0 0 5px rgba(111, 224, 255, .98))
    drop-shadow(0 0 14px rgba(82, 213, 255, .78));
}

.node:hover strong,
.node:hover small {
  color: #dffaff;
  text-shadow: 0 0 8px rgba(111, 224, 255, .8);
}

/* Większy błysk aktywnego znaku. */
.node:hover {
  box-shadow:
    inset 7px 7px 15px rgba(71, 125, 164, .3),
    inset -9px -10px 17px rgba(0, 0, 0, .76),
    0 0 22px rgba(26, 157, 255, .72),
    0 0 62px rgba(39, 175, 255, .32);
}


/* AUMIXYS korzysta bezpośrednio z oryginalnej grafiki SONI wskazanej przez użytkownika. */
.node-web .node-icon {
  background-image: url('grafika/soni-mountain.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  opacity: .82;
  filter: none;
}

.node-web:hover .node-icon {
  opacity: 1;
  filter: brightness(1.08) saturate(1.08)
    drop-shadow(0 0 5px rgba(111, 224, 255, .9))
    drop-shadow(0 0 14px rgba(82, 213, 255, .68));
}

.project-a { background-image: url('grafika/soni-mountain.png') !important; }

/* AUMIXYS: dokładna pozycja oryginalnej postaci, ale jako cienki kontur cyjan. */
.node-web .node-icon {
  background-image: url('grafika/soni-cyan-contour.webp');
  opacity: .9;
  filter: none;
}

.node-web:hover .node-icon {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(111, 224, 255, .98))
    drop-shadow(0 0 14px rgba(82, 213, 255, .82));
}

/* Ten sam cyjan dla obrysu SONI i obręczy koła. */
.node-web .node-icon {
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(83%) saturate(1390%) hue-rotate(161deg)
    brightness(103%) contrast(105%);
}

.node-web:hover .node-icon {
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(83%) saturate(1390%) hue-rotate(161deg)
    brightness(112%) contrast(108%)
    drop-shadow(0 0 5px rgba(111, 224, 255, .98))
    drop-shadow(0 0 14px rgba(82, 213, 255, .82));
}

/* AUMIXYS jako rzeczywisty obraz, żeby znak był widoczny także w Comet i po cache przeglądarki. */
.node-web .node-icon {
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.node-web .node-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .82;
  filter: saturate(.9) brightness(.92)
    drop-shadow(0 0 3px rgba(74, 164, 224, .42));
}

/* Poświata dotyczy wyłącznie postaci AUMIXYS, nigdy prostokątnego kontenera. */
.node-web .node-icon {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.node-web .node-icon-image {
  background: transparent !important;
  mix-blend-mode: normal !important;
  border-radius: 0;
  clip-path: none;
  -webkit-clip-path: none;
  filter: saturate(.92) brightness(.94)
    drop-shadow(0 0 3px rgba(82, 213, 255, .55))
    drop-shadow(0 0 8px rgba(22, 141, 255, .36));
  opacity: .88;
}

.node-web:hover .node-icon-image {
  opacity: 1;
  filter: saturate(1.05) brightness(1.08)
    drop-shadow(0 0 4px rgba(111, 224, 255, .82))
    drop-shadow(0 0 11px rgba(22, 141, 255, .52));
}

/* Impulsy są prawdziwymi punktami na linii — pseudo-elementy pozostają wyłączone,
   aby nigdy nie tworzyły krzyżyków w kołach. */
.orbit-line.is-active::after,
.orbit-line.is-core-active::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Punkt świetlny biegnący po wiązce. Kierunek wybiera JS przez klasę linii. */
.orbit-pulse {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f1fdff;
  box-shadow: 0 0 6px #f1fdff, 0 0 15px #6fe0ff, 0 0 28px rgba(82, 213, 255, .92);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.orbit-line.is-active .pulse-to-core,
.orbit-line.is-core-active .pulse-from-core {
  opacity: 1;
}

.orbit-line.is-active .pulse-to-core {
  animation: orbit-pulse-to-core 1.05s linear infinite;
}

.orbit-line.is-core-active .pulse-from-core {
  animation: orbit-pulse-from-core 1.05s linear infinite;
}

@keyframes orbit-pulse-to-core {
  0% { left: 104%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: -4%; opacity: 0; }
}

@keyframes orbit-pulse-from-core {
  0% { left: -4%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

/* Okrągła, łagodnie wygasająca fala od koła — bez pseudo-elementów koła. */
.node-wave,
.core-wave {
  position: absolute;
  inset: -2px;
  z-index: 0;
  border: 1px solid rgba(111, 224, 255, .82);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.node > *:not(.node-wave),
.core > *:not(.core-wave) {
  position: relative;
  z-index: 1;
}

.node:hover .node-wave,
.node:focus-visible .node-wave,
.core:hover .core-wave,
.core:focus-visible .core-wave {
  animation: orbit-wave 1.5s cubic-bezier(.16,.7,.28,1) infinite;
}

.node:hover .node-wave {
  box-shadow: 0 0 15px rgba(111, 224, 255, .62), 0 0 34px rgba(22, 141, 255, .32);
}

.core:hover .core-wave {
  box-shadow: 0 0 19px rgba(111, 224, 255, .72), 0 0 44px rgba(22, 141, 255, .38);
}

@keyframes orbit-wave {
  0% { inset: -2px; opacity: .86; }
  72% { opacity: .18; }
  100% { inset: -42px; opacity: 0; }
}

/* Definitywne zabezpieczenie: żadnych animacji pseudo-elementów na wiązkach. */
.orbit-line::before,
.orbit-line::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Tablet: zachowuje ten sam spokojny poziom jasności co desktop. */
@media (min-width: 501px) and (max-width: 900px) {
  .node-web .node-icon-image { opacity: .78; }
}

/* SOUNDSAAR: pionowo wyrównany znak i ten sam cyjan co obręcz koła. */
.node-sound .node-icon {
  transform: none;
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(83%) saturate(1390%) hue-rotate(161deg)
    brightness(103%) contrast(105%);
}

.node-sound:hover .node-icon {
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(83%) saturate(1390%) hue-rotate(161deg)
    brightness(112%) contrast(108%)
    drop-shadow(0 0 5px rgba(111, 224, 255, .98))
    drop-shadow(0 0 14px rgba(82, 213, 255, .82));
}

/* Maskowanie wymusza identyczny kolor znaku i obręczy — bez różnic w odcieniu. */
.node-web .node-icon,
.node-sound .node-icon {
  background-image: none;
  background-color: #6fe0ff;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: none;
}

.node-web .node-icon {
  -webkit-mask-image: url('grafika/soni-cyan-contour.webp');
  mask-image: url('grafika/soni-cyan-contour.webp');
}

.node-sound .node-icon {
  -webkit-mask-image: url('grafika/znaksoundsaar-dark-outline.webp');
  mask-image: url('grafika/znaksoundsaar-dark-outline.webp');
}

.node-web:hover .node-icon,
.node-sound:hover .node-icon {
  background-color: #6fe0ff;
  filter: drop-shadow(0 0 5px rgba(111, 224, 255, .98))
    drop-shadow(0 0 14px rgba(82, 213, 255, .82));
}

/* Fallback dla przeglądarek bez poprawnej obsługi maskowania WebP. */
.node-web .node-icon,
.node-sound .node-icon {
  -webkit-mask-image: none;
  mask-image: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .95;
  filter: brightness(1.25) saturate(1.15);
}

.node-web .node-icon { background-image: url('grafika/soni-cyan-contour.webp'); }
.node-sound .node-icon { background-image: url('grafika/znaksoundsaar-dark-outline.webp'); }

.node-web:hover .node-icon,
.node-sound:hover .node-icon {
  filter: brightness(1.55) saturate(1.25)
    drop-shadow(0 0 5px rgba(111, 224, 255, .98))
    drop-shadow(0 0 14px rgba(82, 213, 255, .82));
}

/* Ostateczne, proste ustawienie znaków: widoczne normalnie, bez dodatkowej obręczy. */
.node-web .node-icon,
.node-sound .node-icon {
  -webkit-mask: none !important;
  mask: none !important;
  background-color: transparent !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 0;
  opacity: 1;
  filter: none !important;
}

.node-web .node-icon {
  background-image: url('grafika/soni-cyan-contour.webp') !important;
}

.node-sound .node-icon {
  background-image: url('grafika/znaksoundsaar-dark-outline.webp') !important;
}

.node-web:hover .node-icon,
.node-sound:hover .node-icon {
  opacity: 1;
  filter: brightness(1.25) saturate(1.18)
    drop-shadow(0 0 3px rgba(111, 224, 255, .95))
    drop-shadow(0 0 8px rgba(82, 213, 255, .55)) !important;
}

/* Czyste kontury wektorowe: ostre i widoczne również bez hovera. */
.node-web .node-icon,
.node-sound .node-icon {
  background-color: transparent !important;
  background-size: contain;
  background-position: center;
  opacity: .84;
  filter: none !important;
}

.node-web .node-icon { background-image: url('grafika/soni-outline.svg') !important; }
.node-sound .node-icon { background-image: url('grafika/soundsaar-outline.svg') !important; }

.node-web:hover .node-icon,
.node-sound:hover .node-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px #6fe0ff) drop-shadow(0 0 11px rgba(82, 213, 255, .8)) !important;
}

/* Wierne znaki źródłowe — bez karykaturalnego przerysowania SVG. */
.node-web .node-icon,
.node-sound .node-icon {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .9;
  filter: brightness(1.08) contrast(1.05) !important;
}

.node-web .node-icon {
  background-image: url('grafika/soni-mountain-transparent.webp') !important;
}

.node-sound .node-icon {
  background-image: url('grafika/znaksoundsaar-mountain-transparent.webp') !important;
}

.node-web:hover .node-icon,
.node-sound:hover .node-icon {
  opacity: 1;
  filter: brightness(1.18) contrast(1.08)
    drop-shadow(0 0 4px rgba(111, 224, 255, .92))
    drop-shadow(0 0 11px rgba(82, 213, 255, .7)) !important;
}

/* Ikona aplikacji inspirowana panelem muzycznym JW-2. */
.node-app .node-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 7px;
  font-size: 0;
  background: url('grafika/app-workstation.webp') center / contain no-repeat;
  filter: none;
}

.node-app:hover .node-icon {
  filter: brightness(1.13) drop-shadow(0 0 7px rgba(255, 169, 58, .58));
}

/* Spójny, chłodny wariant aplikacji: granat, stal i cyjan. */
.node-app .node-icon {
  background-image: url('grafika/app-workstation-mountain.webp');
}

.node-app:hover .node-icon {
  filter: brightness(1.13) drop-shadow(0 0 7px rgba(82, 213, 255, .68));
}

/* Monochromatyczny znak aplikacji — ten sam język wizualny co SOUNDSAAR. */
.node-app .node-icon {
  background-image: url('grafika/app-workstation-outline.svg');
  opacity: .86;
  filter: none;
}

.node-app:hover .node-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px #6fe0ff) drop-shadow(0 0 10px rgba(82, 213, 255, .72));
}

/* Wersja z wielotonowym wypełnieniem: granat, stal i cyjan. */
.node-app .node-icon {
  background-image: url('grafika/app-workstation-mountain.webp');
  opacity: .96;
  filter: none;
}

.node-app:hover .node-icon {
  opacity: 1;
  filter: brightness(1.12) drop-shadow(0 0 5px rgba(82, 213, 255, .78));
}

/* Koła ustawione symetrycznie; promienie trafiają w ich środki. */
.node-app { left: 22%; top: 0; }
.node-web { right: 22%; top: 0; }
.node-sound { left: 22%; bottom: 0; }
.node-ai { right: 22%; bottom: 0; }

.orbit-line { width: 43%; }
.line-a { transform: rotate(-114deg); }
.line-b { transform: rotate(-66deg); }
.line-c { transform: rotate(114deg); }
.line-d { transform: rotate(66deg); }

.node {
  width: 126px;
  height: 126px;
  aspect-ratio: auto;
  padding: 8px;
  overflow: visible;
}

.node strong,
.node small {
  display: block;
  max-width: 108px;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.node strong { font-size: 10px; }
.node small { font-size: 9px; }

.node-app .node-icon,
.node-web .node-icon,
.node-sound .node-icon,
.node-ai .node-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  margin-bottom: 4px;
}

.node::before { inset: -10px; }
.node::after { inset: -10px; }

.node:hover::after {
  animation: node-ring 1.25s ease-out infinite;
}

@keyframes node-ring {
  0% { inset: -10px; opacity: .95; }
  100% { inset: -38px; opacity: 0; }
}

.core {
  cursor: pointer;
}

.core:focus-visible {
  outline: 2px solid #6fe0ff;
  outline-offset: 7px;
}

@media (max-width: 500px) {
  .node { width: 104px; height: 104px; }
  .node-app .node-icon,
  .node-web .node-icon,
  .node-sound .node-icon,
  .node-ai .node-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .node strong { font-size: 8px; }
  .node small { font-size: 8px; }
}

/* Dokładna geometria: cztery odnogi co 45 stopni. */
.node-app { left: 5%; top: 5%; }
.node-web { right: 5%; top: 5%; }
.node-sound { left: 5%; bottom: 5%; }
.node-ai { right: 5%; bottom: 5%; }

.line-a { transform: rotate(-135deg); }
.line-b { transform: rotate(-45deg); }
.line-c { transform: rotate(135deg); }
.line-d { transform: rotate(45deg); }

/* Centralne SONARIQ również reaguje jak aktywne koło. */
.core {
  isolation: isolate;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.core::before,
.core::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid rgba(111, 224, 255, 0);
  border-radius: 50%;
  pointer-events: none;
}

.core:hover {
  transform: translate(-50%, -50%) scale(1.035);
  border-color: #6fe0ff;
  box-shadow:
    inset 7px 7px 15px rgba(71, 125, 164, .3),
    inset -9px -10px 17px rgba(0, 0, 0, .76),
    0 0 20px rgba(26, 157, 255, .6),
    0 0 48px rgba(39, 175, 255, .24);
}

.core:hover::before {
  border-color: rgba(111, 224, 255, .95);
  box-shadow: 0 0 14px rgba(111, 224, 255, .72);
}

.core:hover::after {
  border-color: rgba(111, 224, 255, .58);
  animation: core-ring 1.3s ease-out infinite;
}

.core:hover .core-icon {
  filter: brightness(1.35) drop-shadow(0 0 5px rgba(111, 224, 255, .98)) drop-shadow(0 0 13px rgba(82, 213, 255, .72));
}

/* Aktywna odnoga: impuls biegnie od zewnętrznego koła do SONARIQ. */
.orbit-line.is-active {
  z-index: 1;
  background: #6fe0ff;
  box-shadow: 0 0 8px rgba(111, 224, 255, .92), 0 0 18px rgba(82, 213, 255, .48);
}

.orbit-line.is-active::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #e7fbff;
  box-shadow: 0 0 7px #e9fcff, 0 0 18px #6fe0ff, 0 0 32px rgba(82, 213, 255, .9);
  animation: ray-to-core 1.05s linear infinite;
  pointer-events: none;
}

@keyframes ray-to-core {
  0% { left: 104%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: -12%; opacity: 0; }
}

/* Hover centralnego koła: impulsy biegną z SONARIQ do wszystkich kół. */
.orbit-line.is-core-active {
  z-index: 1;
  background: #6fe0ff;
  box-shadow: 0 0 8px rgba(111, 224, 255, .92), 0 0 18px rgba(82, 213, 255, .48);
}

.orbit-line.is-core-active::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 50%;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #e7fbff;
  box-shadow: 0 0 7px #e9fcff, 0 0 18px #6fe0ff, 0 0 32px rgba(82, 213, 255, .9);
  animation: ray-from-core 1.05s linear infinite;
  pointer-events: none;
}

@keyframes ray-from-core {
  0% { left: -12%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

@keyframes core-ring {
  0% { inset: -12px; opacity: .95; }
  100% { inset: -48px; opacity: 0; }
}

/* Automatyka AI: chłodny, wielotonowy rdzeń neuronowy na transparentnym tle. */
.node-ai .node-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  margin-bottom: 4px;
  font-size: 0;
  color: transparent;
  background: url('grafika/ai-neural-core.webp') center / contain no-repeat;
  filter: none;
}

.node-ai:hover .node-icon {
  filter: brightness(1.12) drop-shadow(0 0 5px rgba(82, 213, 255, .78));
}

/* Wspólna siatka: każdy znak i podpis zajmuje dokładnie te same pola. */
.node {
  display: grid;
  grid-template-rows: 56px 14px 14px;
  row-gap: 3px;
  align-content: center;
  justify-items: center;
  padding: 0 8px;
}

.node .node-icon {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 56px !important;
  height: 56px !important;
  flex: none !important;
  margin: 0 !important;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.node strong,
.node small {
  width: 100%;
  min-height: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

.node strong { grid-row: 2; }
.node small { grid-row: 3; }
.node-spacer { visibility: hidden; }

/* Mocniejszy, ale nadal cyjanowy błysk dla Aplikacji i Automatyki AI. */
.node-app:hover .node-icon {
  filter: brightness(1.38) saturate(1.28)
    drop-shadow(0 0 6px rgba(111, 224, 255, 1))
    drop-shadow(0 0 15px rgba(82, 213, 255, .92))
    drop-shadow(0 0 27px rgba(82, 213, 255, .55)) !important;
}

.node-ai:hover .node-icon {
  filter: brightness(1.4) saturate(1.25)
    drop-shadow(0 0 6px rgba(111, 224, 255, 1))
    drop-shadow(0 0 16px rgba(82, 213, 255, .94))
    drop-shadow(0 0 29px rgba(82, 213, 255, .58)) !important;
}

@media (max-width: 500px) {
  .node {
    grid-template-rows: 46px 12px 12px;
    row-gap: 2px;
  }

  .node .node-icon {
    width: 46px !important;
    height: 46px !important;
  }

  .node strong,
  .node small { min-height: 12px; }
}
.project-a { background-image: url('grafika/aumixys.png') !important; }
.project-b { background-image: url('grafika/znaksoundsaar-dark-outline.webp') !important; }
.project-a { background-image: url('grafika/soni-mountain.png') !important; }
.project-b { background-image: url('grafika/znaksoundsaar-dark-outline.webp') !important; }
.node::before,.node::after{display:none!important}
.core::before,.core::after{display:none!important}

/* Visible light beams connecting the central SONARIQ core with all four nodes. */
.orbit-line {
  z-index: 1;
  height: 2px;
  opacity: .96;
  background: linear-gradient(90deg, rgba(231,251,255,.95), rgba(111,224,255,.72) 42%, rgba(22,141,255,.2));
  box-shadow: 0 0 5px rgba(111,224,255,.95), 0 0 16px rgba(22,141,255,.55);
  pointer-events: none;
}

.orbit-line.is-core-active {
  background: linear-gradient(90deg, #e7fbff, #6fe0ff 45%, #168dff);
  box-shadow: 0 0 8px rgba(231,251,255,.98), 0 0 22px rgba(82,213,255,.88), 0 0 38px rgba(22,141,255,.5);
}

/* Bez krzyżyków i dodatkowych pseudo-warstw w kołach. */
.core::before,
.core::after,
.node::before,
.node::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Impuls pozostaje widoczny wyłącznie jako krótka świetlna fala na linii. */
.orbit-line.is-active::after,
.orbit-line.is-core-active::before {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
  animation-duration: 1.05s;
  background: #e7fbff !important;
  box-shadow: 0 0 7px #e9fcff, 0 0 18px #6fe0ff, 0 0 30px rgba(82, 213, 255, .82) !important;
}

/* Ostateczna izolacja poświaty AUMIXYS od prostokątnego pola obrazu. */
.node-web .node-icon,
.node-web:hover .node-icon {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* On compact screens the orbit belongs below the hero copy, never above the actions. */
@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: auto;
    padding: 125px 20px 78px;
  }

  .hero-copy {
    width: 100%;
    max-width: 560px;
  }

  .hero-actions {
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
  }

  .orbit-system {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(75vw, 500px);
    margin: 52px auto 0;
    transform: none;
  }
}

/* Te reguły muszą być na samym końcu pliku: zastępują historyczne pseudo-impulsy.
   Ruch realizują wyłącznie elementy .orbit-pulse dodane w HTML. */
.orbit-line.is-active::after,
.orbit-line.is-core-active::before,
.orbit-line::before,
.orbit-line::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

@media (max-width: 500px) {
  .hero {
    padding: 112px 20px 62px;
  }

  .orbit-system {
    width: min(100vw, 460px);
    margin-top: 44px;
  }
}

/* Czytelna typografia przycisków: etykieta pozostaje idealnie wyśrodkowana,
   a strzałka nie przesuwa jej optycznie w lewo. */
.hero-actions .button {
  position: relative;
  min-height: 56px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: center;
}

.hero-actions .button > span {
  display: block;
  width: 100%;
  line-height: inherit;
}

.hero-actions .button-primary {
  min-width: 216px;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-actions .button-ghost {
  min-width: 198px;
  padding-left: 28px;
  padding-right: 28px;
}

.hero-actions .button-primary > b {
  position: absolute;
  top: 50%;
  right: 24px;
  margin: 0;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
}

@media (max-width: 500px) {
  .hero-actions { gap: 12px; }

  .hero-actions .button {
    min-width: 0;
    flex: 1 1 0;
    min-height: 52px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 13px;
  }

  .hero-actions .button-primary { padding-right: 14px; }
  .hero-actions .button-primary > b { right: 14px; font-size: 15px; }
}
