/* ── Healthcare AI Cards — Figma pixel-perfect ───────────── */
.healthcare-ai {
  padding: 100px 0;
  background: #030410;
}

/* ── Header row: title LEFT, DNA icon RIGHT ── */
.healthcare-ai__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.healthcare-ai__header-text {
  flex: 1;
}

/* Title: Inter SemiBold 50px white — Figma v229_107 */
.healthcare-ai__title {
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* Subtitle: Inter Regular 18px 85% white — Figma v229_108 */
.healthcare-ai__subtitle {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 661px;
  margin: 0;
}

/* DNA icon top-right */
.healthcare-ai__icon {
  flex-shrink: 0;
  width: 169px;
  height: 169px;
  opacity: 0.85;
}
.healthcare-ai__icon svg {
  width: 100%;
  height: auto;
}

/* ── Card grid: 10 equal columns, rows have DIFFERENT widths ── */
/* Figma: row1 = 468px + 712px, row2 = 712px + 468px (total ~1200px container) */
.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 20px;
}

/* Row 1: card1=40%, card2=60% */
.ai-card:nth-child(1) {
  grid-column: 1 / 5;
} /* 4 of 10 = 40% */
.ai-card:nth-child(2) {
  grid-column: 5 / 11;
} /* 6 of 10 = 60% */

/* Row 2: card3=60%, card4=40% */
.ai-card:nth-child(3) {
  grid-column: 1 / 7;
} /* 6 of 10 = 60% */
.ai-card:nth-child(4) {
  grid-column: 7 / 11;
} /* 4 of 10 = 40% */

/* ── Individual card ── */
/* Figma v229_110: rgba(39,40,41,0.7), border-radius 20px */
.ai-card {
  background:
    linear-gradient(0deg, rgba(39, 40, 41, 0.7), rgba(39, 40, 41, 0.7)),
    linear-gradient(
      119.3deg,
      rgba(0, 0, 0, 0) 23.34%,
      rgba(74, 185, 229, 0.3) 96.36%
    );
  border-radius: 20px;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s;
}
.ai-card:hover {
  border-color: rgba(0, 195, 208, 0.3);
}

/* Top area: description left + cyan arrow button top-right */
.ai-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

/* Description: Inter Regular 18px rgba(217,217,217,0.85) — Figma v229_111/122/133/144 */
.ai-card__desc {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(217, 217, 217, 0.85);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

/* Cyan circle arrow — Figma v229_112: 50×49px #00c3d0 circle, rotate -45deg */
.ai-card__arrow {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: #00c3d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  margin-top: 4px;
  flex-shrink: 0;
}
.ai-card:hover .ai-card__arrow {
  box-shadow: 0 0 20px rgba(0, 195, 208, 0.6);
  transform: rotate(-45deg) scale(1.08);
}
.ai-card__arrow svg {
  transform: rotate(45deg);
}

/* Card title BOTTOM: Inter Regular 34px white — Figma v229_120/131/142/153 */
.ai-card__title {
  font-family: "Inter", sans-serif;
  font-size: 34px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ai-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ai-card:nth-child(1),
  .ai-card:nth-child(2),
  .ai-card:nth-child(3),
  .ai-card:nth-child(4) {
    grid-column: span 1;
  }
  .healthcare-ai__icon {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 768px) {
  .healthcare-ai {
    padding: 64px 0;
  }
  .healthcare-ai__header {
    flex-direction: column;
    gap: 20px;
  }
  .ai-cards-grid {
    grid-template-columns: 1fr;
  }
  .ai-card:nth-child(n) {
    grid-column: span 1;
  }
  .ai-card__title {
    font-size: 26px;
  }
  .ai-card__desc {
    font-size: 16px;
  }
}
