.smart-process {
  --gold: #e4a634;
  --ink: #15233c;
  --line: #ccd9d7;
  --period: 8s;
  margin-block: 70px 45px;
  isolation: isolate;
  padding: 28px clamp(10px,3vw,34px) 30px;
  border-radius: 22px;
  background: radial-gradient(ellipse at 0 0,#fff1d8 0,transparent 50%),linear-gradient(115deg,#e6f7f1 0%,#fafffd 44%,#fff8e9 100%);
  box-shadow: 0 12px 45px #1729440b;
}

.smart-steps {
  --step-gap: clamp(6px, 1.5vw, 18px);
  --track-inset: calc((100% - 3 * var(--step-gap)) / 8);
  --number-size: 54px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--step-gap);
  isolation: isolate;
}

.smart-steps::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset-inline: var(--track-inset);
  top: calc(var(--number-size) / 2);
  height: 3px;
  background: var(--line);
  border-radius: 10px;
}

.smart-beam {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset-inline: var(--track-inset);
  top: calc(var(--number-size) / 2 - 4px);
  height: 11px;
  overflow: hidden;
}

.smart-beam::before {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 19%;
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(to left,transparent,#f7cb65 40%,#fffbce 60%,transparent);
  filter: drop-shadow(0 0 6px #f2b134);
}

.smart-step {
  --card-gap: 13px;
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: var(--card-gap);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  padding: 0;
}

.smart-number {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--number-size);
  height: var(--number-size);
  border-radius: 17px;
  background: var(--ink);
  color: #ffc761;
  font-weight: 800;
  font-size: 23px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #d8e4e4,0 7px 17px #18284122;
  transition: transform .3s,background .3s,box-shadow .3s;
}

.smart-step.is-active .smart-number,.smart-step:focus-visible .smart-number {
  transform: translateY(-5px) scale(1.1);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 7px #edb64c32,0 6px 22px #e5ae46a1;
}

.smart-card {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 12px 5px;
  background: #ffffffd9;
  border: 1px solid #e5e8ea;
  border-radius: 15px;
  box-shadow: 0 6px 20px #1b304210;
  transition: transform .3s,border-color .3s,box-shadow .3s;
}

.smart-card::before {
  content: "";
  position: absolute;
  bottom: 100%;
  height: var(--card-gap);
  left: 50%;
  border-left: 2px dashed #c9b376;
}

.smart-card strong {
  font-size: clamp(10px,1.35vw,15px);
  overflow-wrap: anywhere;
}

.smart-card small {
  font-size: clamp(9px,1vw,11px);
  color: #667588;
  overflow-wrap: anywhere;
}

.smart-schematic {
  width: 76px;
  max-width: 100%;
  height: 62px;
  overflow: visible;
  fill: none;
  stroke: #b67b1b;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 5px #bd923b22);
  transition: transform .35s, filter .35s;
}

.smart-schematic .shape {
  fill: #f8e5b9;
  stroke-width: 1.8;
}

.smart-schematic .accent {
  fill: #efb74b;
  stroke: #bd821e;
  stroke-width: 1.5;
}

.smart-step.is-active .smart-schematic,
.smart-step:focus-visible .smart-schematic {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 5px 9px #d9a33c66);
}

.smart-process.is-animated .smart-step.is-active .smart-schematic .pulse {
  animation: smart-schematic-pulse 1.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.smart-step.is-active .smart-card,.smart-step:focus-visible .smart-card {
  transform: translateY(-4px);
  border-color: #ecc06e;
  box-shadow: 0 14px 26px #ae812625;
}

.smart-step:focus-visible {
  outline: 2px solid #9f751c;
  outline-offset: 6px;
  border-radius: 13px;
}

.smart-process.is-animated .smart-beam::before {
  animation: smart-beam-move var(--period) linear infinite;
}

.smart-process.is-paused .smart-beam::before {
  animation-play-state: paused;
}

.smart-process h2 {
  margin: 0 0 24px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

@keyframes smart-beam-move {
  from { right: -20%; }
  to { right: 100%; }
}

@keyframes smart-schematic-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .58; transform: scale(1.12); }
}

@media (max-width: 550px) {
  .smart-process {
    padding: 18px 10px 22px;
    border-radius: 15px;
  }

  .smart-steps {
    --step-gap: 5px;
    --number-size: 41px;
  }

  .smart-number {
    border-radius: 13px;
    font-size: 18px;
  }

  .smart-card {
    min-height: 132px;
    gap: 5px;
    padding: 7px 3px;
  }

  .smart-schematic {
    width: 53px;
    height: 49px;
  }

  .smart-card strong,
  .smart-card small {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-process.is-animated .smart-beam::before,
  .smart-process.is-animated .smart-step.is-active .smart-schematic .pulse {
    animation: none;
  }

  .smart-number,
  .smart-card,
  .smart-schematic { transition: none; }
}
