:root {
  color-scheme: light dark;
  --bg: #f4f8fb;
  --surface: #eaf1f6;
  --surface-raised: #fbfdfe;
  --surface-accent: #dfeaf8;
  --text: #0d1c29;
  --muted: #516575;
  --line: rgba(20, 55, 78, 0.15);
  --accent: #2864d8;
  --accent-deep: #174ba9;
  --accent-soft: #dce9fb;
  --on-accent: #f8fbff;
  --shadow: 0 28px 70px rgba(38, 73, 102, 0.14);
  --header-bg: rgba(244, 248, 251, 0.86);
  --radius: 26px;
  --radius-small: 14px;
  --content: min(1280px, calc(100vw - 64px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09121a;
    --surface: #101d27;
    --surface-raised: #14232e;
    --surface-accent: #152b43;
    --text: #edf5f8;
    --muted: #a5b6c1;
    --line: rgba(202, 226, 239, 0.16);
    --accent: #6e9ff5;
    --accent-deep: #91b6f8;
    --accent-soft: #18304b;
    --on-accent: #09121a;
    --shadow: 0 30px 80px rgba(1, 8, 14, 0.34);
    --header-bg: rgba(9, 18, 26, 0.86);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #eaf1f6;
  --surface-raised: #fbfdfe;
  --surface-accent: #dfeaf8;
  --text: #0d1c29;
  --muted: #516575;
  --line: rgba(20, 55, 78, 0.15);
  --accent: #2864d8;
  --accent-deep: #174ba9;
  --accent-soft: #dce9fb;
  --on-accent: #f8fbff;
  --shadow: 0 28px 70px rgba(38, 73, 102, 0.14);
  --header-bg: rgba(244, 248, 251, 0.86);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09121a;
  --surface: #101d27;
  --surface-raised: #14232e;
  --surface-accent: #152b43;
  --text: #edf5f8;
  --muted: #a5b6c1;
  --line: rgba(202, 226, 239, 0.16);
  --accent: #6e9ff5;
  --accent-deep: #91b6f8;
  --accent-soft: #18304b;
  --on-accent: #09121a;
  --shadow: 0 30px 80px rgba(1, 8, 14, 0.34);
  --header-bg: rgba(9, 18, 26, 0.86);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-weight: 560;
  line-height: 0.98;
}

h3 {
  font-weight: 600;
  line-height: 1.05;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 10px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(38, 73, 102, 0.06);
}

.brand {
  width: 176px;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  padding-inline: 24px;
}

.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a[aria-current="location"] {
  color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="location"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-family: inherit;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.header-cta,
.button--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.header-cta:hover,
.button--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.header-cta:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: var(--content);
  min-height: calc(100dvh - 74px);
  margin: 0 auto;
  padding: clamp(44px, 6vh, 74px) 0;
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(0px, 2vw, 24px);
  animation: hero-enter 900ms var(--ease-out) both;
}

.hero__label,
.section-kicker {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label,
.footer-label {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero__label {
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 3.75vw, 4.4rem);
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero__intro {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--text);
  font-weight: 650;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.hero__media {
  position: relative;
  margin: 0;
  animation: hero-image-enter 1100ms 120ms var(--ease-out) both;
}

.hero__image-wrap {
  position: relative;
  isolation: isolate;
}

.hero__image-wrap::before {
  position: absolute;
  inset: -18px 4% 18px -18px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-accent);
  content: "";
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(480px, 66dvh, 650px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 72% center;
}

.hero__media figcaption {
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
}

.signal-rail {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 0;
  width: var(--content);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-rail h2,
.signal-rail__item {
  min-height: 190px;
  padding: 34px clamp(22px, 3vw, 42px);
}

.signal-rail h2 {
  margin-bottom: 0;
  padding-left: 0;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.signal-rail__item {
  border-left: 1px solid var(--line);
}

.signal-rail__item span {
  display: block;
  margin-bottom: 36px;
  font-size: 0.84rem;
  font-weight: 700;
}

.signal-rail__item p {
  max-width: 25ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-shell {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(100px, 12vw, 170px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 64px;
}

.section-heading h2,
.workflow__intro h2,
.about__copy h2,
.principles__statement h2,
.direction__title h2,
.cta h2,
.faq__heading h2 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
}

.section-heading > p:last-child,
.workflow__intro > p,
.about__copy > p,
.principles__statement > p,
.direction__item p,
.faq__heading p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-kicker {
  margin-bottom: 22px;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  grid-template-areas:
    "conversation records"
    "imaging systems";
  gap: 18px;
}

.platform-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.platform-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.platform-card p:not(.card-label) {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--muted);
}

.platform-card--conversation {
  grid-area: conversation;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 64px);
  background: var(--accent);
  color: var(--on-accent);
}

.platform-card--conversation .card-label,
.platform-card--conversation p:not(.card-label) {
  color: var(--on-accent);
}

.waveform {
  display: flex;
  align-items: center;
  width: 100%;
  height: 96px;
  gap: clamp(5px, 1vw, 12px);
  padding-top: 34px;
  opacity: 0.9;
}

.waveform span {
  display: block;
  width: 100%;
  height: 72%;
  border-radius: 999px;
  background: var(--on-accent);
  transform: scaleY(0.28);
  transform-origin: center;
}

.waveform span:nth-child(2n) { --wave: 0.48; }
.waveform span:nth-child(3n) { --wave: 0.86; }
.waveform span:nth-child(4n) { --wave: 0.62; }
.waveform span:nth-child(5n) { --wave: 1; }

.platform-card--records {
  grid-area: records;
  min-height: 420px;
  padding: clamp(32px, 4vw, 52px);
}

.record-lines {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.record-lines span {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 620;
}

.record-lines span:last-child {
  border-bottom: 0;
}

.platform-card--imaging {
  grid-area: imaging;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 390px;
}

.platform-card--imaging img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.platform-card--imaging div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 52px);
}

.platform-card--systems {
  grid-area: systems;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 52px);
  background: var(--surface-accent);
}

.system-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 46px;
}

.system-list span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(60px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.workflow__intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.workflow__intro h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

.workflow__steps {
  display: grid;
  gap: 0;
}

.workflow-step {
  min-height: 220px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-step:first-child {
  padding-top: 0;
}

.workflow-step:last-child {
  border-bottom: 0;
}

.workflow-step h3 {
  margin-bottom: 20px;
  color: var(--accent-deep);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.workflow-step p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.about__media {
  position: relative;
  margin: 0;
}

.about__media::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 48%;
  height: 42%;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--accent-soft);
  content: "";
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.about__copy h2 {
  font-size: clamp(2.8rem, 4.7vw, 4.8rem);
}

.about__copy .text-link {
  margin-top: 12px;
}

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(60px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.principles__statement h2 {
  font-size: clamp(2.8rem, 4.9vw, 5rem);
}

.principles__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 46px 36px;
}

.principles__list article {
  padding-top: 22px;
  border-top: 3px solid var(--accent);
}

.principles__list h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.principles__list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.direction {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(64px, 9vw, 140px);
}

.direction__title {
  align-self: start;
}

.direction__title h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

.direction__track {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 42px;
}

.direction__track::before {
  position: absolute;
  top: 11px;
  bottom: 52px;
  left: 8px;
  width: 1px;
  background: var(--line);
  content: "";
}

.direction__item {
  position: relative;
  min-height: 190px;
  padding-bottom: 54px;
}

.direction__marker {
  position: absolute;
  top: 11px;
  left: -42px;
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.direction__item h3 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  width: min(1380px, calc(100vw - 32px));
  padding: clamp(70px, 9vw, 120px) clamp(28px, 7vw, 100px);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
}

.cta .section-kicker,
.cta__copy > p:last-child {
  color: var(--on-accent);
}

.cta h2 {
  max-width: 880px;
  margin-bottom: 22px;
}

.cta__copy > p:last-child {
  max-width: 56ch;
  margin-bottom: 0;
  opacity: 0.85;
  font-size: 1.05rem;
}

.button--light {
  border-color: var(--on-accent);
  background: var(--on-accent);
  color: var(--accent-deep);
}

.button--light:hover {
  background: transparent;
  color: var(--on-accent);
  transform: translateY(-2px);
}

.faq {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(60px, 9vw, 140px);
}

.faq__heading {
  align-self: start;
}

.faq__heading h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list details:first-child {
  border-top: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  padding: 28px 54px 28px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.14rem;
  font-weight: 650;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::before,
.faq__list summary::after {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transition: transform 220ms var(--ease-out);
}

.faq__list summary::after {
  transform: rotate(90deg);
}

.faq__list details[open] summary::after {
  transform: rotate(0deg);
}

.faq__list details p {
  max-width: 62ch;
  margin: -4px 54px 28px 0;
  color: var(--muted);
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.7fr);
  gap: 56px;
  width: var(--content);
  margin: 0 auto;
  padding: 72px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer__brand img {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.site-footer__brand p {
  max-width: 46ch;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-label {
  margin-bottom: 10px;
}

.site-footer a,
.footer-link {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.site-footer a:hover,
.footer-link:hover {
  color: var(--text);
}

.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer__bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.legal-page .site-header {
  border-bottom-color: var(--line);
}

.legal-hero {
  display: flex;
  width: var(--content);
  min-height: min(620px, calc(100dvh - 74px));
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) 0 clamp(72px, 9vw, 120px);
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}

.legal-hero__label {
  margin-bottom: 28px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
}

.legal-hero__intro {
  max-width: 700px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.legal-hero__meta {
  display: flex;
  gap: 12px 28px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-hero__meta strong {
  color: var(--text);
  font-weight: 650;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(60px, 10vw, 160px);
  padding-top: clamp(70px, 8vw, 110px);
}

.legal-toc {
  position: sticky;
  top: 118px;
  padding-top: 20px;
  border-top: 3px solid var(--accent);
}

.legal-toc > p {
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 700;
}

.legal-toc__links {
  display: grid;
  gap: 8px;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.legal-toc a:hover {
  color: var(--accent-deep);
  transform: translateX(3px);
}

.legal-content {
  width: min(100%, 820px);
}

.legal-section {
  padding: 0 0 54px;
  scroll-margin-top: 118px;
}

.legal-section + .legal-section {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.legal-section h3 {
  margin: 30px 0 12px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-section p {
  max-width: 72ch;
  margin-bottom: 18px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  max-width: 72ch;
  margin: 22px 0 0;
  padding-left: 1.25rem;
  gap: 10px;
}

.legal-section a,
.legal-contact-link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 4px;
}

.legal-section a:hover,
.legal-contact-link:hover {
  text-decoration-color: var(--accent);
}

.legal-note {
  margin: 10px 0 28px;
  padding: 24px 26px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--surface-accent);
}

.legal-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.legal-note p {
  margin: 0;
  font-size: 0.94rem;
}

.legal-contact {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.legal-contact span {
  color: var(--muted);
  font-size: 0.88rem;
}

body.modal-open {
  overflow: hidden;
}

.demo-modal {
  width: min(900px, calc(100% - 32px));
  max-height: min(90dvh, 820px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 36px 110px rgba(3, 17, 28, 0.32);
}

.demo-modal::backdrop {
  background: rgba(4, 16, 26, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-modal[open] {
  animation: modal-enter 360ms var(--ease-out) both;
}

.demo-modal__panel {
  padding: clamp(28px, 5vw, 58px);
}

.demo-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  margin-bottom: 38px;
}

.demo-modal__label {
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-modal__header h2 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.demo-modal__header p:last-child {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--muted);
}

.demo-modal__close {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.demo-modal__close:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.demo-form,
.form-field {
  display: grid;
}

.demo-form {
  gap: 24px;
}

.demo-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-field {
  gap: 8px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 6px;
}

.demo-form__footer p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.demo-form__footer .button {
  flex: 0 0 auto;
}

.demo-form__footer .button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.form-status {
  min-height: 1.45em;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
}

.form-status[data-state="success"] {
  color: #197449;
}

.form-status[data-state="error"] {
  color: #b52a34;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}

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

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-enter {
  from { opacity: 0; transform: translateY(34px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .waveform span {
    animation: voice-wave 1.9s var(--ease-out) infinite alternate;
    animation-delay: calc(var(--index, 1) * -90ms);
  }

  .waveform span:nth-child(1) { --index: 1; }
  .waveform span:nth-child(2) { --index: 2; }
  .waveform span:nth-child(3) { --index: 3; }
  .waveform span:nth-child(4) { --index: 4; }
  .waveform span:nth-child(5) { --index: 5; }
  .waveform span:nth-child(6) { --index: 6; }
  .waveform span:nth-child(7) { --index: 7; }
  .waveform span:nth-child(8) { --index: 8; }
  .waveform span:nth-child(9) { --index: 9; }
  .waveform span:nth-child(10) { --index: 10; }
  .waveform span:nth-child(11) { --index: 11; }
  .waveform span:nth-child(12) { --index: 12; }
}

@keyframes voice-wave {
  from { transform: scaleY(0.18); opacity: 0.58; }
  to { transform: scaleY(var(--wave, 0.72)); opacity: 1; }
}

@media (max-width: 1100px) {
  :root {
    --content: min(100% - 40px, 980px);
  }

  .site-header {
    grid-template-columns: auto auto 1fr;
    padding-inline: 20px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    align-items: center;
    justify-self: end;
    gap: 12px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 650;
  }

  .menu-toggle__lines {
    position: relative;
    display: block;
    width: 26px;
    height: 18px;
  }

  .menu-toggle__lines i {
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 220ms var(--ease-out), top 220ms var(--ease-out);
  }

  .menu-toggle__lines i:first-child { top: 4px; }
  .menu-toggle__lines i:last-child { top: 13px; }

  .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { top: 8px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { top: 8px; transform: rotate(-45deg); }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 220ms var(--ease-out);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 14px 10px;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.8vw, 4.7rem);
  }

  .signal-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .signal-rail h2 {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 40px 0;
  }

  .signal-rail__item:first-of-type {
    border-left: 0;
  }

  .workflow,
  .principles,
  .direction,
  .faq {
    grid-template-columns: 1fr;
  }

  .workflow__intro {
    position: static;
  }

  .principles__statement,
  .direction__title,
  .faq__heading {
    max-width: 760px;
  }
}

@media (max-width: 820px) {
  :root {
    --content: calc(100% - 32px);
    --radius: 20px;
    --radius-small: 12px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    width: 154px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 84px;
  }

  .hero__copy {
    padding-left: 0;
  }

  .hero__label {
    margin-bottom: 22px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(3.15rem, 12vw, 5.2rem);
  }

  .hero__intro {
    max-width: 520px;
  }

  .hero__media img {
    height: clamp(300px, 75vw, 520px);
  }

  .hero__image-wrap::before {
    inset: -12px 18% 12px 0;
  }

  .hero__media figcaption {
    margin-left: 0;
  }

  .signal-rail {
    grid-template-columns: 1fr;
  }

  .signal-rail h2 {
    grid-column: auto;
    padding: 40px 0;
  }

  .signal-rail__item {
    min-height: auto;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .signal-rail__item span {
    margin-bottom: 12px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "conversation"
      "records"
      "imaging"
      "systems";
  }

  .platform-card--imaging {
    grid-template-columns: 1fr;
  }

  .platform-card--imaging img {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .workflow {
    gap: 50px;
  }

  .workflow-step {
    min-height: auto;
  }

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

  .about__media {
    order: 2;
  }

  .about__media::after {
    right: 0;
    bottom: -12px;
  }

  .principles__list {
    gap: 36px 24px;
  }

  .cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta .button {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
  }

  .demo-modal__panel {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .platform-card--conversation,
  .platform-card--records,
  .platform-card--systems {
    min-height: auto;
    padding: 30px 24px;
  }

  .platform-card--imaging div {
    padding: 30px 24px;
  }

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

  .cta {
    width: calc(100vw - 20px);
    padding: 58px 22px;
  }

  .cta .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .site-footer__brand,
  .site-footer__bottom {
    grid-column: 1 / -1;
  }

  .legal-hero {
    min-height: auto;
    padding: 80px 0 64px;
  }

  .legal-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .legal-hero__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-toc__links {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding-bottom: 42px;
  }

  .legal-section + .legal-section {
    padding-top: 42px;
  }

  .legal-note {
    padding: 20px;
  }

  .site-footer__bottom,
  .demo-form__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .demo-modal__panel {
    padding: 24px 20px;
  }

  .demo-modal__header {
    gap: 18px;
    margin-bottom: 30px;
  }

  .demo-modal__header h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .demo-modal__close {
    padding-inline: 13px;
  }

  .demo-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-color-scheme: dark) {
  .brand,
  .site-footer__brand img {
    border-radius: 10px;
    background: rgba(244, 248, 251, 0.92);
    box-shadow: 0 0 0 5px rgba(244, 248, 251, 0.92);
  }

  .hero__media img,
  .about__media img,
  .platform-card--imaging img {
    filter: brightness(0.86) saturate(0.9);
  }
}

:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .site-footer__brand img {
  border-radius: 10px;
  background: rgba(244, 248, 251, 0.92);
  box-shadow: 0 0 0 5px rgba(244, 248, 251, 0.92);
}

:root[data-theme="dark"] .hero__media img,
:root[data-theme="dark"] .about__media img,
:root[data-theme="dark"] .platform-card--imaging img {
  filter: brightness(0.86) saturate(0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .form-status[data-state="success"] { color: #62ce94; }
  :root:not([data-theme]) .form-status[data-state="error"] { color: #ff8c94; }
}

:root[data-theme="dark"] .form-status[data-state="success"] { color: #62ce94; }
:root[data-theme="dark"] .form-status[data-state="error"] { color: #ff8c94; }
