:root {
  color: #173034;
  background: #f7fbf8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #173034;
  --muted: #5f7475;
  --line: rgba(23, 48, 52, 0.14);
  --surface: #ffffff;
  --green: #0f8c6a;
  --blue: #2872b8;
  --amber: #c47a1d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7fbf8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 28, 31, 0.78), rgba(6, 28, 31, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #123034;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #123034;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 27, 30, 0.88), rgba(5, 27, 30, 0.52), rgba(5, 27, 30, 0.08)),
    linear-gradient(0deg, rgba(5, 27, 30, 0.74), rgba(5, 27, 30, 0.1) 58%);
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 88px);
  padding: 160px 0 130px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #76e2bd;
  font-size: 14px;
  font-weight: 760;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.92;
  font-weight: 820;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.primary-action {
  color: #0e2a2d;
  background: #ffffff;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.secondary-action:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.hero-proof span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(6, 28, 31, 0.26);
  backdrop-filter: blur(10px);
}

.section,
.workflow-section,
.demo-section,
.contact-section,
.operations-section {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 6vw, 88px);
}

.intro-section {
  background: #f7fbf8;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 820;
}

.intro-layout p,
.module-heading p,
.operations-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.78;
}

.workflow-section {
  color: #fff;
  background: #173034;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
}

.workflow-step {
  min-height: 260px;
  padding: 28px;
  background: #173034;
}

.workflow-step span {
  display: inline-block;
  margin-bottom: 58px;
  color: #76e2bd;
  font-weight: 780;
}

.workflow-step strong {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
}

.workflow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.module-section {
  background: var(--surface);
}

.module-heading {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid var(--line);
  background: var(--line);
}

.module-item {
  min-height: 250px;
  padding: 30px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.module-item:hover {
  transform: translateY(-4px);
  background: #f7fbf8;
}

.module-item h3 {
  margin: 0 0 42px;
  font-size: 24px;
}

.module-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.operations-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  background: #eef6f2;
}

.operations-image-wrap {
  min-height: 560px;
  overflow: hidden;
  border-radius: 2px;
}

.operations-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.value-list {
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.value-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.value-list span {
  color: var(--muted);
}

.value-list strong {
  text-align: right;
}

.demo-section {
  background:
    linear-gradient(180deg, #f7fbf8 0%, #eef6f2 100%);
}

.faq-section {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 6vw, 88px);
  background: #fff;
}

.demo-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.demo-link {
  position: relative;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 48, 52, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.demo-link::after {
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  opacity: 0.16;
}

.demo-link:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 48, 52, 0.24);
  box-shadow: 0 24px 60px rgba(23, 48, 52, 0.14);
}

.demo-link-admin::after {
  background: var(--green);
}

.demo-link-doctor::after {
  background: var(--blue);
}

.demo-link-patient::after {
  background: var(--amber);
}

.demo-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 820;
}

.demo-link-admin .demo-icon {
  background: var(--green);
}

.demo-link-doctor .demo-icon {
  background: var(--blue);
}

.demo-link-patient .demo-icon {
  background: var(--amber);
}

.demo-label {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 780;
}

.demo-link-doctor .demo-label {
  color: var(--blue);
}

.demo-link-patient .demo-label {
  color: var(--amber);
}

.demo-link strong {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 340px;
  font-size: 22px;
  line-height: 1.34;
}

.demo-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--line);
}

.faq-item {
  padding: 28px;
  background: #fff;
}

.faq-item h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.faq-item p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 430px);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  color: #fff;
  background: #0f322d;
}

.contact-panel {
  padding: 36px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-panel p,
.contact-panel span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 38px;
}

.contact-panel a {
  display: block;
  width: fit-content;
  margin: 16px 0 10px;
  color: #76e2bd;
  font-size: 22px;
  font-weight: 780;
}

.contact-panel a + span {
  display: block;
  margin-bottom: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: #0b2421;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-content {
    margin: 0 20px;
    padding: 128px 0 118px;
  }

  .hero-proof {
    left: 20px;
    right: 20px;
    justify-content: flex-start;
  }

  .intro-layout,
  .module-heading,
  .operations-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .workflow-track,
  .module-grid,
  .demo-links {
    grid-template-columns: 1fr;
  }

  .workflow-step,
  .module-item,
  .demo-link {
    min-height: auto;
  }

  .workflow-step span,
  .module-item h3,
  .demo-link span {
    margin-bottom: 22px;
  }

  .operations-image-wrap,
  .operations-image-wrap img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .hero-content {
    width: auto;
    margin: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-proof {
    display: none;
  }

  .section,
  .workflow-section,
  .demo-section,
  .faq-section,
  .contact-section,
  .operations-section {
    padding: 62px 18px;
  }

  .value-list li {
    display: block;
  }

  .value-list strong {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 10px;
  }
}
