:root {
  --ink: #142033;
  --muted: #66758d;
  --subtle: #8b98aa;
  --line: #dbe7f3;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --blue: #376cff;
  --blue-deep: #1846c7;
  --aqua: #19a7a2;
  --coral: #f06f55;
  --mint: #dff7ef;
  --wash: #edf5fc;
  --cream: #fff9ef;
  --shadow: 0 24px 70px rgba(42, 74, 112, 0.16);
  --radius: 8px;
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(237, 245, 252, 0.92), rgba(255, 255, 255, 0.94) 38%),
    #f7fbff;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(20, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 74%);
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(24, 70, 199, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(24, 70, 199, 0.15);
  transform: translateX(-50%) translateY(-4px);
}

.brand,
.nav-links,
.header-cta,
.hero-actions,
.hero-bottom,
.metric-row,
.screen-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f4f8fc;
  box-shadow: 0 0 0 1px rgba(219, 231, 243, 0.9);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  min-width: 54px;
  padding: 9px 10px;
  border-radius: 999px;
  color: #43536b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(55, 108, 255, 0.1);
  color: var(--blue-deep);
}

.header-cta,
.primary-action,
.secondary-action {
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
}

.header-cta {
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-pad {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

#features,
#workflow,
#architecture,
#screens,
#clinical {
  scroll-margin-top: 104px;
}

.hero {
  min-height: 92svh;
  color: #fff;
  background: #0e1a2b;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.86), rgba(8, 17, 31, 0.58) 46%, rgba(8, 17, 31, 0.28)),
    linear-gradient(180deg, rgba(8, 17, 31, 0.38), rgba(8, 17, 31, 0.5));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(520px, 0.88fr) minmax(360px, 0.92fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 92svh;
  margin: 0 auto;
  padding: 112px 0 76px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  color: #6b7d95;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  content: none;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.workflow .section-heading .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9.8em;
  margin-bottom: 24px;
  font-size: clamp(46px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 .title-line {
  display: block;
}

.title-nowrap {
  white-space: nowrap;
}

h1 em {
  font-style: normal;
  color: #7af1ea;
  font-size: 1.12em;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(25, 167, 162, 0.3);
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  padding: 0 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, #4b78ff, #19a7a2);
  color: #fff;
  box-shadow: 0 16px 36px rgba(25, 167, 162, 0.28);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(14px);
}

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

.hero-panel {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
}

.phone-shell {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.12));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  animation: phoneFloat 7s ease-in-out infinite;
}

.phone-shell img {
  width: 100%;
  border-radius: 24px;
}

.floating-chip {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.floating-chip strong {
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
}

.floating-chip.chip-sunnybrook {
  min-width: 176px;
  border-color: rgba(25, 167, 162, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 247, 239, 0.82));
}

.floating-chip.chip-sunnybrook strong {
  color: var(--aqua);
  font-size: 24px;
  letter-spacing: 0;
}

.floating-chip span {
  color: #59667a;
  font-size: 12px;
  font-weight: 800;
}

.chip-a {
  top: 22%;
  left: -68px;
  animation: chipMove 6s ease-in-out infinite;
}

.chip-b {
  right: -52px;
  bottom: 16%;
  animation: chipMove 6.8s ease-in-out infinite reverse;
}

.hero-bottom {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.hero-bottom span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.intro {
  padding-top: 108px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.intro-text {
  margin: 0;
  color: #43536b;
  font-size: 19px;
  line-height: 2;
}

.metric-row {
  gap: 12px;
  justify-content: stretch;
}

.metric-row div {
  flex: 1;
  min-width: 0;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

.metric-row strong[data-suffix]::after {
  content: attr(data-suffix);
  display: inline-block;
  margin-left: 4px;
  font-size: 0.58em;
  line-height: 1;
  vertical-align: 0.46em;
}

.metric-row span {
  color: var(--muted);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 282px;
  padding: 26px;
  border: 1px solid rgba(219, 231, 243, 0.94);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(34, 72, 112, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  border-color: rgba(25, 167, 162, 0.32);
  box-shadow: 0 28px 70px rgba(34, 72, 112, 0.14);
  transform: translateY(-6px);
}

.feature-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(55, 108, 255, 0.14), rgba(25, 167, 162, 0.16));
}

.feature-icon svg {
  width: 28px;
  fill: var(--blue);
}

.feature-card:nth-child(2) .feature-icon svg {
  fill: var(--aqua);
}

.feature-card:nth-child(3) .feature-icon svg {
  fill: var(--coral);
}

.feature-card:nth-child(4) .feature-icon svg {
  fill: #6a62c9;
}

.feature-card h3,
.timeline-item h3,
.value-item h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.feature-card p,
.timeline-item p,
.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.workflow {
  position: relative;
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.9), rgba(10, 25, 45, 0.76) 48%, rgba(10, 25, 45, 0.36)),
    linear-gradient(180deg, rgba(8, 17, 31, 0.72), rgba(8, 17, 31, 0.9)),
    url("assets/generated/workflow-ai-bg.png"),
    #142033;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.workflow .section-heading .eyebrow {
  color: #79efe7;
}

.workflow .section-heading p,
.workflow .timeline-item p {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline-item {
  position: relative;
  min-height: 244px;
  padding: 28px;
  border: 1px solid rgba(153, 229, 225, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(13, 32, 56, 0.64));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.timeline-item::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(121, 239, 231, 0.3);
  border-radius: 50%;
  content: "";
}

.timeline-item span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(121, 239, 231, 0.15);
  color: #79efe7;
  font-weight: 800;
}

.architecture {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 245, 252, 0.82)),
    #f7fbff;
}

.architecture-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.architecture-grid::before {
  position: absolute;
  top: 32px;
  right: 7%;
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, rgba(55, 108, 255, 0.18), rgba(25, 167, 162, 0.5), rgba(240, 111, 85, 0.18));
  content: "";
}

.architecture-card {
  position: relative;
  min-height: 236px;
  padding: 24px;
  border: 1px solid rgba(219, 231, 243, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(34, 72, 112, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.architecture-card:hover {
  border-color: rgba(55, 108, 255, 0.28);
  box-shadow: 0 26px 64px rgba(34, 72, 112, 0.13);
  transform: translateY(-5px);
}

.architecture-card span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 7px solid #f7fbff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(25, 167, 162, 0.22);
}

.architecture-card:nth-child(2) span {
  background: linear-gradient(135deg, var(--aqua), #39b988);
}

.architecture-card:nth-child(3) span {
  background: linear-gradient(135deg, var(--coral), #ee9b4b);
}

.architecture-card:nth-child(4) span {
  background: linear-gradient(135deg, #6a62c9, var(--blue));
}

.architecture-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.35;
}

.architecture-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(219, 231, 243, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(237, 245, 252, 0.72), rgba(255, 255, 255, 0.9));
}

.tech-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(55, 108, 255, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #40516a;
  font-size: 13px;
  font-weight: 800;
}

.screens {
  padding-bottom: 108px;
}

.screen-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(340px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 245, 252, 0.86)),
    #fff;
  box-shadow: var(--shadow);
}

.screen-copy {
  padding: 12px;
}

.screen-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #6b7d95;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.screen-kicker::before {
  content: none;
}

.screen-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
}

.screen-copy p:not(.screen-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.screen-tabs {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.screen-tabs button {
  min-width: 72px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #506078;
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.screen-tabs button:hover,
.screen-tabs button:focus-visible {
  transform: translateY(-1px);
}

.screen-tabs button.is-active {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.screen-device {
  overflow: hidden;
  max-height: 760px;
  border: 12px solid #101b2d;
  border-radius: 32px;
  background: #101b2d;
  box-shadow: 0 34px 90px rgba(20, 32, 51, 0.22);
}

.screen-device img {
  width: 100%;
  border-radius: 20px;
  background: #eaf4ff;
  object-fit: cover;
  object-position: top;
  transition: opacity 220ms ease, transform 360ms ease;
}

.screen-device img.is-switching {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.clinical {
  width: 100%;
  max-width: none;
  padding-bottom: 56px;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(223, 247, 239, 0.72), rgba(255, 249, 239, 0.58)),
    #f7fbff;
}

.clinical-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.82fr);
  gap: 54px;
  align-items: start;
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(219, 231, 243, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(34, 72, 112, 0.08);
}

.value-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(55, 108, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 252, 0.84));
  box-shadow: 0 14px 28px rgba(24, 70, 199, 0.1);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-item:nth-child(2) .value-icon svg {
  stroke: var(--aqua);
}

.value-item:nth-child(3) .value-icon svg {
  stroke: var(--coral);
}

.value-item:nth-child(4) .value-icon svg {
  stroke: #6a62c9;
}

.closing {
  width: 100%;
  max-width: none;
  padding: 58px max(18px, calc((100vw - 1180px) / 2)) 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 247, 250, 0.92));
}

.closing-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(180, 205, 222, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(246, 251, 252, 0.96) 0%, rgba(234, 246, 248, 0.9) 58%, rgba(218, 236, 244, 0.78) 100%),
    url("assets/generated/closing-service-bg.png"),
    #eef7f8;
  background-position: center right;
  background-size: cover;
  color: var(--ink);
  box-shadow: 0 30px 88px rgba(42, 74, 112, 0.14);
}

.closing-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(45, 77, 104, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(45, 77, 104, 0.04) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 72%);
}

.closing-shell::after {
  position: absolute;
  right: clamp(26px, 5vw, 80px);
  bottom: -180px;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 176, 184, 0.2), transparent 68%);
  filter: blur(10px);
}

.closing-copy,
.closing-panel {
  position: relative;
  z-index: 1;
}

.closing-copy {
  align-self: center;
  max-width: 680px;
}

.closing-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 0 13px;
  border: 1px solid rgba(98, 152, 164, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #426678;
  font-size: 13px;
  font-weight: 800;
}

.closing-copy h2 {
  max-width: 11.2em;
  margin: 0 0 22px;
  color: #142033;
  font-size: clamp(34px, 4.15vw, 54px);
  line-height: 1.14;
  text-wrap: balance;
}

.closing-copy h2 span {
  display: block;
}

.closing-copy p {
  max-width: 600px;
  margin: 0 0 30px;
  color: #50627a;
  font-size: 16px;
  line-height: 1.9;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.closing-actions .primary-action {
  background: linear-gradient(135deg, #5e86d8, #73b8b3);
  box-shadow: 0 14px 30px rgba(79, 135, 155, 0.22);
}

.secondary-action-dark {
  border-color: rgba(73, 101, 130, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #294058;
}

.secondary-action-dark:hover {
  border-color: rgba(76, 132, 145, 0.34);
  background: rgba(242, 250, 251, 0.92);
}

.closing-panel {
  align-self: center;
  padding: clamp(18px, 2.8vw, 26px);
  border: 1px solid rgba(180, 205, 222, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 54px rgba(42, 74, 112, 0.12);
  backdrop-filter: blur(16px);
}

.closing-score {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border: 1px solid rgba(128, 174, 187, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(228, 240, 246, 0.9), rgba(238, 249, 247, 0.86)),
    #ffffff;
}

.closing-score::after {
  position: absolute;
  right: -36px;
  top: -50px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(98, 152, 164, 0.16);
  border-radius: 50%;
}

.closing-score span,
.closing-score small {
  display: block;
  color: #617289;
  font-size: 13px;
  font-weight: 700;
}

.closing-score strong {
  display: block;
  margin: 8px 0;
  color: #234f72;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1;
}

.closing-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.closing-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid rgba(180, 205, 222, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.closing-grid article span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(218, 240, 239, 0.92);
  color: #477c86;
  font-size: 13px;
  font-weight: 900;
}

.closing-grid article strong {
  color: #1d2d43;
  font-size: 16px;
}

.closing-grid article p {
  margin: 0;
  color: #647389;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 26px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--ink);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand .brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: #ffffff;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-size: 15px;
  line-height: 1.35;
}

.footer-brand span {
  margin-top: 3px;
  color: #53647b;
  font-size: 12px;
  font-weight: 700;
}

.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(191, 210, 229, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(42, 74, 112, 0.08);
}

.footer-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #263a55;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.footer-links a:hover {
  background: #142033;
  color: #ffffff;
}

.footer-meta {
  justify-content: flex-end;
  gap: 8px;
}

.footer-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(55, 108, 255, 0.14);
  border-radius: 999px;
  background: rgba(55, 108, 255, 0.06);
  color: #26466c;
  font-size: 12px;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--delay, 0ms);
}

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

.hero .reveal,
.clinical .reveal,
.closing-shell.reveal {
  opacity: 1;
  transform: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(-0.8%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(1%, -0.8%, 0);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-inner,
  .intro-grid,
  .screen-showcase,
  .clinical-layout,
  .closing-shell {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10em;
  }

  .hero-inner {
    align-items: start;
    padding-top: 132px;
  }

  .hero-panel {
    justify-self: start;
    max-width: 360px;
  }

  .feature-grid,
  .timeline,
  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-grid::before {
    display: none;
  }

  .screen-device {
    max-height: 640px;
  }

  .closing {
    padding-top: 82px;
  }

  .closing-shell {
    min-height: 0;
  }

  .closing-copy {
    max-width: none;
  }

  .closing-copy h2 {
    max-width: 11em;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
    padding-left: 12px;
  }

  .brand {
    min-width: 0;
    font-size: 13px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .section-pad {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .workflow {
    width: 100%;
    max-width: none;
    padding: 64px 14px;
    background-position: 58% center;
  }

  .workflow .section-heading h2 {
    font-size: 28px;
    line-height: 1.22;
  }

  .architecture {
    width: 100%;
    max-width: none;
    padding: 64px 14px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    min-height: 72svh;
    padding: 128px 0 18px;
  }

  h1 {
    max-width: 9.8em;
    font-size: 36px;
    line-height: 1.15;
  }

  .hero-lede {
    font-size: 16px;
  }

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

  .hero-panel {
    display: none;
  }

  .floating-chip {
    position: static;
    display: inline-grid;
    margin: 12px 8px 0 0;
  }

  .phone-shell {
    border-radius: 26px;
  }

  .hero-bottom {
    display: none;
  }

  .intro {
    padding-top: 42px;
  }

  .metric-row {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-grid,
  .timeline,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .timeline-item,
  .architecture-card {
    min-height: 0;
  }

  .timeline-item span {
    margin-bottom: 32px;
  }

  .architecture-card span {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-width: 6px;
  }

  .tech-stack {
    padding: 14px;
  }

  .tech-stack span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 0 10px;
    text-align: center;
  }

  .screen-showcase {
    padding: 18px;
  }

  .screen-copy {
    padding: 0;
  }

  .screen-tabs button {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
  }

  .screen-device {
    max-height: 540px;
    border-width: 8px;
    border-radius: 24px;
  }

  .screen-device img {
    border-radius: 16px;
  }

  .value-item {
    grid-template-columns: 42px 1fr;
    padding: 18px;
  }

  .value-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .value-icon svg {
    width: 23px;
    height: 23px;
  }

  .closing {
    padding: 64px 14px 28px;
  }

  .closing-shell {
    padding: 24px 22px;
  }

  .closing-copy h2 {
    max-width: 10.8em;
    font-size: 29px;
    line-height: 1.16;
  }

  .closing-copy .title-nowrap {
    white-space: normal;
  }

  .closing-copy p,
  .closing-grid article p {
    font-size: 15px;
  }

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

  .closing-panel {
    padding: 16px;
  }

  .closing-score {
    padding: 18px;
  }

  .closing-grid article {
    grid-template-columns: 1fr;
  }

  .closing-grid article span {
    grid-row: auto;
  }

  .site-footer {
    width: calc(100% - 28px);
    padding-bottom: 28px;
  }

  .footer-links {
    border-radius: 18px;
  }

  .footer-links a,
  .footer-meta span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
