/* Solution / pipeline — full-viewport Damito density */

.slide.cine.solution { overflow: hidden; }

.solution-layout {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: var(--content-top) var(--pad) calc(28px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vh, 22px);
}

.solution-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 20px;
  align-items: end;
}
.solution-head .kicker {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.solution-head h2 {
  margin: 0 0 10px;
  max-width: 14em;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.solution-head .lede {
  margin: 0;
  max-width: 42em;
  color: rgba(230, 236, 232, .78);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  font-weight: 550;
}
.solution-head .play-btn {
  margin: 0;
  align-self: end;
  justify-self: end;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(240,195,93,.35),
    0 0 28px rgba(232,162,58,.4),
    0 12px 28px rgba(0,0,0,.35);
}

/* --- full-height flow stage --- */
.flow-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(600px 280px at 50% 40%, rgba(47,138,78,.16), transparent 65%),
    linear-gradient(165deg, rgba(12, 28, 20, .72), rgba(4, 12, 8, .55));
  box-shadow:
    0 28px 60px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  padding: clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(160px, .85fr) minmax(220px, 1.15fr) minmax(220px, 1.2fr);
  gap: clamp(12px, 1.8vw, 24px);
  align-items: stretch;
  overflow: hidden;
}
@keyframes dashMove {
  to { stroke-dashoffset: -180; }
}
.flow-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.flow-wires path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-wires .wire-base {
  stroke: rgba(255,255,255,.14);
  stroke-width: 1.5;
}
.flow-wires .wire-in {
  stroke: rgba(125,206,160,.55);
  stroke-width: 2;
  stroke-dasharray: 5 8;
  filter: drop-shadow(0 0 4px rgba(47,138,78,.45));
}
.flow-wires .wire-out {
  stroke-width: 2.2;
  stroke-dasharray: 4 7;
  filter: drop-shadow(0 0 5px rgba(240,195,93,.35));
}
.flow-wires .wire-out.o0 { stroke: rgba(125,206,160,.75); }
.flow-wires .wire-out.o1 { stroke: rgba(240,195,93,.8); }
.flow-wires .wire-out.o2 { stroke: rgba(248,113,113,.7); }
.flow-wires .wire-out.o3 { stroke: rgba(96,165,250,.75); }
.flow-packets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.flow-col,
.flow-hub {
  position: relative;
  z-index: 2;
}
.flow-packet {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 4px;
  background: #f0c35d;
  box-shadow: 0 0 16px rgba(240,195,93,.95), 0 0 6px #fff;
  opacity: 0;
  will-change: transform, opacity;
}
.flow-packet.in { background: #7dcea0; box-shadow: 0 0 12px rgba(125,206,160,.85); border-radius: 50%; }
.flow-packet.out0 { background: #7dcea0; box-shadow: 0 0 12px rgba(125,206,160,.85); }
.flow-packet.out1 { background: #f0c35d; box-shadow: 0 0 12px rgba(240,195,93,.85); }
.flow-packet.out2 { background: #f87171; box-shadow: 0 0 12px rgba(248,113,113,.85); }
.flow-packet.out3 { background: #60a5fa; box-shadow: 0 0 12px rgba(96,165,250,.85); }
.flow-node {
  transition: border-color .5s ease, background .5s ease, box-shadow .5s ease;
}
.flow-node.is-sending {
  border-color: rgba(125,206,160,.35);
  background: rgba(47,138,78,.16);
  box-shadow: 0 0 18px rgba(47,138,78,.18);
}
.flow-node.is-sending .mark {
  box-shadow: 0 0 12px rgba(74,222,128,.35);
}
.flow-node.is-sending .pulse {
  box-shadow: 0 0 10px rgba(74,222,128,.55);
}

.flow-hub {
  transition: border-color .5s ease, box-shadow .5s ease;
}
.flow-hub.is-active {
  border-color: rgba(240,195,93,.4);
  box-shadow:
    0 0 28px rgba(232,162,58,.16),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.flow-out {
  transition: border-color .5s ease, background .5s ease, box-shadow .5s ease;
}
.flow-out.is-receiving {
  border-color: rgba(240,195,93,.32);
  background: rgba(240,195,93,.07);
  box-shadow: 0 0 16px rgba(232,162,58,.12);
}

.flow-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: stretch;
  min-height: 0;
}
.flow-col.sources { grid-template-rows: auto repeat(5, 1fr); }
.flow-col.outputs { grid-template-rows: auto repeat(4, 1fr); }
.flow-label {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 800;
}

.flow-node {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  min-height: 0;
}
.flow-node .mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(47,138,78,.35);
  border: 1px solid rgba(47,138,78,.35);
  color: #dff5e7;
  box-shadow: 0 0 16px rgba(47,138,78,.2);
}
.flow-node > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.flow-node strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.flow-node em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 650;
  line-height: 1.2;
}
.flow-node .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74,222,128,.8);
  animation: blink 1.6s ease-in-out infinite;
}

.flow-hub {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(240,195,93,.4);
  background:
    radial-gradient(280px 180px at 50% 30%, rgba(240,195,93,.2), transparent 60%),
    linear-gradient(180deg, rgba(36, 64, 44, .9), rgba(10, 24, 16, .88));
  box-shadow:
    0 0 40px rgba(232,162,58,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
  padding: 22px 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
  min-height: 0;
}
.flow-hub .hub-ico {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff1c2, #e8a23a 55%, #c96f12);
  color: #1a1408;
  box-shadow: 0 0 28px rgba(232,162,58,.45);
}
.flow-hub .hub-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-hub strong {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.flow-hub > span {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  max-width: 16em;
  line-height: 1.4;
}
.hub-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.hub-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.hub-dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.hub-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
.hub-dots i:nth-child(1) { background: #2f8a4e; box-shadow: 0 0 10px rgba(47,138,78,.7); }
.hub-dots i:nth-child(2) { background: #e8a23a; box-shadow: 0 0 10px rgba(232,162,58,.7); animation-delay: .2s; }
.hub-dots i:nth-child(3) { background: #60a5fa; box-shadow: 0 0 10px rgba(96,165,250,.7); animation-delay: .4s; }

.flow-out {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  min-height: 0;
}
.flow-out header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.flow-out h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 800;
}
.flow-out .val {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -.03em;
  color: #f0c35d;
}
.flow-out .bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
  align-self: end;
}
.flow-out .bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8a4e, #f0c35d);
  box-shadow: 0 0 12px rgba(240,195,93,.35);
}
.flow-out p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 650;
  line-height: 1.3;
}

.solution-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2px;
}
.solution-foot article {
  padding: 10px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.solution-foot article:last-child { border-right: 0; }
.solution-foot b {
  display: block;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.03em;
  margin-bottom: 2px;
}
.solution-foot span {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 650;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .slide.cine.solution { overflow: visible; }
  .solution-layout {
    grid-template-rows: auto auto auto;
    overflow: visible;
    height: auto;
    min-height: 0;
    padding-top: var(--content-top);
    align-content: start;
  }
  .solution-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .solution-head h2 { font-size: clamp(28px, 7vw, 36px); }
  .solution-head .play-btn { justify-self: start; }
  .flow-wires,
  .flow-packets { display: none !important; }
  .flow-stage {
    grid-template-columns: 1fr;
    height: auto;
    gap: 12px;
    padding: 12px;
  }
  .flow-hub::before,
  .flow-hub::after { display: none; }
  .flow-col.sources,
  .flow-col.outputs { grid-template-rows: auto; }
  .flow-node { min-height: 52px; }
  .solution-foot { grid-template-columns: 1fr 1fr; }
  .solution-foot article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 4px;
  }
}

@media (max-width: 560px) {
  .solution-foot { grid-template-columns: 1fr; }
}
