/* ==========================================================================
   RainNivoo B2B & OEM - Industrial & Architecture Visual Styles
   ========================================================================== */

/* Architecture Diagram Container */
.system-diagram {
  background: linear-gradient(135deg, #0b192c 0%, #10263e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(11, 25, 44, 0.4);
  position: relative;
  overflow: hidden;
}

/* System Flow Nodes */
.flow-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.flow-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
}

.flow-line {
  width: 48px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #38bdf8, #38bdf8 6px, transparent 6px, transparent 12px);
  animation: cablePulse 2s linear infinite;
}

@keyframes cablePulse {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

/* Tank Cutaway in B2B Hero */
.b2b-tank-visual {
  height: 190px;
  background: #07111e;
  border: 2px solid #334155;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
}

.b2b-water-fill {
  width: 100%;
  height: 70%;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  position: relative;
  transition: height 0.4s ease;
}

.b2b-water-surface {
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.b2b-sensor-probe {
  position: absolute;
  bottom: 8px;
  right: 18px;
  width: 14px;
  height: 26px;
  background: #cbd5e1;
  border: 1px solid #ffffff;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.b2b-sensor-cable {
  position: absolute;
  top: 0;
  right: 24px;
  width: 2px;
  height: calc(100% - 30px);
  background: #94a3b8;
  border-left: 1px dashed #38bdf8;
  z-index: 4;
}

/* Gateway Node */
.gateway-visual {
  background: #0f172a;
  border: 1px solid #0284c7;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.led-status {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Range slider in demo */
.b2b-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: #1e293b;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.b2b-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 10px #38bdf8;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .flow-chain {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .flow-connector {
    transform: rotate(90deg);
  }
}
