/* ==========================================================================
   VYGOTANIUM CLOUD — premium hosting showcase
   Deliberately built by *reusing* the intel-panel / ml-network / monitor /
   predictive components already shipping in ai-console.css, rather than
   inventing a parallel visual language — so it reads as one more room in
   the same building, not a bolted-on marketing widget. Only two things are
   genuinely new here: the capability grid, and the deployment pipeline.
   ========================================================================== */

.cloud-section { padding: var(--space-7) 0; }

/* ---- capability grid ---------------------------------------------------- */

.cloud-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: var(--space-4);
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 640px) { .cloud-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cloud-features-grid { grid-template-columns: repeat(3, 1fr); } }

.cloud-feature-card {
  background: var(--graphite);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s var(--ease-out);
}

.cloud-feature-card:hover { background: var(--graphite-2); }

.cloud-feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(95, 212, 216, 0.08);
  color: var(--cyan);
  flex-shrink: 0;
}
.cloud-feature-icon svg { width: 18px; height: 18px; }

.cloud-feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cloud-feature-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--silver);
}

/* ---- dashboard row: topology / health / uptime -------------------------- */

.cloud-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

@media (min-width: 1024px) {
  .cloud-dashboard { grid-template-columns: 1.2fr 0.9fr 0.9fr; align-items: stretch; }
}

.cloud-dashboard .intel-panel { display: flex; flex-direction: column; }

/* topology caption reuses .ml-network-caption; give the panel a touch more
   height so a wider node graph doesn't feel cramped */
.cloud-topology .ml-network-canvas { min-height: 180px; }

/* uptime panel: a single oversized predictive-card living inside a panel,
   rather than the 3-card stack used on the intelligence layer */
.cloud-uptime-card {
  border: none;
  padding: 0;
  background: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cloud-uptime-card:hover { background: none; }
.cloud-uptime-card .predictive-value { font-size: 34px; }
.cloud-uptime-card .predictive-sparkline { height: 46px; }

/* ---- deployment pipeline -------------------------------------------------- */

.cloud-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
}

.cloud-pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  text-align: center;
}

.cloud-pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  background: var(--hairline);
}

.cloud-pipeline-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--ink-raised);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.cloud-pipeline-node svg { width: 12px; height: 12px; color: var(--silver-dim); transition: color 0.3s var(--ease-out); }

.cloud-pipeline-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition: color 0.3s var(--ease-out);
}

.cloud-pipeline-step.active .cloud-pipeline-node {
  border-color: var(--cyan);
  background: rgba(95, 212, 216, 0.10);
  box-shadow: 0 0 0 4px rgba(95, 212, 216, 0.08);
}
.cloud-pipeline-step.active .cloud-pipeline-node svg { color: var(--cyan); }
.cloud-pipeline-step.active .cloud-pipeline-label { color: var(--cyan); }

.cloud-pipeline-step.done .cloud-pipeline-node { border-color: var(--hairline); background: rgba(255,255,255,0.04); }
.cloud-pipeline-step.done .cloud-pipeline-node svg { color: var(--silver); }
.cloud-pipeline-step.done .cloud-pipeline-label { color: var(--silver); }

@media (prefers-reduced-motion: reduce) {
  .cloud-pipeline-step, .cloud-pipeline-node, .cloud-pipeline-label { transition: none; }
}
