/* Home "Who it's for" cards: small looping animations in place of the static art.
   Startups: an idea goes from design to build to live in one quick move.
   Enterprise: one core system updates every team at once.
   Colors are fixed here (not part of the generated dark theme). */

.ax {
  position: relative;
  flex: none;
  align-self: center;
  width: 128px;
  height: 96px;
  --ax-card: #ffffff;
  --ax-line: #e4e9f2;
  --ax-sh: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 22px -12px rgba(30, 50, 110, 0.35);
}
html[data-px-theme='dark'] .ax {
  --ax-card: #1b2433;
  --ax-line: #2c374b;
  --ax-sh: 0 12px 24px -12px rgba(0, 0, 0, 0.7);
}
.ax svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Startups ---------- */
.ax-card {
  position: absolute;
  left: 4px;
  top: 22px;
  width: 120px;
  height: 56px;
  border-radius: 14px;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-sh);
}
.ax-track {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 27px;
  height: 2px;
  border-radius: 2px;
  background: #dbeafe;
  overflow: hidden;
}
html[data-px-theme='dark'] .ax-track {
  background: #26344f;
}
.ax-trail {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #93c5fd, #2563eb);
  animation: ax-trail 4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ax-step {
  position: absolute;
  top: 17px;
  display: flex;
  width: 22px;
  height: 22px;
  padding: 5px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 0 0 3px var(--ax-card);
}
html[data-px-theme='dark'] .ax-step {
  background: #1e2b45;
  color: #7fa8ff;
}
.ax-step--1 {
  left: 11px;
}
.ax-step--2 {
  left: 48px;
  animation: ax-pass 4s ease-in-out infinite;
}
.ax-step--3 {
  left: 85px;
  animation: ax-done 4s ease-in-out infinite;
}
.ax-rocket {
  position: absolute;
  left: 9px;
  top: 15px;
  display: flex;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 9px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 8px 16px -6px rgba(37, 99, 235, 0.7);
  opacity: 0;
  animation: ax-rocket 4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ax-live {
  position: absolute;
  right: 0;
  top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #12b76a;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  box-shadow: 0 6px 14px -6px rgba(18, 183, 106, 0.7);
  opacity: 0;
  animation: ax-live 4s ease-in-out infinite;
}
.ax-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}
@keyframes ax-trail {
  0%,
  8% {
    width: 0;
    opacity: 1;
  }
  45%,
  82% {
    width: 100%;
    opacity: 1;
  }
  94%,
  100% {
    width: 100%;
    opacity: 0;
  }
}
@keyframes ax-rocket {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  8% {
    opacity: 1;
    transform: none;
  }
  45%,
  56% {
    opacity: 1;
    transform: translateX(74px);
  }
  72% {
    opacity: 0;
    transform: translate(84px, -30px) rotate(-18deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes ax-pass {
  0%,
  22% {
    transform: none;
  }
  27% {
    transform: scale(1.18);
  }
  34%,
  100% {
    transform: none;
  }
}
@keyframes ax-done {
  0%,
  43% {
    background: #eff6ff;
    color: #2563eb;
    transform: none;
  }
  50% {
    background: #12b76a;
    color: #fff;
    transform: scale(1.22);
  }
  57%,
  86% {
    background: #12b76a;
    color: #fff;
    transform: none;
  }
  96%,
  100% {
    background: #eff6ff;
    color: #2563eb;
  }
}
@keyframes ax-live {
  0%,
  48% {
    opacity: 0;
    transform: translateY(5px) scale(0.85);
  }
  56%,
  86% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

/* ---------- Enterprise ---------- */
.ax-wires {
  position: absolute;
  inset: 0;
}
.ax-wires path {
  stroke: rgba(18, 183, 106, 0.35) !important;
  stroke-width: 1.2 !important;
  stroke-dasharray: 2 3;
}
.ax-orbit {
  position: absolute;
  left: 28px;
  top: 12px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px dashed rgba(18, 183, 106, 0.45);
  animation: ax-spin 18s linear infinite;
}
.ax-core {
  position: absolute;
  left: 46px;
  top: 30px;
  z-index: 2;
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.7);
  animation: ax-beat 3.6s ease-in-out infinite;
}
.ax-pulse {
  position: absolute;
  left: 61px;
  top: 45px;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 8px 2px rgba(18, 183, 106, 0.6);
  opacity: 0;
  animation: ax-send 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ax-pulse--1 {
  --tx: -49px;
  --ty: -31px;
}
.ax-pulse--2 {
  --tx: 49px;
  --ty: -31px;
  animation-delay: 0.08s;
}
.ax-pulse--3 {
  --tx: -49px;
  --ty: 31px;
  animation-delay: 0.16s;
}
.ax-pulse--4 {
  --tx: 49px;
  --ty: 31px;
  animation-delay: 0.24s;
}
.ax-team {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-sh);
  animation: ax-team 3.6s ease-in-out infinite;
}
.ax-team i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d5dd;
  animation: ax-sync 3.6s ease-in-out infinite;
}
.ax-team b {
  width: 13px;
  height: 3px;
  border-radius: 2px;
  background: #d0d5dd;
  animation: ax-sync 3.6s ease-in-out infinite;
}
html[data-px-theme='dark'] .ax-team i,
html[data-px-theme='dark'] .ax-team b {
  background: #3a465c;
}
.ax-team--1 {
  left: 2px;
  top: 4px;
}
.ax-team--2 {
  right: 2px;
  top: 4px;
}
.ax-team--3 {
  left: 2px;
  bottom: 4px;
}
.ax-team--4 {
  right: 2px;
  bottom: 4px;
}
.ax-team--2,
.ax-team--2 i,
.ax-team--2 b {
  animation-delay: 0.08s;
}
.ax-team--3,
.ax-team--3 i,
.ax-team--3 b {
  animation-delay: 0.16s;
}
.ax-team--4,
.ax-team--4 i,
.ax-team--4 b {
  animation-delay: 0.24s;
}
@keyframes ax-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ax-beat {
  0%,
  100% {
    transform: none;
  }
  8% {
    transform: scale(1.1);
  }
  16% {
    transform: none;
  }
}
@keyframes ax-send {
  0%,
  6% {
    opacity: 0;
    transform: none;
  }
  12% {
    opacity: 1;
  }
  38% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty));
  }
  44%,
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty));
  }
}
@keyframes ax-team {
  0%,
  36% {
    transform: none;
    border-color: var(--ax-line);
  }
  42% {
    transform: scale(1.16);
    border-color: rgba(18, 183, 106, 0.6);
  }
  50%,
  84% {
    transform: none;
    border-color: rgba(18, 183, 106, 0.45);
  }
  94%,
  100% {
    border-color: var(--ax-line);
  }
}
@keyframes ax-sync {
  0%,
  38% {
    background: #d0d5dd;
  }
  44%,
  86% {
    background: #12b76a;
  }
  96%,
  100% {
    background: #d0d5dd;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax *,
  .ax {
    animation: none !important;
  }
  .ax-rocket {
    opacity: 1;
    transform: translateX(74px);
  }
  .ax-trail {
    width: 100%;
  }
}

.ax-core img {
  display: block;
  width: 36px;
  height: 36px;
}

/* narrow cards: the animation moves under the text so the heading and copy keep their width */
.aud__card {
  container-type: inline-size;
}
@container (max-width: 470px) {
  .aud__top {
    flex-direction: column;
    gap: 14px;
  }
  .aud__top .ax {
    align-self: center;
    margin: 2px 0 4px;
  }
}
