/* =========================================================
   /USE_CASES — Section + per-card visuals
   ========================================================= */

.cases-section {
  position: relative;
  background: linear-gradient(180deg, #EAF7FF 0%, #F4FAFF 50%, #FFFFFF 100%);
  padding: 96px 0 120px;
}
.cases-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(7,87,255,0.45) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(7,87,255,0.4);
}

.cases-head { text-align: center; margin-bottom: 56px; }
.cases-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #0757FF;
  background: rgba(7,87,255,0.10);
  padding: 6px 12px;
  border-radius: var(--b-radius-8);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cases-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #16182E;
  margin: 0 0 22px;
}
.cases-lead {
  font-size: 18px;
  line-height: 1.5;
  color: #5F6B8C;
  max-width: 520px;
  margin: 0 auto;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.case-card {
  background: #fff;
  border: 1px solid rgba(20, 35, 70, 0.10);
  border-radius: var(--b-radius-25);
  padding: 42px;
  box-shadow: 0 18px 48px -28px rgba(20, 35, 70, 0.18);
  display: flex;
  flex-direction: column;
}
.case-visual {
  border: 1px solid rgba(20, 35, 70, 0.10);
  border-radius: var(--b-radius-15);
  background: var(--gray-50);
  padding: 18px 22px;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-title {
  font-size: 28px;
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: #16182E;
  margin: 44px 0 16px;
}
.case-desc {
  font-size: 17px;
  line-height: 1.45;
  color: #5F6B8C;
  margin: 0;
}
.check-list {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #16182E;
}
.check-list .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0757FF;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8.5l2.5 2.5L12 5.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* Analytics table visual (left card) */
.uc-table {
  display: flex;
  flex-direction: column;
}
.uc-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: #16182E;
}
.uc-row-head {
  color: #5F6B8C;
  font-size: 12px;
  padding-bottom: 12px;
  margin-bottom: 2px;
}
.uc-path {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}
.uc-path i {
  position: absolute;
  left: -22px;
  top: 50%;
  height: 25px;
  width: calc(var(--w, 60%) + 16px);
  background: rgba(20, 35, 70, 0.06);
  border-radius: 0;
  z-index: -1;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
}

/* Device rows visual (right card) */
.uc-devices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.uc-device-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #16182E;
  font-size: 14px;
}
.uc-device-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
}
.uc-device:nth-child(1) .uc-device-ico { color: #0757FF; }
.uc-device:nth-child(2) .uc-device-ico { color: #7AA8FF; }
.uc-device:nth-child(3) .uc-device-ico { color: #B4D2FF; }
.uc-device-ico svg { width: 22px; height: 22px; }
.uc-device-label { font-weight: var(--fw-medium); }
.uc-device-pct { font-weight: var(--fw-semibold); }
.uc-bar {
  height: 6px;
  background: rgba(20, 35, 70, 0.06);
  border-radius: var(--b-radius-full);
  overflow: hidden;
}
.uc-bar i {
  display: block;
  height: 100%;
  border-radius: var(--b-radius-full);
  transform: scaleX(0);
  transform-origin: left center;
}

/* In-view grow animations */
.cases-section.in-view .uc-bar i {
  animation: uc-bar-grow 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}
.cases-section.in-view .uc-path i {
  animation: uc-path-grow 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}
.cases-section.in-view .uc-device:nth-child(1) .uc-bar i { animation-delay: 0.05s; }
.cases-section.in-view .uc-device:nth-child(2) .uc-bar i { animation-delay: 0.25s; }
.cases-section.in-view .uc-device:nth-child(3) .uc-bar i { animation-delay: 0.45s; }
.cases-section.in-view .uc-table .uc-row:nth-of-type(2) .uc-path i { animation-delay: 0.05s; }
.cases-section.in-view .uc-table .uc-row:nth-of-type(3) .uc-path i { animation-delay: 0.20s; }
.cases-section.in-view .uc-table .uc-row:nth-of-type(4) .uc-path i { animation-delay: 0.35s; }
.cases-section.in-view .uc-table .uc-row:nth-of-type(5) .uc-path i { animation-delay: 0.50s; }
@keyframes uc-bar-grow  { to { transform: scaleX(1); } }
@keyframes uc-path-grow { to { transform: translateY(-50%) scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .cases-section.in-view .uc-bar i { animation: none; transform: scaleX(1); }
  .cases-section.in-view .uc-path i { animation: none; transform: translateY(-50%) scaleX(1); }
}

/* Responsive */
@media (max-width: 960px) {
  .cases-grid { grid-template-columns: 1fr; gap: 18px; }
  .case-card { padding: 32px; }
  .case-title { font-size: 24px; margin-top: 36px; }
  .case-desc { font-size: 16px; }
  .check-list { margin-top: 32px; gap: 18px; }
  .cases-section { padding: 64px 0 88px; }
  .cases-title { font-size: 34px; }
  .cases-head { margin-bottom: 40px; }
}
