:root {
  --ehrms-primary: #12235a;
  --ehrms-accent: #4d7cff;
  --ehrms-background: #f4f6ff;
  --ehrms-deep: #0b1735;
  --ehrms-text: #16213a;
  --ehrms-muted: #5a6b8c;
  --ehrms-white: #ffffff;
  --ehrms-radius-lg: 28px;
  --ehrms-radius-md: 20px;
  --shadow-soft: 0 26px 62px rgba(20, 31, 71, 0.12);
  --shadow-card: 0 30px 58px rgba(18, 35, 90, 0.18);
}

.ehrms-case-study {
  font-family: 'Inter', 'Poppins', 'Montserrat', sans-serif;
  color: var(--ehrms-text);
  background: var(--ehrms-background);
  overflow-x: hidden;
}

main {
  overflow: hidden;
}

.section-spacing {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 700;
  color: var(--ehrms-deep);
  margin-bottom: 1rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ehrms-muted);
  font-size: 1.05rem;
}

.section-heading__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ehrms-primary);
  margin-bottom: 0.85rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.6rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--ehrms-accent), #7fa3ff);
  color: var(--ehrms-white);
  box-shadow: 0 24px 44px rgba(44, 76, 172, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 66px rgba(44, 76, 172, 0.4);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 0 0;
  background: linear-gradient(135deg, #0b1330 0%, #21408f 55%, #4780ff 100%);
  color: var(--ehrms-white);
  overflow: hidden;
  margin-bottom: 0;
}

/* Make the hero container flush to the right so the visual can touch the viewport edge */
.hero > .container {
  padding-right: 0; /* override bootstrap gutter on the right only for hero */
  padding-left: 0; /* reduce left padding */
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  
}

.hero__orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.28), transparent 70%);
  filter: blur(0.3px);
}

.hero__orb--one {
  top: -80px;
  left: 14%;
  animation: orbPulse 10s ease-in-out infinite;
}

.hero__orb--two {
  right: 18%;
  bottom: -110px;
  animation: orbPulse 12s ease-in-out infinite;
}

.hero__mesh {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.4;
}

.hero__mesh--horizontal {
  inset: 20% 12% 20% 12%;
}

.hero__mesh--vertical {
  inset: 25% 38% 25% 38%;
  transform: rotate(90deg);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: end;
  gap: clamp(3rem, 5vw, 1.5rem);
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.hero__content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero__tagline {
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.hero__cta {
  margin-top: 1.8rem;
}

.hero__highlights {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero__highlight {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero__highlight-title {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__highlight-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.hero__visual {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  /* Pull this grid column to the viewport edge by offsetting container's remaining space */
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding-bottom: 0;
}

/* New class applied to the hero image (moved from inline styles) */
.hero__image {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  object-fit: cover;
}

/* Responsive: reset full-bleed on tablets/mobiles */
@media (max-width: 991.98px) {
  .hero {
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }
  .hero > .container {
    padding-right: var(--bs-gutter-x, 0.75rem);
  }
  .hero__visual {
    margin-right: 0;
    justify-content: center;
    min-height: 400px;
  }
  .hero__image {
    width: 100%;
    max-width: 520px;
  }
  .hero__img-top {
    width: 90%;
    max-width: 450px;
    left: 5%;
  }
  .hero__img-bottom {
    width: 50%;
    max-width: 250px;
    right: 0;
    bottom: -10%;
  }
}

.hero__img-top {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-90%);
  z-index: 1;
  width: 60%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.hero__img-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 60%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transform: translate(-50%, 20%);
}
 

.hero-animation {
  position: relative;
  width: 100%;
  aspect-ratio: 0.9;
  border-radius: 26px;
  background: radial-gradient(circle at 25% 20%, rgba(77, 124, 255, 0.28), transparent 55%), radial-gradient(circle at bottom right, rgba(20, 34, 88, 0.9), rgba(8, 15, 40, 0.96));
  overflow: hidden;
  box-shadow: 0 42px 80px rgba(10, 20, 56, 0.34);
}

.hero-animation__mesh {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: blur(0.2px);
}

.hero-animation__mesh--outer {
  inset: 6%;
  animation: heroMeshPulse 9s ease-in-out infinite;
}

.hero-animation__mesh--inner {
  inset: 18%;
  border-style: dotted;
  opacity: 0.35;
}

.hero-animation__card {
  position: absolute;
  width: 55%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 24px 40px rgba(18, 35, 90, 0.16);
  color: var(--ehrms-text);
}

.hero-animation__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ehrms-primary);
  margin-bottom: 0.35rem;
}

.hero-animation__card--notes {
  top: 10%;
  left: 8%;
  animation: heroCardFloat 7.5s ease-in-out infinite;
}

.hero-animation__card--notes ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--ehrms-muted);
  line-height: 1.45;
}

.hero-animation__card--billing {
  right: 10%;
  bottom: 14%;
  animation: heroCardFloat 8.2s ease-in-out infinite 0.8s;
}

.hero-animation__subtitle {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--ehrms-deep);
}

.hero-animation__tag,
.hero-animation__status {
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.hero-animation__tag {
  background: rgba(77, 124, 255, 0.12);
  color: var(--ehrms-primary);
}

.hero-animation__status {
  background: rgba(27, 191, 123, 0.12);
  color: #1bbf7b;
  margin-bottom: 0;
}

.hero-animation__card--kpi {
  top: 48%;
  left: 50%;
  transform: translate(-50%, -48%);
  text-align: center;
  animation: heroCardFloat 7.8s ease-in-out infinite 1.3s;
}

.hero-animation__gauge {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0.3rem auto 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.18) 0%, rgba(18, 35, 90, 0.85) 65%);
  box-shadow: inset 0 0 22px rgba(18, 35, 90, 0.35);
}

.hero-animation__gauge::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-animation__gauge-needle {
  position: absolute;
  width: 4px;
  height: 42px;
  background: linear-gradient(180deg, #7fa3ff 0%, #12235a 100%);
  left: 50%;
  bottom: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%) rotate(-28deg);
  animation: heroNeedleSweep 4.5s ease-in-out infinite;
}

.hero-animation__gauge-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ehrms-muted);
}

.hero-animation__node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d7cff, #7fa3ff);
  box-shadow: 0 0 18px rgba(77, 124, 255, 0.8);
  animation: nodePulse 6s ease-in-out infinite;
}

.hero-animation__node--one { top: 22%; right: 18%; }
.hero-animation__node--two { bottom: 24%; left: 20%; animation-delay: 1.2s; }
.hero-animation__node--three { top: 62%; left: 12%; animation-delay: 2.1s; }

.hero-animation__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  inset: 12%;
  animation: orbitSpin 16s linear infinite;
}

.hero-animation__orbit--two {
  inset: 24%;
  animation-duration: 12s;
  animation-direction: reverse;
}

.hero-animation__beam {
  position: absolute;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(119, 155, 255, 0.6) 40%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.45;
  transform: rotate(8deg);
  animation: heroBeamDrift 9s linear infinite;
}

.hero-animation__beam--one {
  top: 28%;
  left: -45%;
}

.hero-animation__beam--two {
  bottom: 24%;
  right: -45%;
  animation-direction: reverse;
}

.hero-animation__particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.6;
  animation: sparkPulse 5.5s ease-in-out infinite;
}

.hero-animation__particle--one { top: 18%; left: 36%; }
.hero-animation__particle--two { top: 46%; right: 18%; animation-delay: 1.4s; }
.hero-animation__particle--three { bottom: 20%; left: 32%; animation-delay: 2.2s; }
.hero-animation__particle--four { top: 36%; left: 14%; animation-delay: 3s; }
.hero-animation__particle--five { bottom: 14%; right: 28%; animation-delay: 3.6s; }

.hero__badge {
  position: absolute;
  min-width: 150px;
  border-radius: 18px;
  background: rgba(244, 248, 255, 0.95);
  color: var(--ehrms-text);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.2rem;
  animation: floatBadge 8s ease-in-out infinite;
}

.hero__badge strong {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ehrms-accent);
}

.hero__badge span {
  font-size: 0.88rem;
  font-weight: 600;
}

.hero__badge--top {
  top: 6%;
  right: -10%;
}

.hero__badge--bottom {
  bottom: 6%;
  left: -10%;
  animation-delay: 2.6s;
}

/* Challenge */
.challenge {
  background: var(--ehrms-white);
}

.challenge__content {
  display: grid;
  gap: 2.3rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.challenge__timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 2.4rem;
  margin-bottom: 1rem;
  border-radius: var(--ehrms-radius-md);
  background: rgba(77, 124, 255, 0.14);
  color: var(--ehrms-text);
  border: 1px solid rgba(77, 124, 255, 0.28);
  box-shadow: 0 22px 40px rgba(18, 35, 90, 0.12);
}

.timeline-item__label {
min-width: 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
border-radius: 999px;
background: linear-gradient(135deg, var(--ehrms-primary), var(--ehrms-accent));
color: var(--ehrms-white);
display: grid;
place-items: center;
font-weight: 600;
font-size: 0.9rem;

}

.challenge__visual picture {
  display: block;
  border-radius: var(--ehrms-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.challenge__visual img {
  width: 100%;
  height: auto;
}

.challenge__note {
  margin-top: 1.1rem;
  padding: 1.15rem 1.4rem;
  background: rgba(77, 124, 255, 0.12);
  border-left: 4px solid var(--ehrms-primary);
  border-radius: 14px;
  font-weight: 600;
  color: var(--ehrms-text);
}

/* Solution */
.solution {
  background: linear-gradient(180deg, rgba(209, 220, 255, 0.24), transparent 72%);
}

.solution__matrix {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.solution-card {
  background: var(--ehrms-white);
  border-radius: var(--ehrms-radius-md);
  padding: 1.9rem 1.65rem;
  border: 1px solid rgba(77, 124, 255, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 68px rgba(18, 35, 90, 0.18);
}

.solution-card__icon {
  font-size: 1.65rem;
  color: var(--ehrms-primary);
  background: rgba(77, 124, 255, 0.18);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.solution-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ehrms-deep);
}

.solution-card p {
  color: var(--ehrms-muted);
  line-height: 1.62;
  margin: 0;
}

.solution__footnote {
  margin-top: 2.4rem;
  color: var(--ehrms-muted);
  text-align: center;
  font-weight: 500;
}

/* Workflow */
.workflow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.workflow-card {
  background: var(--ehrms-white);
  border-radius: var(--ehrms-radius-lg);
  padding: 1.9rem 2.1rem;
  border: 1px solid rgba(77, 124, 255, 0.16);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-card__header {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ehrms-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.12);
}

.workflow-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--ehrms-muted);
}

.workflow-card ul li::before {
  content: '\2022';
  color: var(--ehrms-accent);
  margin-right: 0.6rem;
}

.workflow-card--before {
  background: linear-gradient(180deg, rgba(18, 35, 90, 0.06), rgba(18, 35, 90, 0.02));
  border-color: rgba(18, 35, 90, 0.14);
}

.workflow-card--before .workflow-card__header {
  background: rgba(18, 35, 90, 0.16);
  color: #10204b;
}

.workflow-card--before ul li {
  background: rgba(18, 35, 90, 0.06);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
}

.workflow-card--after {
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.14), rgba(77, 124, 255, 0.04));
  border-color: rgba(77, 124, 255, 0.22);
}

.workflow-card--after .workflow-card__header {
  background: rgba(77, 124, 255, 0.2);
  color: var(--ehrms-white);
  box-shadow: 0 16px 26px rgba(18, 35, 90, 0.2);
}

.workflow-card--after ul li {
  background: rgba(77, 124, 255, 0.12);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  color: var(--ehrms-text);
  font-weight: 500;
}

.workflow-card--highlight {
  padding: 1.2rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.workflow-card--highlight picture {
  display: block;
  border-radius: var(--ehrms-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.workflow-card--highlight::before,
.workflow-card--highlight::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 20px;
  pointer-events: none;
}

.workflow-card--highlight::before {
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.18) 0%, rgba(18, 35, 90, 0) 80%);
  transform: translateY(-100%);
  animation: layeringFlow 6s linear infinite;
}

.workflow-card--highlight::after {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0) 55%), radial-gradient(circle at 80% 70%, rgba(119, 155, 255, 0.25) 0, rgba(119, 155, 255, 0) 60%);
  opacity: 0.35;
  animation: layeringPulse 5s ease-in-out infinite;
}

.workflow-layering {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--ehrms-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.workflow-layering__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-layering__image--before {
  filter: grayscale(0.9) blur(1px) brightness(0.8);
  transform: scale(1.02);
}

.workflow-layering__image--after {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.workflow-layering__label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(12, 22, 48, 0.65);
  color: #fff;
  box-shadow: 0 14px 24px rgba(12, 22, 48, 0.28);
  transition: opacity 0.6s ease;
}

.workflow-layering__label--after {
  left: auto;
  right: 1rem;
  background: rgba(54, 102, 235, 0.85);
  opacity: 0;
}

.workflow-layering__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 35, 90, 0) 0%, rgba(90, 126, 255, 0.45) 40%, rgba(18, 35, 90, 0) 80%);
  transform: translateX(-110%);
  transition: transform 1.2s ease;
}

.workflow-layering.is-active .workflow-layering__sweep {
  transform: translateX(110%);
}

.workflow-layering.is-active .workflow-layering__image--after {
  opacity: 1;
  transform: scale(1);
}

.workflow-layering.is-active .workflow-layering__label--after {
  opacity: 1;
}

.workflow-layering.is-active .workflow-layering__label--before {
  opacity: 0.4;
}

/* Impact */
.impact {
  background: var(--ehrms-white);
}

.impact__metrics {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2.8rem;
}

.impact__metric {
  background: linear-gradient(180deg, #f6f8ff 0%, #dfe7ff 100%);
  border-radius: var(--ehrms-radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(77, 124, 255, 0.26);
}

.impact__value {
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--ehrms-primary);
  margin: 0 0 0.45rem;
}

.impact__caption {
  font-weight: 600;
  color: var(--ehrms-deep);
  margin-bottom: 0.5rem;
}

.impact__sub {
  color: var(--ehrms-muted);
  margin: 0;
}

.impact__table {
  border-radius: var(--ehrms-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(77, 124, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.impact__table-head,
.impact__table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 1.6rem;
}

.impact__table-head {
  background: rgba(77, 124, 255, 0.22);
  color: var(--ehrms-deep);
  font-weight: 600;
}

.impact__table-row {
  background: var(--ehrms-white);
  color: var(--ehrms-muted);
  border-top: 1px solid rgba(77, 124, 255, 0.18);
}

.impact blockquote {
  margin: 3rem auto 0;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ehrms-deep);
  padding: 1.5rem 1.9rem;
  background: rgba(77, 124, 255, 0.14);
  border-left: 4px solid var(--ehrms-primary);
  border-radius: 14px;
  font-style: italic;
}

/* Design */
.design {
  background: linear-gradient(135deg, rgba(24, 52, 122, 0.18), rgba(101, 142, 255, 0.18));
}

.design__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.6rem;
  align-items: center;
}

.design__copy ul {
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  color: var(--ehrms-muted);
}

.design__copy ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--ehrms-primary);
  margin-right: 0.7rem;
}

.design__visual {
  position: relative;
  border-radius: var(--ehrms-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ehrms-white);
}

.design__visual video {
  display: block;
  width: 100%;
  height: auto;
}

.design__swap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  backdrop-filter: blur(16px);
  background: linear-gradient(90deg, rgba(33, 70, 160, 0.88), rgba(118, 160, 255, 0.78));
  color: var(--ehrms-white);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Tech */
.tech {
  background: var(--ehrms-white);
}

.tech__caption {
  color: var(--ehrms-muted);
  margin-top: 0.6rem;
}


.tech__cloud {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.pill {
  background: var(--ehrms-white);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  color: var(--ehrms-primary);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(77, 124, 255, 0.26);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.pill.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Takeaways */
.takeaways {
  background: linear-gradient(180deg, rgba(211, 221, 255, 0.24), rgba(235, 240, 255, 0.88));
}

.takeaways__grid {
  margin-top: 2.2rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  color: var(--ehrms-deep);
  font-weight: 500;
}

.takeaways__grid li {
  background: var(--ehrms-white);
  padding: 1.35rem 1.6rem;
  border-radius: var(--ehrms-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(77, 124, 255, 0.22);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.takeaways__grid .fa-circle-check {
  color: var(--ehrms-accent);
  font-size: 1.1rem;
  line-height: 1.2;
  margin-top: 0.2rem;
}

/* CTA band */
.cta-band {
  padding: clamp(3.2rem, 5.5vw, 4.8rem) 0;
  background: linear-gradient(135deg, #0d1538, #3355d5);
  color: var(--ehrms-white);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

/* Animations */
@keyframes orbPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.72;
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes heroCardFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

@keyframes heroMeshPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}

@keyframes heroNeedleSweep {
  0%,
  100% {
    transform: translateX(-50%) rotate(-28deg);
  }
  50% {
    transform: translateX(-50%) rotate(18deg);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes orbitSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes heroBeamDrift {
  0% {
    transform: translateX(0) rotate(8deg);
  }
  100% {
    transform: translateX(40%) rotate(8deg);
  }
}

@keyframes sparkPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes layeringFlow {
  0% {
    transform: translateY(-110%);
    opacity: 0.4;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(110%);
    opacity: 0.4;
  }
}

@keyframes layeringPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animation__card,
  .hero-animation__mesh,
  .hero-animation__node,
  .hero-animation__orbit,
  .hero-animation__beam,
  .hero-animation__particle,
  .hero-animation__gauge-needle,
  .hero__badge,
  .workflow-card--highlight::before,
  .workflow-card--highlight::after {
    animation: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero__badge--top {
    right: -6%;
    left: auto;
  }

  .hero__badge--bottom {
    left: -6%;
    right: auto;
  }

  .impact__table-head,
  .impact__table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact__table-head span:nth-child(3),
  .impact__table-head span:nth-child(4),
  .impact__table-row span:nth-child(3),
  .impact__table-row span:nth-child(4) {
    background: rgba(77, 124, 255, 0.2);
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
  }
}

@media (max-width: 575.98px) {
  .hero__highlights {
    grid-template-columns: 1fr;
  }

  .hero-animation {
    border-radius: 24px;
  }

  .hero__badge {
    min-width: 140px;
  }

  .hero__badge--top {
    top: auto;
    right: 6%;
    bottom: 70%;
  }

  .hero__badge--bottom {
    left: 6%;
    bottom: -4%;
  }

  .timeline-item {
    padding: 1.2rem 1.2rem 1.2rem 2.3rem;
  }

  .design__swap {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.92rem;
  }
}