.local__grid {
  display: grid;
  gap: 24px;
}

/* Data-flow diagram */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  align-items: center;
  gap: 8px;
  padding: 48px 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(420px circle at 85% 50%, rgba(107, 196, 160, 0.22), transparent 60%),
    linear-gradient(160deg, var(--deep-2), var(--deep));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}

.flow__node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.flow__node > svg {
  width: 40px;
  height: 40px;
  color: var(--mint);
}

.flow__node strong {
  font-size: 18px;
}

.flow__node small {
  color: var(--on-dark-3);
  font-size: 13px;
  line-height: 1.6;
}

.flow__node--device {
  border-color: rgba(107, 196, 160, 0.55);
  background: rgba(107, 196, 160, 0.1);
  box-shadow: 0 0 60px -10px rgba(107, 196, 160, 0.45);
}

.flow__node--device > svg {
  width: 54px;
  height: 54px;
}

.flow__node--server {
  opacity: 0.85;
}

.flow__node--server > svg {
  color: var(--on-dark-2);
}

.flow__halo {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--mint);
  opacity: 0;
  animation: halo 3s ease-out infinite;
  pointer-events: none;
}

@keyframes halo {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.flow__vault {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
}

.flow__vault svg {
  width: 14px;
  height: 14px;
}

.flow__link {
  position: relative;
  height: 120px;
}

.flow__line {
  position: absolute;
  top: 50%;
  inset-inline: -8px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 8px, transparent 8px 16px);
  animation: dash 1.2s linear infinite;
}

@keyframes dash {
  to {
    background-position: -16px 0;
  }
}

.flow__packet {
  position: absolute;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.flow__packet--ok {
  top: 12px;
  background: var(--mint);
  color: var(--deep);
  animation: packet-ok 4.5s var(--ease) infinite;
}

.flow__packet--blocked {
  bottom: 12px;
  background: rgba(229, 115, 115, 0.18);
  border: 1px solid rgba(229, 115, 115, 0.6);
  color: #ffb4b4;
  animation: packet-blocked 4.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes packet-ok {
  0% {
    left: 95%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  70% {
    left: 5%;
    opacity: 1;
  }

  85%,
  100% {
    left: 5%;
    opacity: 0;
  }
}

@keyframes packet-blocked {
  0% {
    left: 95%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  45% {
    left: 55%;
    transform: translateX(-50%);
  }

  50% {
    transform: translateX(calc(-50% - 6px));
  }

  55% {
    transform: translateX(calc(-50% + 6px));
  }

  60% {
    left: 55%;
    transform: translateX(-50%);
    opacity: 1;
  }

  80%,
  100% {
    left: 70%;
    opacity: 0;
  }
}

/* Comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare__col {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
}

.compare__col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}

.compare__col ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}

.compare__col li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.compare__col li::before {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(3px);
}

.compare__col--cloud {
  border: 1px dashed var(--line);
  color: var(--ink-3);
  background: transparent;
}

.compare__col--cloud li::before {
  content: "✕";
  background: #eef1f0;
  color: #9aa9a7;
}

.compare__col--faysal {
  border: 1px solid rgba(107, 196, 160, 0.6);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.compare__col--faysal li::before {
  content: "✓";
  background: var(--mint);
  color: var(--deep);
}

@media (max-width: 720px) {
  .flow {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .flow__link {
    height: 110px;
  }

  .flow__line {
    top: 0;
    bottom: 0;
    inset-inline: auto;
    left: 50%;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 8px, transparent 8px 16px);
  }

  .flow__packet--ok,
  .flow__packet--blocked {
    left: 50%;
    animation: none;
  }

  .flow__packet--ok {
    top: 18px;
  }

  .flow__packet--blocked {
    bottom: 18px;
  }

  .compare {
    grid-template-columns: 1fr;
  }
}
