
.platform-section {
  position: relative;
  padding: calc(var(--spacing-2xl) + 1rem) 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(229, 62, 62, 0.12), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(229, 62, 62, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.platform-section .container {
  display: grid;
  gap: 2rem;
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 1.75rem;
  align-items: start;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.1);
  color: #ffd7d7;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.platform-copy h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.platform-subtitle {
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.platform-copy > p:last-of-type {
  max-width: 62ch;
}

.platform-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.platform-feature-card,
.platform-plan-card,
.dashboard-shell,
.platform-stack,
.platform-final-cta {
  background: linear-gradient(180deg, rgba(25, 25, 27, 0.96), rgba(18, 18, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.platform-feature-card {
  position: relative;
  padding: 1.25rem 1.2rem 1.15rem;
  min-height: 162px;
  overflow: hidden;
}

.platform-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 1), rgba(239, 68, 68, 0));
}

.platform-feature-card h3 {
  font-size: 1.04rem;
  margin-bottom: 0.55rem;
  color: #fff;
}

.platform-feature-card p,
.platform-plan-card li,
.platform-stack p,
.platform-final-cta p,
.dashboard-shell p {
  color: #d0d4dd;
  line-height: 1.65;
}

.platform-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.platform-dashboard {
  min-width: 0;
}

.dashboard-shell {
  padding: 1.4rem;
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.dashboard-shell::before,
.dashboard-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dashboard-shell::before {
  inset: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), transparent 25%, transparent 70%, rgba(59, 130, 246, 0.04));
}

.dashboard-shell::after {
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15), transparent 72%);
}

.dashboard-header,
.platform-stack,
.platform-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
}

.dashboard-header {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.dashboard-header h3,
.platform-stack h3,
.platform-final-cta h3 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.dashboard-live {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffe4e4;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.26);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
}

.dashboard-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.dashboard-kpi,
.dashboard-panel {
  background: rgba(12, 12, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.dashboard-kpi {
  padding: 1rem 1.05rem;
}

.dashboard-kpi strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.28rem;
}

.dashboard-kpi span,
.dashboard-panel__title,
.cpu-chart__labels,
.alerts-list li,
.platform-plan-card__pill,
.platform-stack-list li {
  font-size: 0.92rem;
}

.dashboard-kpi span,
.cpu-chart__labels,
.alerts-list li {
  color: #c4c9d3;
}

.dashboard-visuals {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.9rem;
}

.dashboard-panel {
  padding: 1rem;
}

.dashboard-panel__title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.cpu-chart {
  position: relative;
}

.cpu-chart__grid {
  position: absolute;
  inset: 0 0 28px 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 28px, 25% 100%;
  border-radius: 0.8rem;
}

.cpu-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.cpu-chart__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.sla-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 1rem;
}

.sla-donut {
  position: relative;
  width: 140px;
  height: 140px;
}

.sla-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sla-donut circle {
  fill: none;
  stroke-width: 3.2;
}

.sla-donut__bg { stroke: rgba(255,255,255,0.08); }
.sla-donut__resolved { stroke: #22c55e; }
.sla-donut__progress { stroke: #f59e0b; }
.sla-donut__open { stroke: #ef4444; }

.sla-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.sla-legend {
  width: 100%;
  display: grid;
  gap: 0.55rem;
}

.sla-legend div,
.platform-stack-list li,
.platform-plan-card li,
.alerts-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dot,
.alert-status,
.platform-plan-card li::before,
.platform-stack-list li::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dot-resolved,
.alert-status--success {
  background: #22c55e;
}

.dot-progress,
.alert-status--warning {
  background: #f59e0b;
}

.dot-open,
.alert-status--critical {
  background: #ef4444;
}

.dashboard-panel--alerts {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
}

.alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.alerts-list li {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-plans {
  display: grid;
  gap: 1.1rem;
}

.platform-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.platform-plan-card {
  padding: 1.25rem;
  min-height: 100%;
}

.platform-plan-card__header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.platform-plan-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
}

.platform-plan-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
}

.platform-plan-card ul,
.platform-stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.platform-plan-card li::before,
.platform-stack-list li::before {
  content: "";
  background: linear-gradient(135deg, #ef4444, #fb7185);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.platform-plan-card--featured {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 24px 70px rgba(239, 68, 68, 0.12);
}

.platform-plan-card--featured .platform-plan-card__pill {
  background: rgba(239, 68, 68, 0.16);
}

.platform-stack {
  align-items: center;
  padding: 1.4rem;
}

.platform-stack-copy {
  max-width: 640px;
}

.platform-stack-list {
  min-width: min(420px, 100%);
}

.platform-final-cta {
  align-items: center;
  padding: 1.45rem 1.5rem;
  margin-top: 0.25rem;
}

.platform-final-cta__copy {
  max-width: 700px;
}

@media (max-width: 1100px) {
  .platform-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    position: relative;
    top: auto;
  }

  .platform-plan-grid {
    grid-template-columns: 1fr;
  }

  .platform-stack,
  .platform-final-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .platform-section {
    padding: var(--spacing-2xl) 0;
  }

  .platform-feature-grid,
  .dashboard-kpis,
  .dashboard-visuals {
    grid-template-columns: 1fr;
  }

  .platform-feature-card {
    min-height: auto;
  }

  .dashboard-shell,
  .platform-plan-card,
  .platform-stack,
  .platform-final-cta {
    padding: 1.15rem;
  }

  .platform-copy h2 {
    font-size: 1.75rem;
  }

  .platform-subtitle {
    font-size: 1.04rem;
  }

  .sla-chart {
    min-height: 200px;
  }
}
