.fka-animation {
  --fka-accent: #d92b2b;
  --fka-accent-rgb: 217, 43, 43;
  --fka-accent-dark: #ad2020;
  --fka-background: #fafaf8;
  --fka-max-width: 920px;
  --fka-ink: #151515;
  --fka-muted: #626262;
  --fka-surface: #fff;
  --fka-line-color: #e6e6e2;
  width: min(100%, var(--fka-max-width));
  margin-inline: auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.fka-animation *,
.fka-animation *::before,
.fka-animation *::after { box-sizing: border-box; }

.fka-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: clamp(20px, 4vw, 44px);
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--fka-accent-rgb), .07), transparent 28%),
    radial-gradient(circle at 50% 50%, #fff 0 54%, var(--fka-background) 100%);
}

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

.fka-line {
  fill: none;
  stroke: var(--fka-accent);
  stroke-width: .34;
  stroke-linecap: round;
  stroke-dasharray: 1.1 1.9;
  opacity: .42;
  animation: fkaFlow 1.55s linear infinite;
}

.fka-line:nth-child(2n) { animation-delay: -.45s; }
.fka-line:nth-child(3n) { animation-delay: -.9s; }

@keyframes fkaFlow { to { stroke-dashoffset: -6; } }

.fka-wave {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(152px, 24%, 220px);
  aspect-ratio: 1;
  border: clamp(1px, .2vw, 2px) solid var(--fka-accent);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  animation: fkaPulse 3.6s ease-out infinite;
  pointer-events: none;
}

.fka-wave:nth-of-type(2) { animation-delay: 1.2s; }
.fka-wave:nth-of-type(3) { animation-delay: 2.4s; }

@keyframes fkaPulse {
  0% { opacity: .58; transform: translate(-50%, -50%) scale(.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.65); }
}

.fka-hub {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  width: clamp(160px, 25%, 230px);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 12px);
  overflow: hidden;
  border: clamp(2px, .35vw, 3px) solid var(--fka-accent);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 15px 40px rgba(20, 20, 20, .11);
  transform: translate(-50%, -50%);
}

.fka-hub::before {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(var(--fka-accent-rgb), .18);
  border-radius: 50%;
  animation: fkaHalo 2.8s ease-in-out infinite;
}

@keyframes fkaHalo {
  0%, 100% { transform: scale(.9); opacity: .45; }
  50% { transform: scale(1.08); opacity: 1; }
}

.fka-hub-label {
  position: relative;
  z-index: 1;
  max-width: 82%;
  color: var(--fka-accent-dark);
  font-size: clamp(8px, 1.05vw, 10px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.fka-ai-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: 78%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(3px, .5vw, 5px);
}

.fka-ai-logo { grid-column: span 2; }
.fka-logo-count-4 .fka-ai-logo { grid-column: span 3; }
.fka-logo-count-5 .fka-ai-logo:nth-child(4) { grid-column: 2 / span 2; }

.fka-ai-logo {
  display: grid;
  min-width: 0;
  min-height: clamp(23px, 3.2vw, 29px);
  place-items: center;
  animation: fkaLogoFloat 3.2s ease-in-out infinite;
}

.fka-ai-logo:nth-child(2) { animation-delay: -.8s; }
.fka-ai-logo:nth-child(3) { animation-delay: -1.6s; }
.fka-ai-logo:nth-child(4) { animation-delay: -2.4s; }
.fka-ai-logo:nth-child(5) { animation-delay: -.4s; }
.fka-ai-logo:nth-child(6) { animation-delay: -2s; }

.fka-ai-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(21px, 3vw, 27px);
  object-fit: contain;
}

.fka-ai-fallback {
  display: grid;
  width: clamp(22px, 3.2vw, 30px);
  height: clamp(22px, 3.2vw, 30px);
  place-items: center;
  border-radius: 50%;
  background: var(--fka-logo-color, #444);
}

.fka-ai-fallback svg {
  width: 68%;
  height: 68%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes fkaLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4%) scale(1.045); }
}

.fka-node {
  position: absolute;
  z-index: 3;
  top: var(--fka-top);
  left: var(--fka-left);
  display: grid;
  width: clamp(140px, 20.5%, 190px);
  justify-items: center;
  color: var(--fka-ink);
  text-align: center;
  transform: translate(-50%, -50%);
  appearance: none;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  cursor: default;
}

.fka-node-icon {
  display: grid;
  width: clamp(54px, 8.7vw, 78px);
  max-width: 78px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--fka-line-color);
  border-radius: 50%;
  background: var(--fka-surface);
  box-shadow: 0 7px 22px rgba(20, 20, 20, .075);
  animation: fkaNodeFloat 4s ease-in-out infinite;
  animation-delay: var(--fka-delay);
}

.fka-node-icon svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: var(--fka-accent);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fka-node-label {
  display: inline-block;
  max-width: 100%;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(230, 230, 226, .9);
  border-radius: 999px;
  color: var(--fka-ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .035);
  font-size: clamp(9px, 1.35vw, 12px);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.fka-node::after {
  display: block;
  max-width: 184px;
  margin-top: 6px;
  content: attr(data-text);
  color: var(--fka-muted);
  font-size: clamp(9px, 1.12vw, 10.5px);
  font-weight: 400;
  line-height: 1.42;
  text-wrap: balance;
}

@keyframes fkaNodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8%); }
}

.fka-node:hover .fka-node-icon {
  border-color: rgba(var(--fka-accent-rgb), .4);
  box-shadow: 0 10px 26px rgba(var(--fka-accent-rgb), .15);
}

.fka-node:focus-visible .fka-node-icon,
.fka-node.is-active .fka-node-icon {
  border-color: var(--fka-accent);
  box-shadow: 0 0 0 4px rgba(var(--fka-accent-rgb), .13), 0 10px 26px rgba(var(--fka-accent-rgb), .16);
}

.fka-mobile-panel { display: none; }
.fka-mobile-panel [hidden] { display: none !important; }

@media (max-width: 820px) {
  .fka-node { width: 18%; }
  .fka-node::after { display: none; }
}

@media (max-width: 720px) {
  .fka-stage { border-radius: 24px; }
  .fka-node { width: 17.5%; }
  .fka-node-label {
    margin-top: 6px;
    padding: 4px 6px;
    font-size: clamp(8px, 1.7vw, 10px);
  }
}

@media (max-width: 480px) {
  .fka-stage { min-height: 310px; border-radius: 18px; }
  .fka-hub, .fka-wave { width: 41%; }
  .fka-hub { gap: 6px; }
  .fka-hub-label { max-width: 88%; font-size: clamp(6.5px, 1.9vw, 8px); }
  .fka-ai-grid { width: 78%; gap: 3px; }
  .fka-ai-logo { min-height: 18px; }
  .fka-ai-image { max-width: 100%; max-height: 18px; }
  .fka-ai-fallback { width: 17px; height: 17px; }
  .fka-node { width: 16%; cursor: pointer; }
  .fka-node-icon { width: clamp(42px, 13.5vw, 58px); }
  .fka-node-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .fka-line { stroke-width: .48; opacity: .5; }
  .fka-mobile-panel {
    display: block;
    min-height: 94px;
    margin-top: 12px;
    padding: 15px 17px;
    border: 1px solid var(--fka-line-color);
    border-radius: 15px;
    color: var(--fka-muted);
    background: var(--fka-background);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .045);
  }
  .fka-mobile-panel strong {
    display: block;
    margin-bottom: 5px;
    color: var(--fka-ink);
    font-size: 14px;
    line-height: 1.3;
  }
  .fka-mobile-panel p { margin: 0; font-size: 12px; line-height: 1.5; }
  .fka-mobile-hint { display: block; color: var(--fka-muted); font-size: 12px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .fka-animation *,
  .fka-animation *::before,
  .fka-animation *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
