/* Autokrix Solutions animated system board. Loaded only on page-solutions.php. */

.akx-page-solutions .akx-system-animation {
  position: relative;
  padding: clamp(54px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 137, 58, 0.14), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(34, 197, 163, 0.12), transparent 34%),
    linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
  overflow: hidden;
}

.akx-page-solutions .akx-system-animation > .akx-container {
  width: min(1840px, calc(100% - 48px));
  max-width: none;
}

.akx-page-solutions .akx-system-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 23, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 23, 38, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.akx-page-solutions .akx-system-board {
  --system-bg: #fffdfa;
  --system-card: rgba(14, 23, 38, 0.025);
  --system-card-strong: rgba(255, 255, 255, 0.78);
  --system-border: rgba(14, 23, 38, 0.12);
  --system-border-strong: rgba(232, 184, 75, 0.38);
  --system-text: #0e1726;
  --system-muted: rgba(68, 80, 106, 0.78);
  --system-faint: rgba(68, 80, 106, 0.52);
  --system-grid: rgba(14, 23, 38, 0.045);
  --system-accent: var(--color-accent);
  --system-green: #22c7a3;
  --system-purple: #9b6dff;
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--system-text);
  background:
    radial-gradient(circle at 50% 16%, rgba(184, 137, 58, 0.13), transparent 28%),
    radial-gradient(circle at 84% 42%, rgba(34, 199, 163, 0.11), transparent 24%),
    linear-gradient(145deg, rgba(184, 137, 58, 0.055), transparent 32%),
    var(--system-bg);
  border: 1px solid var(--system-border);
  border-radius: clamp(20px, 2vw, 28px);
  box-shadow: 0 34px 90px rgba(14, 23, 38, 0.13), inset 0 1px rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.akx-page-solutions .akx-system-board::before,
.akx-page-solutions .akx-system-board::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.akx-page-solutions .akx-system-board::before {
  inset: 0;
  background-image:
    linear-gradient(var(--system-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--system-grid) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.55;
}

.akx-page-solutions .akx-system-board::after {
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  background: radial-gradient(circle, rgba(184, 137, 58, 0.16), transparent 62%);
  filter: blur(10px);
}

.akx-page-solutions .akx-system-board__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.akx-page-solutions .akx-system-board__eyebrow,
.akx-page-solutions .akx-system-column__title,
.akx-page-solutions .akx-system-core__title,
.akx-page-solutions .akx-system-connector__label,
.akx-page-solutions .akx-system-board__status,
.akx-page-solutions .akx-system-board__foot {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace);
  text-transform: uppercase;
  letter-spacing: 0.19em;
}

.akx-page-solutions .akx-system-board__eyebrow {
  margin: 0 0 10px;
  color: var(--system-accent);
  font-size: 11px;
  font-weight: 800;
}

.akx-page-solutions .akx-system-board h2 {
  max-width: 600px;
  margin: 0;
  color: var(--system-text);
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.akx-page-solutions .akx-system-board__head p:not(.akx-system-board__eyebrow) {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--system-muted);
  font-size: 14px;
  line-height: 1.55;
}

.akx-page-solutions .akx-system-board__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--system-muted);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--system-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.akx-page-solutions .akx-system-board__status strong {
  color: var(--system-accent);
  font-weight: 900;
}

.akx-page-solutions .akx-system-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--system-green);
  box-shadow: 0 0 0 0 rgba(34, 199, 163, 0.55);
  animation: akxSystemLive 1.8s ease-out infinite;
}

.akx-page-solutions .akx-system-board__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(122px, 0.95fr) minmax(30px, 0.22fr) minmax(122px, 0.95fr) minmax(30px, 0.22fr) minmax(240px, 1.55fr) minmax(30px, 0.22fr) minmax(122px, 0.95fr) minmax(30px, 0.22fr) minmax(130px, 0.98fr);
  gap: clamp(8px, 0.8vw, 13px);
  align-items: stretch;
}

.akx-page-solutions .akx-system-column,
.akx-page-solutions .akx-system-core {
  min-width: 0;
  padding: clamp(12px, 1vw, 15px);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--system-border);
  border-radius: 16px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.62);
}

.akx-page-solutions .akx-system-column__title,
.akx-page-solutions .akx-system-core__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 10px;
  color: var(--system-text);
  font-size: 9px;
  font-weight: 900;
}

.akx-page-solutions .akx-system-column__title span,
.akx-page-solutions .akx-system-core__title span {
  color: var(--system-accent);
}

.akx-page-solutions .akx-system-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 8px;
  color: var(--system-text);
  background: linear-gradient(180deg, var(--system-card-strong), var(--system-card));
  border: 1px solid var(--system-border);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.akx-page-solutions .akx-system-item + .akx-system-item {
  margin-top: 7px;
}

.akx-page-solutions .akx-system-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--system-accent);
  box-shadow: 0 0 14px rgba(184, 137, 58, 0.78);
}

.akx-page-solutions .akx-system-column--data .akx-system-item::after,
.akx-page-solutions .akx-system-column--actions .akx-system-item::after {
  background: var(--system-green);
  box-shadow: 0 0 14px rgba(34, 199, 163, 0.62);
}

.akx-page-solutions .akx-system-column--outcomes .akx-system-item::after {
  left: -4px;
  right: auto;
}

.akx-page-solutions .akx-system-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--system-accent);
  border: 1px solid rgba(232, 184, 75, 0.32);
  border-radius: 9px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.akx-page-solutions .akx-system-column--data .akx-system-item__icon {
  color: #76a9ff;
  border-color: rgba(118, 169, 255, 0.32);
}

.akx-page-solutions .akx-system-column--actions .akx-system-item__icon {
  color: var(--system-green);
  border-color: rgba(34, 199, 163, 0.32);
}

.akx-page-solutions .akx-system-column--outcomes .akx-system-item__icon {
  color: var(--system-accent);
  border-color: rgba(232, 184, 75, 0.32);
}

.akx-page-solutions .akx-system-item strong,
.akx-page-solutions .akx-system-core__layer strong {
  display: block;
  color: var(--system-text);
  font-size: 10.5px;
  line-height: 1.15;
}

.akx-page-solutions .akx-system-item small,
.akx-page-solutions .akx-system-core__layer small {
  display: block;
  margin-top: 3px;
  color: var(--system-muted);
  font-size: 9.5px;
  line-height: 1.3;
}

.akx-page-solutions .akx-system-item--chart {
  min-height: 94px;
  align-items: start;
  border-color: rgba(232, 184, 75, 0.34);
}

.akx-page-solutions .akx-system-item--outcome {
  color: var(--system-accent);
  border-color: rgba(232, 184, 75, 0.38);
  background: linear-gradient(180deg, rgba(184, 137, 58, 0.18), rgba(255, 255, 255, 0.04));
}

.akx-page-solutions .akx-system-chart {
  grid-column: 1 / -1;
  width: 100%;
  height: 34px;
  margin-top: 4px;
}

.akx-page-solutions .akx-system-chart path {
  fill: none;
  stroke: url("#akx-system-chart-gradient");
  stroke: var(--system-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  animation: akxSystemChart 3.6s ease-in-out infinite;
}

.akx-page-solutions .akx-system-connector {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.akx-page-solutions .akx-system-line {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.34), transparent);
}

.akx-page-solutions .akx-system-line--return {
  background: linear-gradient(90deg, transparent, rgba(34, 199, 163, 0.32), transparent);
}

.akx-page-solutions .akx-system-line i {
  position: absolute;
  top: 0;
  left: -22px;
  width: 22px;
  height: 2px;
  border-radius: inherit;
  background: var(--system-accent);
  box-shadow: 0 0 12px rgba(184, 137, 58, 0.9);
  animation: akxSystemPacketOut 2.6s linear infinite;
}

.akx-page-solutions .akx-system-line--return i {
  left: auto;
  right: -22px;
  background: var(--system-green);
  box-shadow: 0 0 12px rgba(34, 199, 163, 0.75);
  animation: akxSystemPacketBack 2.6s linear infinite;
}

.akx-page-solutions .akx-system-connector--context .akx-system-line i {
  animation-delay: 0.25s;
}

.akx-page-solutions .akx-system-connector--actions .akx-system-line i {
  animation-delay: 0.5s;
}

.akx-page-solutions .akx-system-connector--outcomes .akx-system-line i {
  animation-delay: 0.75s;
}

.akx-page-solutions .akx-system-connector__label {
  color: var(--system-faint);
  text-align: center;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.45;
}

.akx-page-solutions .akx-system-core {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(232, 184, 75, 0.22);
  background:
    radial-gradient(circle at 50% 32%, rgba(184, 137, 58, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.akx-page-solutions .akx-system-bot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  margin: 0 0 14px;
}

.akx-page-solutions .akx-system-bot__face {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 76px;
  height: 52px;
  background: linear-gradient(180deg, #fafaf9, #d6d7da);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 2px rgba(255, 255, 255, 0.9);
}

.akx-page-solutions .akx-system-bot__face::before {
  content: "";
  position: absolute;
  inset: 11px 12px;
  border-radius: 999px;
  background: #111823;
}

.akx-page-solutions .akx-system-bot__face i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--system-accent);
  box-shadow: 0 0 18px rgba(232, 184, 75, 0.88);
  animation: akxSystemEye 2.4s ease-in-out infinite;
}

.akx-page-solutions .akx-system-bot__antenna {
  position: absolute;
  z-index: 3;
  top: 16px;
  width: 2px;
  height: 20px;
  background: var(--system-accent);
}

.akx-page-solutions .akx-system-bot__antenna::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--system-accent);
  box-shadow: 0 0 15px rgba(232, 184, 75, 0.86);
}

.akx-page-solutions .akx-system-bot__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 214px;
  height: 72px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(232, 184, 75, 0.28);
  border-radius: 50%;
}

.akx-page-solutions .akx-system-bot__orbit--one {
  animation: akxSystemOrbit 9s linear infinite;
}

.akx-page-solutions .akx-system-bot__orbit--two {
  width: 172px;
  height: 50px;
  border-color: rgba(34, 199, 163, 0.22);
  animation: akxSystemOrbit 7s linear reverse infinite;
}

.akx-page-solutions .akx-system-bot__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--system-accent);
  box-shadow: 0 0 15px rgba(232, 184, 75, 0.9);
}

.akx-page-solutions .akx-system-bot__spark--a {
  left: 14%;
  top: 55%;
  animation: akxSystemFloat 3.4s ease-in-out infinite;
}

.akx-page-solutions .akx-system-bot__spark--b {
  right: 16%;
  top: 36%;
  background: var(--system-green);
  box-shadow: 0 0 15px rgba(34, 199, 163, 0.72);
  animation: akxSystemFloat 4s ease-in-out infinite reverse;
}

.akx-page-solutions .akx-system-core__modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(232, 184, 75, 0.24);
  border-radius: 12px;
}

.akx-page-solutions .akx-system-core__modes span {
  padding: 9px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.52);
}

.akx-page-solutions .akx-system-core__modes span + span {
  border-left: 1px solid rgba(232, 184, 75, 0.14);
}

.akx-page-solutions .akx-system-core__modes strong {
  display: block;
  color: var(--system-text);
  font-size: 10px;
  line-height: 1.2;
}

.akx-page-solutions .akx-system-core__modes small {
  display: block;
  margin-top: 4px;
  color: var(--system-muted);
  font-size: 8px;
  line-height: 1.25;
}

.akx-page-solutions .akx-system-core__layer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--system-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.akx-page-solutions .akx-system-core__layer span {
  grid-row: span 2;
  color: var(--system-purple);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 8px;
  font-weight: 900;
}

.akx-page-solutions .akx-system-core__layer--guard span {
  color: var(--system-accent);
}

.akx-page-solutions .akx-system-board__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: min(560px, 100%);
  margin: clamp(16px, 2vw, 24px) auto 0;
  padding: 10px 16px;
  color: var(--system-accent);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--system-border);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
}

.akx-page-solutions .akx-system-board__foot span + span::before {
  content: "•";
  margin-right: 18px;
  color: rgba(232, 184, 75, 0.55);
}

html[data-theme="dark"] .akx-page-solutions .akx-system-animation {
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 137, 58, 0.16), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(34, 197, 163, 0.11), transparent 34%),
    linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
}

html[data-theme="dark"] .akx-page-solutions .akx-system-animation::before {
  background-image:
    linear-gradient(rgba(250, 250, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 249, 0.045) 1px, transparent 1px);
}

html[data-theme="dark"] .akx-page-solutions .akx-system-board {
  --system-bg: #0a0b0d;
  --system-card: rgba(255, 255, 255, 0.055);
  --system-card-strong: rgba(255, 255, 255, 0.085);
  --system-border: rgba(255, 255, 255, 0.12);
  --system-text: #fafaf9;
  --system-muted: rgba(250, 250, 249, 0.64);
  --system-faint: rgba(250, 250, 249, 0.38);
  --system-grid: rgba(255, 255, 255, 0.03);
  background:
    radial-gradient(circle at 50% 16%, rgba(184, 137, 58, 0.18), transparent 28%),
    radial-gradient(circle at 84% 42%, rgba(34, 199, 163, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 32%),
    var(--system-bg);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .akx-page-solutions .akx-system-board__status,
html[data-theme="dark"] .akx-page-solutions .akx-system-board__foot {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .akx-page-solutions .akx-system-column,
html[data-theme="dark"] .akx-page-solutions .akx-system-core {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .akx-page-solutions .akx-system-core__layer {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .akx-page-solutions .akx-system-core__modes span {
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 1240px) {
  .akx-page-solutions .akx-system-board__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akx-page-solutions .akx-system-core {
    grid-column: 1 / -1;
    order: -1;
  }

  .akx-page-solutions .akx-system-connector {
    display: none;
  }

  .akx-page-solutions .akx-system-column--inputs,
  .akx-page-solutions .akx-system-column--data,
  .akx-page-solutions .akx-system-column--actions,
  .akx-page-solutions .akx-system-column--outcomes {
    min-height: 100%;
  }
}

@media (max-width: 760px) {
  .akx-page-solutions .akx-system-animation {
    padding: 54px 0;
  }

  .akx-page-solutions .akx-system-board {
    padding: 18px;
    border-radius: 22px;
  }

  .akx-page-solutions .akx-system-board__head {
    display: block;
  }

  .akx-page-solutions .akx-system-board__status {
    margin-top: 16px;
  }

  .akx-page-solutions .akx-system-board__grid {
    grid-template-columns: 1fr;
  }

  .akx-page-solutions .akx-system-core {
    order: 0;
  }

  .akx-page-solutions .akx-system-core__modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akx-page-solutions .akx-system-core__modes span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(232, 184, 75, 0.14);
  }

  .akx-page-solutions .akx-system-core__modes span:nth-child(4) {
    border-top: 1px solid rgba(232, 184, 75, 0.14);
  }

  .akx-page-solutions .akx-system-bot__orbit {
    width: 220px;
  }

  .akx-page-solutions .akx-system-bot__orbit--two {
    width: 176px;
  }

  .akx-page-solutions .akx-system-board__foot {
    justify-content: flex-start;
    font-size: 10px;
  }
}

@keyframes akxSystemLive {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 199, 163, 0.55);
  }

  72% {
    box-shadow: 0 0 0 10px rgba(34, 199, 163, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 199, 163, 0);
  }
}

@keyframes akxSystemPacketOut {
  0% {
    left: -22px;
    opacity: 0;
  }

  12%,
  88% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes akxSystemPacketBack {
  0% {
    right: -22px;
    opacity: 0;
  }

  12%,
  88% {
    opacity: 1;
  }

  100% {
    right: 100%;
    opacity: 0;
  }
}

@keyframes akxSystemOrbit {
  to {
    rotate: 360deg;
  }
}

@keyframes akxSystemEye {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes akxSystemFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.72;
  }

  50% {
    transform: translate3d(0, -9px, 0);
    opacity: 1;
  }
}

@keyframes akxSystemChart {
  0% {
    stroke-dashoffset: 214;
    opacity: 0.6;
  }

  42%,
  72% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -214;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .akx-page-solutions .akx-system-live,
  .akx-page-solutions .akx-system-line i,
  .akx-page-solutions .akx-system-bot__orbit,
  .akx-page-solutions .akx-system-bot__face i,
  .akx-page-solutions .akx-system-bot__spark,
  .akx-page-solutions .akx-system-chart path {
    animation: none !important;
  }
}
