.capability__stage {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(40, 70, 130, 0.18), transparent 65%),
    linear-gradient(145deg, rgba(8, 12, 28, 0.98), rgba(2, 2, 8, 0.98));
  overflow: visible;
  padding: clamp(0.85rem, 2vw, 1.35rem);
}

.capability__stage::before {
  display: none;
}

.capability__placeholder {
  display: none;
}

.flow-module {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 640 / 280;
}

.flow-module--app {
  max-width: 600px;
  aspect-ratio: 640 / 280;
}

.flow-module--n8n {
  max-width: 600px;
  aspect-ratio: 640 / 300;
}

.flow-port,
.n8n-node__port {
  fill: #0b1220;
  stroke: #b7d4ff;
  stroke-width: 1.6;
}

.flow-port--dark {
  fill: #0b1220;
  stroke: #3b4a6a;
}

.flow-module__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow-terminal {
  filter: drop-shadow(0 0 10px rgba(150, 200, 255, 0.35));
}

.flow-terminal__box {
  fill: #b7d4ff;
  stroke: rgba(210, 230, 255, 0.9);
  stroke-width: 1;
}

.flow-terminal__label {
  fill: #0a1020;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.flow-node__shell {
  fill: rgba(6, 10, 22, 0.55);
  stroke: #7eb0ff;
  stroke-width: 1.5;
  stroke-opacity: 1;
}

.flow-node__label {
  fill: #b9d4ff;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-path--dashed {
  stroke: #8eb8ff;
  stroke-width: 1.75;
  stroke-dasharray: 3 7;
  opacity: 0.9;
}

.flow-path--solid {
  stroke: #6ea4ff;
  stroke-width: 1.6;
  opacity: 0.85;
}

.flow-path--pipe {
  stroke: #9ec5ff;
  stroke-width: 1.7;
  opacity: 0.9;
}

.flow-packet {
  fill: #f4f8ff;
  filter: drop-shadow(0 0 6px rgba(200, 225, 255, 0.95));
}

.flow-packet--accent {
  fill: #9ec5ff;
  filter: drop-shadow(0 0 7px rgba(120, 180, 255, 0.95));
}

.flow-packet--soft {
  fill: #d7e8ff;
  filter: drop-shadow(0 0 5px rgba(160, 200, 255, 0.8));
}

/* Android / app pipeline */
.app-chip__box {
  fill: rgba(10, 16, 32, 0.88);
  stroke: rgba(150, 190, 255, 0.35);
  stroke-width: 1.2;
}

.app-chip__box--accent {
  fill: #b7d4ff;
  stroke: rgba(220, 235, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(150, 200, 255, 0.35));
}

.app-chip__title {
  fill: #e8f0ff;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.app-chip__sub {
  fill: rgba(180, 205, 240, 0.7);
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
}

.app-chip__title--dark {
  fill: #0a1020;
}

.app-chip__sub--dark {
  fill: rgba(20, 30, 50, 0.7);
}

.app-chip__dot {
  stroke: rgba(8, 12, 24, 0.5);
  stroke-width: 1;
}

.app-chip__dot--ui { fill: #7dd3fc; }
.app-chip__dot--expo { fill: #a5b4fc; }
.app-chip__dot--build { fill: #86efac; }
.app-chip__dot--qa { fill: #fcd34d; }

.app-phone__body {
  fill: #0b1224;
  stroke: #8eb8ff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 14px rgba(100, 160, 255, 0.28));
}

.app-phone__screen {
  fill: #121a33;
}

.app-phone__bar {
  fill: rgba(180, 200, 240, 0.35);
}

.app-phone__card {
  fill: rgba(158, 197, 255, 0.28);
}

.app-phone__card--dim {
  fill: rgba(158, 197, 255, 0.12);
}

.app-phone__home {
  fill: rgba(180, 210, 255, 0.35);
  stroke: rgba(180, 210, 255, 0.55);
  stroke-width: 1;
}

.app-phone__badge {
  fill: #b7d4ff;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* n8n-style automation */
.n8n-node__card {
  fill: rgba(12, 18, 34, 0.92);
  stroke: rgba(150, 190, 255, 0.28);
  stroke-width: 1.2;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.n8n-node__stripe--trigger { fill: #f59e0b; }
.n8n-node__stripe--logic { fill: #60a5fa; }
.n8n-node__stripe--http { fill: #34d399; }
.n8n-node__stripe--data { fill: #a78bfa; }
.n8n-node__stripe--notify { fill: #fb7185; }

.n8n-node__icon--trigger { fill: rgba(245, 158, 11, 0.35); stroke: #fbbf24; stroke-width: 1.2; }
.n8n-node__icon--logic { fill: rgba(96, 165, 250, 0.3); stroke: #93c5fd; stroke-width: 1.2; }
.n8n-node__icon--http { fill: rgba(52, 211, 153, 0.3); stroke: #6ee7b7; stroke-width: 1.2; }
.n8n-node__icon--data { fill: rgba(167, 139, 250, 0.3); stroke: #c4b5fd; stroke-width: 1.2; }
.n8n-node__icon--notify { fill: rgba(251, 113, 133, 0.3); stroke: #fda4af; stroke-width: 1.2; }

.n8n-node__title {
  fill: #eaf1ff;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  dominant-baseline: middle;
}

.n8n-node__sub {
  fill: rgba(180, 200, 235, 0.65);
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  dominant-baseline: middle;
}


@media (max-width: 600px) {
  .flow-terminal__label,
  .app-chip__title,
  .n8n-node__title {
    font-size: 11px;
  }

  .app-chip__sub,
  .n8n-node__sub {
    font-size: 9px;
  }

  .capability__stage {
    min-height: clamp(200px, 52vw, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-packet {
    opacity: 0.85;
  }
}
