.flow-teaser {
  margin: auto 0;
  max-width: 640px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.flow-teaser:hover {
  border-color: #00eaff;
}

.teaser-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 6px;
}

.teaser-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.teaser-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.teaser-link {
  font-size: 0.85rem;
  color: #00eaff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-arch {
  padding: 72px 0;
  background: radial-gradient(circle at top, rgba(0,234,255,0.08), transparent 55%);
}

.flow-arch h2 {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-intro {
  margin-top: 8px;
  max-width: 640px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.flow-diagram {
  margin-top: 32px;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 12px;
  padding: 20px 20px 28px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
  position: relative;
  overflow: hidden;
}

/* Host */

.flow-node {
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
  min-width: 200px;
}

.flow-node h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.flow-node p {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.4;
}

.flow-node.host {
  margin: 0 auto 16px;
  text-align: center;
  border-style: dashed;
  border-color: rgba(248,113,113,0.6);
}

/* NO ACCESS label */

.flow-label.no-access {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f97373;
  margin-bottom: 12px;
  position: relative;
}

.flow-label.no-access::after {
  content: "X";
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
}

/* Isolation net */

.flow-net {
  border-radius: 10px;
  border: 1px solid rgba(56,189,248,0.45);
  padding: 16px 14px 18px;
  position: relative;
  background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
}

.flow-net-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 14px;
}

/* Row */

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

/* Connectors */

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-line {
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56,189,248,0.1), #38bdf8, rgba(56,189,248,0.1));
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  width: 40%;
  height: 100%;
  background: #e5e7eb;
  opacity: 0.7;
  animation: flow-pulse 1.8s infinite linear;
}

/* Node accents */

.flow-node.infra {
  border-color: rgba(56,189,248,0.7);
}

.flow-node.windows {
  border-color: rgba(251,191,36,0.7);
}

.flow-node.sandbox {
  border-color: rgba(129,230,217,0.7);
}

.os-meta {
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(148,163,184,0.55); /* subtle slate tone */
  border-top: 1px solid rgba(148,163,184,0.15);
  padding-top: 4px;
}

.flow-node:hover .os-meta {
  color: rgba(148,163,184,0.75);
}

/* OS icons */
.os-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  opacity: 0.65;
  margin-bottom: 4px;
}

/* Linux (Tux silhouette) */
.linux-icon {
  background: no-repeat center/contain;
  mask-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2c-1.7 0-3 1.3-3 3v2c0 .6-.4 1-1 1-.6 0-1-.4-1-1V5c0-2.8 2.2-5 5-5s5 2.2 5 5v2c0 .6-.4 1-1 1-.6 0-1-.4-1-1V5c0-1.7-1.3-3-3-3zm-4 8c-1.7 0-3 1.3-3 3v4c0 2.8 2.2 5 5 5h6c2.8 0 5-2.2 5-5v-4c0-1.7-1.3-3-3-3H8z"/></svg>');
  mask-size: contain;
  background-color: #e5e7eb;
}

/* Windows (four-pane window) */
.windows-icon {
  background: no-repeat center/contain;
  mask-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3 4l8-1.5v9L3 11V4zm0 10l8 1.5v9L3 20v-6zm10-11.7L21 2v9l-8 1V2.3zM21 13v9l-8 1v-9l8-1z"/></svg>');
  mask-size: contain;
  background-color: #e5e7eb;
}

/* Legend styling */
.os-legend {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: rgba(148,163,184,0.6);
  letter-spacing: 0.04em;
}

.os-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* Animated scanline overlay */

.flow-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(15,23,42,0.2) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: scanline 6s linear infinite;
}

.section-divider {
  text-align: center;
  margin: 48px 0 24px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  opacity: 0.6;
}


/* Animations */

@keyframes flow-pulse {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

/* Responsive */

@media (max-width: 768px) {
  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-connector {
    transform: rotate(90deg);
  }

  .flow-line {
    width: 32px;
  }

  .flow-diagram {
    padding: 16px;
  }
}
