

.hms-hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg,
      #f0fdfa 0,
      rgba(204, 251, 241, 0.6) 25%,
      rgba(245, 208, 254, 0.3) 50%,
      rgba(254, 215, 170, 0.2) 75%,
      #f0fdfa 100%);
  position: relative;
  overflow: hidden;
}

.hms-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hms-hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.hms-feature {
  padding: 100px 0;
}

.hms-feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hms-feature-centered {
  padding: 100px 0;
  background: linear-gradient(180deg,
      rgba(240, 253, 250, 0.5) 0,
      rgba(254, 215, 170, 0.15) 50%,
      rgba(240, 253, 250, 0.5) 100%);
}

.hms-cta {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

.hms-cta h2 {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .hms-hero-content h1 {
    font-size: 2.25rem;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-right,
  .preview-sidebar {
    border: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .preview-tabs {
    display: none;
  }

  .hms-feature .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-alt-left .feature-visual {
    order: 0;
  }

  .emr-flowchart {
    flex-direction: column;
  }

  .emr-connector {
    width: 2px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .hms-hero-content h1 {
    font-size: 1.75rem;
  }

  .form-row {
    flex-direction: column;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

.hero-app-box.hms-box:hover {
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.15);
  border-color: rgba(46, 125, 50, 0.3);
}

.app-icon.hms-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.hms-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.hms-feat-page-hero {
  padding: 120px 0 72px;
  background: #11110d;
  color: #fff;
}

.hms-feat-page-hero .crumb {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1f470;
  margin-bottom: 16px;
}

.hms-feat-page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 16px;
}

.hms-feat-page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hms-hero {
  padding: 160px 0 80px;
  background: #f5f5f2;
  position: relative;
  overflow: hidden;
}

.hms-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle,
      rgba(209, 244, 112, 0.2) 0,
      transparent 60%);
  pointer-events: none;
}

.hms-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  color: #11110d;
  max-width: 700px;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hms-feature {
  padding: 100px 0;
}

.hms-feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hms-feature.feature-alt-left .container {
  direction: rtl;
}

.hms-feature.feature-alt-left .container>* {
  direction: ltr;
}

.hms-feature:nth-child(odd) {
  background: #f5f5f2;
}

.hms-feature-centered {
  padding: 100px 0;
  text-align: center;
  background: #11110d;
  color: #fff;
}

.hms-feature-centered h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  max-width: 700px;
  margin: 0 auto 16px;
}

.hms-feature-centered p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 48px;
}

.hms-cta {
  background: linear-gradient(135deg, #11110d 0, #1a1a15 100%);
  padding: 100px 0;
  text-align: center;
}

.hms-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 800px;
  margin: 0 auto 32px;
  font-weight: 500;
}

@media (max-width: 992px) {
  .hms-feature .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hms-feature.feature-alt-left .container {
    direction: ltr;
  }
}

.hms-hero {
  background: #11110d;
  padding: 140px 0 0;
}

.hms-hero::before {
  background: radial-gradient(circle at 18% 55%,
      rgba(209, 244, 112, 0.16) 0,
      transparent 52%);
}

.hms-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.hms-hero-content {
  padding-bottom: 80px;
}

.hms-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d1f470;
  margin-bottom: 20px;
}

.hms-hero-content h1 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 520px;
  margin-bottom: 20px;
}

.hms-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 32px;
}

.hms-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hms-hero-ghost {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.hms-hero-ghost:hover {
  color: #fff;
}

.hms-hero-image {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.hms-stats-strip {
  background: #f5f5f2;
  border-bottom: 1px solid #e8e8e4;
}

.hms-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid #e8e8e4;
}

.hms-stat {
  padding: 30px 24px;
  border-right: 1px solid #e8e8e4;
}

.hms-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #11110d;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
}

.hms-stat span {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.45;
}

.hms-feature:nth-child(odd) {
  background: inherit;
}

.hms-feat-white {
  background: #fff;
}

.hms-feat-cream {
  background: #f5f5f2;
}

.hms-emr-section {
  padding: 100px 0;
  background: #11110d;
  color: #fff;
  text-align: center;
}

.hms-emr-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.hms-emr-section p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.hms-testimonial {
  background: #f5f5f2;
  padding: 80px 0;
  border-top: 1px solid #e8e8e4;
}

.hms-testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.hms-t-quote {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: #11110d;
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  font-style: italic;
}

.hms-t-quote::before {
  content: "\201C";
  font-size: 4rem;
  color: #d1f470;
  display: block;
  line-height: 0.8;
  margin-bottom: 8px;
  font-style: normal;
}

.hms-t-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hms-t-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #11110d;
  color: #d1f470;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hms-t-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #11110d;
  display: block;
}

.hms-t-role {
  font-size: 0.78rem;
  color: #888;
  display: block;
  margin-top: 2px;
}

.hms-cta h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}

.hms-cta p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hms-hero .container {
    grid-template-columns: 1fr;
  }

  .hms-hero-image {
    display: none;
  }

  .hms-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hms-stat:nth-child(2) {
    border-right: none;
  }
}