/* =========================================================
   Deep Breath Clinical Decision Support — product page
   Accent: purple (#7c5cfc) / violet family
   Extends styles.css
   ========================================================= */

.page-cds {
  --accent: #7c5cfc;
  --accent-soft: #a78bfa;
  --accent-dim: rgba(124, 92, 252, 0.14);
}

.page-cds .site-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 65%, transparent 100%);
}

.page-cds .btn-outline {
  border-color: rgba(86, 204, 242, 0.45);
}

.page-cds .btn-outline:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 1px rgba(124, 92, 252, 0.18);
}

.page-cds .btn-gradient {
  background-image:
    linear-gradient(#0a0a0a, #0a0a0a),
    linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
}

.page-cds .btn-gradient:hover {
  box-shadow: 0 0 26px rgba(124, 92, 252, 0.28);
}

.page-cds .btn-gradient .arrow {
  color: #a78bfa;
}

/* ---------- HERO ---------- */
.cds-hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 78% 42%, rgba(124, 92, 252, 0.1), transparent 55%),
    radial-gradient(700px 420px at 70% 55%, rgba(86, 204, 242, 0.06), transparent 50%),
    #000;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cds-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.75rem) 1.5rem;
  display: grid;
  /* Room for a larger right-side video; copy stays on the left */
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.55fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 0;
}

/* Left copy */
.cds-hero-copy {
  max-width: 560px;
}

.cds-title {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 1.35rem;
}

.cds-grad {
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 45%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cds-lead {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.85rem;
}

.cds-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cds-btn-main {
  font-size: 0.98rem;
}

/* Right: product UI video — left edge anchored, grows right + down */
.cds-hero-visual {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 100%;
  display: flex;
  align-items: center;
  /* Keep left border of the shot where the visual column starts */
  justify-content: flex-start;
  overflow: visible;
}

.cds-hero-shot {
  position: relative;
  /* +25% on previous 1080 → 1350 wide; left edge fixed, grows right (8:5 → ~844 tall) */
  width: min(1350px, 100%);
  max-width: 1350px;
  flex-shrink: 0;
  aspect-ratio: 8 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: #0b1018;
  box-shadow:
    0 0 0 1px rgba(86, 204, 242, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(124, 92, 252, 0.12);
}

.cds-hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
  background: linear-gradient(
    120deg,
    rgba(86, 204, 242, 0.04) 0%,
    transparent 35%,
    transparent 65%,
    rgba(242, 86, 236, 0.05) 100%
  );
}

.cds-hero-video {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0b1018;
}

/* Hero footer strip */
.cds-hero-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.15rem clamp(1.25rem, 4vw, 2.75rem) 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cds-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 28rem;
}

.cds-trust-icon {
  color: var(--accent-soft);
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
}

.cds-trust-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.cds-trust p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
  margin: 0;
}

.cds-disclaimer {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(161, 161, 170, 0.75);
  text-align: right;
  max-width: 16rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .cds-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .cds-hero-copy {
    max-width: 40rem;
  }

  .cds-hero-visual {
    min-height: 0;
    justify-content: center;
  }

  .cds-hero-shot {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .cds-hero-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .cds-disclaimer {
    text-align: left;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    max-width: none;
  }

  .cds-title {
    font-size: clamp(2.1rem, 9vw, 2.85rem);
  }
}

/* =========================================================
   Screens 2→3 — noise → support (scroll morph)
   Dots transform from waveforms into recommendation text
   ========================================================= */
.cds-story {
  --story-t: 0; /* 0 = noise light, 1 = support dark */
  position: relative;
  height: 320vh;
}

.cds-story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cds-story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      900px 480px at 78% 40%,
      rgba(
        calc(124 + (86 - 124) * var(--story-t)),
        calc(92 + (204 - 92) * var(--story-t)),
        calc(252 + (242 - 252) * var(--story-t)),
        calc(0.06 + var(--story-t) * 0.1)
      ),
      transparent 55%
    ),
    radial-gradient(
      700px 400px at 20% 70%,
      rgba(242, 86, 236, calc(0.04 + var(--story-t) * 0.08)),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgb(
        calc(244 + (0 - 244) * var(--story-t)),
        calc(247 + (0 - 247) * var(--story-t)),
        calc(251 + (0 - 251) * var(--story-t))
      ) 0%,
      rgb(
        calc(236 + (8 - 236) * var(--story-t)),
        calc(242 + (10 - 242) * var(--story-t)),
        calc(255 + (18 - 255) * var(--story-t))
      ) 100%
    );
}

.cds-story-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  height: min(720px, calc(100vh - 4rem));
}

.cds-story-copy {
  position: relative;
  min-height: 28rem;
  max-width: 32rem;
}

.cds-story-layer {
  transition: none;
  will-change: opacity;
}

.cds-story-layer--noise {
  position: relative;
  opacity: 1;
}

.cds-story-layer--support {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Noise copy (light) */
.cds-noise-title {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #0f172a;
  margin-bottom: 1.1rem;
}

.cds-noise-grad {
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cds-noise-lead {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.cds-noise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cds-noise-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.cds-noise-ico {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #7c5cfc;
  background: rgba(124, 92, 252, 0.1);
}

.cds-noise-ico .icon {
  width: 18px;
  height: 18px;
}

/* Support copy (dark) */
.cds-support-title {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.1rem;
}

.cds-support-grad {
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cds-support-lead {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.cds-support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cds-support-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.cds-support-ico {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #a78bfa;
  background: rgba(124, 92, 252, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.cds-support-ico .icon {
  width: 18px;
  height: 18px;
}

/* Right: panel with canvas (check dots) + normal HTML text */
.cds-story-viz {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 640px;
}

.cds-support-panel {
  --story-t: 0;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
}

.cds-support-panel canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Recommendation — normal type (not particles) */
.cds-support-msg {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  z-index: 2;
  text-align: center;
  opacity: 0;
  pointer-events: none; /* enabled by JS when morph complete */
  transition: none;
  will-change: opacity, transform;
}

.cds-support-msg-title {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cds-support-msg-rule {
  width: 3.25rem;
  height: 3px;
  margin: 0 auto 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #56ccf2, #f256ec);
}

.cds-support-msg-body {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f256ec;
  margin: 0 0 0.65rem;
}

.cds-support-msg-action {
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(242, 86, 236, 0.88);
  margin: 0;
}

.cds-support-protocol {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #a78bfa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(167, 139, 250, 0.55);
}

.cds-support-protocol:hover {
  color: #c4b5fd;
  text-decoration-color: rgba(196, 181, 253, 0.85);
}

.cds-support-protocol:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .cds-story-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    height: auto;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    align-content: center;
  }

  .cds-story-copy {
    min-height: 0;
    max-width: none;
  }

  .cds-story-viz,
  .cds-support-panel {
    min-height: 280px;
    height: 38vh;
    max-height: 360px;
  }

  .cds-support-msg-title {
    font-size: 1.25rem;
  }

  .cds-support-msg-body {
    font-size: 1rem;
  }

  .cds-noise-title,
  .cds-support-title {
    font-size: clamp(1.55rem, 5vw, 2.1rem);
  }

  .cds-noise-lead,
  .cds-support-lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .cds-noise-item,
  .cds-support-item {
    font-size: 0.88rem;
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 640px) {
  .cds-story-sticky {
    min-height: 100vh;
  }

  .cds-story-viz,
  .cds-support-panel {
    min-height: 240px;
    height: 32vh;
  }
}

/* =========================================================
   Continuous clinical improvement (dark, centered)
   ========================================================= */
.cds-improve {
  position: relative;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(124, 92, 252, 0.1), transparent 55%),
    radial-gradient(700px 380px at 50% 100%, rgba(242, 86, 236, 0.06), transparent 50%),
    #000;
  padding: clamp(4.5rem, 10vh, 6.5rem) 0 clamp(3.5rem, 8vh, 5rem);
  overflow: hidden;
}

.cds-improve-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
  text-align: center;
}

.cds-improve-title {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.5rem;
}

.cds-improve-grad {
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cds-improve-copy {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cds-improve-copy p {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.cds-improve-badge {
  display: inline-flex;
  margin: 0 auto 2.25rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%) border-box;
  border: 1.5px solid transparent;
}

.cds-improve-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bottom feature bar */
.cds-improve-bar {
  list-style: none;
  margin: 0 auto;
  padding: 1.15rem 0.75rem;
  width: min(1000px, 100%);
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cds-improve-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.cds-improve-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cds-improve-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #a78bfa;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 0 0 1px rgba(86, 204, 242, 0.08);
}

.cds-improve-ico .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .cds-improve-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0;
    padding: 0.85rem;
  }

  .cds-improve-item:not(:last-child)::after {
    display: none;
  }

  .cds-improve-item {
    justify-content: flex-start;
    padding: 0.75rem;
  }
}

@media (max-width: 520px) {
  .cds-improve-bar {
    grid-template-columns: 1fr;
  }

  .cds-improve-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
}

/* =========================================================
   AI integration & continuous monitoring
   ========================================================= */
.cds-ai {
  position: relative;
  background:
    radial-gradient(800px 500px at 55% 45%, rgba(124, 92, 252, 0.12), transparent 55%),
    radial-gradient(600px 400px at 75% 30%, rgba(86, 204, 242, 0.06), transparent 50%),
    radial-gradient(500px 360px at 70% 70%, rgba(242, 86, 236, 0.06), transparent 50%),
    #000;
  padding: clamp(4rem, 9vh, 6rem) 0;
  overflow: hidden;
}

.cds-ai-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns:
    minmax(260px, 0.95fr)
    minmax(200px, 0.85fr)
    minmax(300px, 1.05fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
  align-items: center;
}

/* ---- Left copy ---- */
.cds-ai-copy {
  max-width: 28rem;
}

.cds-ai-title {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
}

.cds-ai-grad {
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cds-ai-lead {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.95rem;
}

.cds-ai-points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cds-ai-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.cds-ai-point-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #a78bfa;
  background: rgba(124, 92, 252, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.cds-ai-point-ico .icon {
  width: 16px;
  height: 16px;
}

/* ---- Center diagram ---- */
.cds-ai-diagram {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.15rem;
  min-height: 320px;
  justify-items: center;
}

.cds-ai-models {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  z-index: 2;
}

.cds-ai-model {
  width: 118px;
  min-height: 118px;
  padding: 0.85rem 0.7rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 10, 22, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cds-ai-model--hospital {
  border: 1.5px solid rgba(86, 204, 242, 0.55);
  box-shadow:
    0 0 24px rgba(86, 204, 242, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.4);
  color: #c7f0fc;
}

.cds-ai-model--third {
  border: 1.5px solid rgba(242, 86, 236, 0.55);
  box-shadow:
    0 0 24px rgba(242, 86, 236, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.4);
  color: #f9c8f6;
}

.cds-ai-model-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.cds-ai-model--hospital .cds-ai-model-ico {
  color: #56ccf2;
}

.cds-ai-model--third .cds-ai-model-ico {
  color: #f256ec;
}

.cds-ai-model-ico .icon {
  width: 26px;
  height: 26px;
}

.cds-ai-wires {
  width: 72px;
  height: 220px;
  overflow: visible;
  z-index: 1;
}

.cds-ai-hub {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.cds-ai-hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#05060e, #05060e) padding-box,
    linear-gradient(135deg, #56ccf2 0%, #a78bfa 50%, #f256ec 100%) border-box;
  box-shadow:
    0 0 40px rgba(124, 92, 252, 0.35),
    0 0 80px rgba(86, 204, 242, 0.12),
    inset 0 0 30px rgba(124, 92, 252, 0.12);
}

.cds-ai-hub-ring::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.35);
  opacity: 0.7;
}

.cds-ai-hub-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.5rem;
}

.cds-ai-hub-core img {
  width: 40px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0.15rem;
  filter: drop-shadow(0 0 10px rgba(124, 92, 252, 0.45));
}

.cds-ai-hub-name {
  font-family: var(--font-brand, "Nunito", sans-serif);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.cds-ai-hub-sub {
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.cds-ai-out-wire {
  width: 36px;
  height: 0;
  border-top: 2px dashed rgba(167, 139, 250, 0.55);
  position: relative;
  align-self: center;
}

.cds-ai-out-wire::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
}

/* ---- Right monitoring panel ---- */
.cds-ai-panel {
  background: rgba(10, 12, 24, 0.92);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 18px;
  padding: 1rem 1.05rem 0.9rem;
  box-shadow:
    0 0 0 1px rgba(86, 204, 242, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.cds-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.cds-ai-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.cds-ai-validated {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #e9d5ff;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.55);
  white-space: nowrap;
}

.cds-ai-validated .icon {
  width: 13px;
  height: 13px;
  color: #a78bfa;
}

.cds-ai-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.75rem 0.65rem;
}

.cds-ai-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.01em;
}

.cds-ai-card-top {
  margin-bottom: 0.5rem;
}

.cds-ai-perf {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: stretch;
}

.cds-ai-chart {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cds-ai-chart--perf {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 0.15rem 0.35rem;
  align-items: stretch;
}

.cds-ai-y {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.1rem 0;
  line-height: 1;
}

.cds-ai-spark {
  width: 100%;
  height: 64px;
  display: block;
  grid-column: 2;
  grid-row: 1;
}

.cds-ai-spark--drift {
  height: 52px;
  grid-column: 1 / -1;
}

.cds-ai-chart--drift {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cds-ai-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: -0.01em;
}

.cds-ai-chart--drift .cds-ai-x {
  grid-column: auto;
}

.cds-ai-kpi {
  min-width: 68px;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(8, 10, 20, 0.7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
}

.cds-ai-kpi-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: none;
}

.cds-ai-kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.cds-ai-kpi-val--sm {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.cds-ai-kpi-status {
  font-size: 0.62rem;
  font-weight: 700;
  color: #56ccf2;
}

/* Bias */
.cds-ai-bias {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.cds-ai-bias-rows {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cds-ai-bias-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.4rem;
  align-items: center;
}

.cds-ai-bias-lab {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.cds-ai-bias-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #56ccf2, #a78bfa, #f256ec);
  opacity: 0.85;
}

.cds-ai-bias-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56ccf2;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(86, 204, 242, 0.6);
}

.cds-ai-bias-dot--mid {
  background: #a78bfa;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
}

.cds-ai-bias-dot--end {
  background: #f256ec;
  box-shadow: 0 0 6px rgba(242, 86, 236, 0.6);
}

.cds-ai-bias-axis {
  display: flex;
  justify-content: space-between;
  padding-left: calc(52px + 0.4rem);
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.35);
}

.cds-ai-kpi--bias .cds-ai-kpi-status {
  color: #56ccf2;
}

.cds-ai-panel-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.cds-ai-panel-foot .icon {
  width: 15px;
  height: 15px;
  color: #a78bfa;
}

/* Responsive */
@media (max-width: 1100px) {
  .cds-ai-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
  }

  .cds-ai-copy {
    grid-column: 1 / -1;
    max-width: 40rem;
  }

  .cds-ai-diagram {
    justify-self: center;
  }
}

@media (max-width: 780px) {
  .cds-ai-inner {
    grid-template-columns: 1fr;
  }

  .cds-ai-diagram {
    grid-template-columns: auto 48px auto;
    min-height: 280px;
  }

  .cds-ai-wires {
    width: 48px;
    height: 200px;
  }

  .cds-ai-out-wire {
    display: none;
  }

  .cds-ai-hub {
    width: 148px;
    height: 148px;
  }

  .cds-ai-model {
    width: 100px;
    min-height: 100px;
    font-size: 0.68rem;
  }
}

@media (max-width: 520px) {
  .cds-ai-title {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .cds-ai-perf,
  .cds-ai-bias {
    grid-template-columns: 1fr;
  }

  .cds-ai-kpi {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .cds-ai-kpi-val {
    font-size: 1.15rem;
  }
}
