.showcase {
  background:
    radial-gradient(900px 460px at 50% 0%, rgba(46, 230, 121, 0.06), transparent 65%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(12, 23, 16, 0.55);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 900;
  color: #04150a;
  background: linear-gradient(135deg, #46f08e, #19cc63);
  box-shadow: var(--shadow-brand);
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.step-connector {
  position: absolute;
  top: 54px;
  inset-inline-end: -22px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-2), transparent);
  z-index: 1;
}

html[dir='rtl'] .step-connector {
  background: linear-gradient(270deg, var(--line-2), transparent);
}

/* ---------- connection diagram ---------- */
.diagram {
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 23, 16, 0.7), rgba(6, 11, 8, 0.7));
  box-shadow: var(--shadow-card);
}

.diagram-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.diagram-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(46, 230, 121, 0.14), rgba(10, 18, 13, 0.6));
  color: var(--brand);
}

.diagram-icon svg {
  width: 40px;
  height: 40px;
}

.diagram-icon.pulse {
  animation: ring-pulse 2.6s ease-out infinite;
}

.diagram-label {
  font-size: 15px;
  font-weight: 800;
}

.diagram-sub {
  font-size: 12px;
  color: var(--dim);
}

.diagram-link {
  position: relative;
  width: 180px;
  height: 60px;
}

.diagram-link svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

html[dir='rtl'] .diagram-link svg {
  transform: scaleX(-1);
}

.diagram-link .path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.diagram-link .beam {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 40 200;
  filter: drop-shadow(0 0 6px rgba(46, 230, 121, 0.8));
  animation: beam 2.8s linear infinite;
}

.diagram-link .lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--brand);
}

.diagram-link .lock svg {
  width: 18px;
  height: 18px;
}

.diagram-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(46, 230, 121, 0.05);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.mode-pill svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step-connector {
    display: none;
  }
  .diagram-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .diagram-link {
    width: 60px;
    height: 90px;
    margin-inline: auto;
    transform: rotate(90deg);
  }
  .diagram {
    padding: 28px 20px;
  }
}