:root {
  font-family: 'DM Sans', sans-serif;
  color: #171c1a;
  background: #f4f1ea;
  --paper: #f4f1ea;
  --white: #fffefa;
  --ink: #171c1a;
  --muted: #68716d;
  --green: #153c30;
  --mint: #c6ead8;
  --blue: #506cf0;
  --coral: #ee755c;
  --line: #d9ddd7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
::selection { color: white; background: var(--green); }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(23,28,26,.1);
  background: rgba(244,241,234,.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--green); box-shadow: 0 5px 13px rgba(21,60,48,.15); }
.brand-mark img { width: 23px; height: 23px; display: block; }
.nav nav { display: flex; gap: 32px; }
.nav nav a { color: #505a55; text-decoration: none; font-size: 12px; font-weight: 600; }
.nav-cta { justify-self: end; padding: 10px 13px; border: 1px solid var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; }
.nav-cta span { margin-left: 18px; }

.hero {
  min-height: 830px;
  padding: 135px max(24px, calc((100vw - 1200px) / 2)) 82px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 84px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .section-label { color: #566c62; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.hero h1 { margin: 24px 0 27px; font: 400 clamp(58px, 6.2vw, 90px)/.93 'Instrument Serif', serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-style: italic; }
.hero-lead { max-width: 640px; color: #4f5a55; font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; text-decoration: none; font-size: 12px; font-weight: 700; }
.button.primary { padding: 0 16px; color: #fff; background: var(--green); }
.button.text { color: #52605a; }
.hero-note { margin-top: 45px; display: flex; align-items: center; gap: 13px; }
.people-stack { display: flex; }
.people-stack span { width: 31px; height: 31px; display: grid; place-items: center; margin-left: -6px; border: 2px solid var(--paper); border-radius: 50%; color: white; background: #ae6a61; font-size: 8px; font-weight: 700; }
.people-stack span:first-child { margin-left: 0; }
.people-stack span:nth-child(2) { background: #4f7187; }
.people-stack .ai-dot { color: var(--green); background: var(--mint); }
.hero-note p { margin: 0; color: #7b847f; font-size: 10px; line-height: 1.5; }
.hero-note strong { color: #435048; }

.care-room { position: relative; border: 1px solid #cfd6d1; border-radius: 14px; background: #fff; box-shadow: 0 28px 75px rgba(32,48,40,.12); overflow: hidden; }
.room-header { height: 68px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e8e6; }
.room-header > div:first-child { display: flex; align-items: center; gap: 10px; }
.room-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #6b423b; background: #f0d9d4; font-size: 10px; font-weight: 700; }
.room-header strong, .room-header small { display: block; }
.room-header strong { font-size: 11px; }
.room-header small { margin-top: 3px; color: #929c96; font-size: 8px; }
.room-people { display: flex; }
.room-people span { width: 27px; height: 27px; margin-left: -6px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #ae6a61; font-size: 7px; font-weight: 700; }
.room-people span:nth-child(2) { background: #4f7187; }
.room-people span:nth-child(3) { color: var(--green); background: var(--mint); }
.room-context { height: 40px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8ebe9; color: #78837d; background: #fafbfa; font-size: 8px; }
.room-context button { padding: 5px 7px; border: 1px solid #d9e1dc; border-radius: 6px; color: #4c6659; background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }
.room-context button i { min-width: 15px; margin-left: 4px; padding: 1px 4px; border-radius: 8px; color: #fff; background: var(--green); font-size: 6px; font-style: normal; }
.room-messages { min-height: 435px; padding: 22px 23px 18px; }
.message { max-width: 88%; margin-bottom: 20px; display: grid; grid-template-columns: 29px 1fr; gap: 9px; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 7px; font-weight: 700; }
.patient-avatar { background: #ae6a61; }
.clinician-avatar { background: #4f7187; }
.byline { margin: 0 0 5px; color: #49564f; font-size: 8px; font-weight: 700; }
.byline time { margin-left: 5px; color: #a1aaa5; font-weight: 500; }
.bubble { margin: 0; padding: 10px 11px; border-radius: 3px 10px 10px 10px; color: #46534c; background: #f3f5f4; font-size: 10px; line-height: 1.5; }
.patient .bubble { background: #faf3f1; }
.ambient-entry { margin: 23px 0 0 37px; padding: 14px; border: 1px solid #d2e4da; border-radius: 10px; background: #f3f9f6; }
.ambient-head { display: flex; align-items: center; gap: 7px; }
.ambient-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 10px; }
.ambient-head strong { color: #365242; font-size: 9px; }
.ambient-head small { margin-left: auto; color: #8a9890; font-size: 7px; }
.ambient-entry > p { margin: 10px 0 11px; color: #536159; font-size: 9px; line-height: 1.55; }
.landing-eeg { margin: 10px 0 12px; padding: 7px 8px; border: 1px solid #e0e8e3; border-radius: 6px; background: #fff; }
.landing-eeg > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; }
.landing-eeg span { color: #7d8b83; font: 6px/1.2 monospace; }
.landing-eeg svg { width: 100%; height: 22px; }
.landing-grid { fill: none; stroke: #edf1ef; stroke-width: .7; }
.landing-trace { fill: none; stroke: #2e7553; stroke-width: 1.1; }
.landing-trace.secondary { stroke: #687cac; }
.source-row { display: flex; flex-wrap: wrap; gap: 5px; }
.source-row button { padding: 4px 6px; border: 1px solid #d7e2dc; border-radius: 5px; color: #5e7267; background: #fff; font-size: 6px; }
.room-composer { height: 58px; margin: 0 17px 17px; padding: 0 10px 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #cfd8d3; border-radius: 9px; color: #a0a9a4; font-size: 9px; }
.room-composer button { width: 29px; height: 29px; border: 0; border-radius: 7px; color: #fff; background: var(--green); cursor: pointer; }
.context-popover { position: absolute; top: 100px; right: 14px; z-index: 5; width: 240px; padding: 13px; border: 1px solid #d5ddd8; border-radius: 9px; background: #fff; box-shadow: 0 15px 38px rgba(28,45,36,.16); }
.context-popover > div { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.context-popover strong { font-size: 9px; }
.context-popover button { border: 0; background: transparent; font-size: 16px; cursor: pointer; }
.context-popover p { margin: 8px 0; display: flex; align-items: center; gap: 7px; color: #647169; font-size: 8px; }
.context-popover p span { width: 6px; height: 6px; border-radius: 50%; background: #63a47f; }

.integration-strip { padding: 25px max(24px, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: 300px 1fr; align-items: center; border-bottom: 1px solid var(--line); background: var(--white); }
.integration-strip p { margin: 0; color: #647069; font-size: 10px; font-weight: 700; }
.integration-strip div { display: flex; align-items: center; justify-content: space-between; color: #3d4943; font-size: 10px; font-weight: 700; }
.integration-strip i { width: 3px; height: 3px; border-radius: 50%; background: #b8c0bb; }
.section { padding: 120px max(24px, calc((100vw - 1200px) / 2)); }
.statement { background: var(--white); }
.statement-grid { margin-top: 25px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; }
.statement h2, .how h2, .trust h2, .cta h2 { margin: 0; font: 400 clamp(45px, 5.1vw, 70px)/.98 'Instrument Serif', serif; letter-spacing: -.045em; }
.statement h2 em { color: var(--blue); font-style: italic; }
.statement-grid > div p { margin: 0 0 18px; color: #59645e; font-size: 15px; line-height: 1.75; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 82px; border-top: 1px solid var(--line); }
.roles-grid article { min-height: 330px; padding: 24px 30px 28px 0; border-right: 1px solid var(--line); }
.roles-grid article + article { padding-left: 30px; }
.roles-grid article:last-child { border-right: 0; }
.role-number { color: #9aa39e; font-size: 8px; font-weight: 800; }
.role-avatar { width: 40px; height: 40px; margin-top: 55px; display: grid; place-items: center; border-radius: 12px; font-size: 10px; font-weight: 800; }
.patient-role { color: #724a43; background: #f0dcd8; }
.clinician-role { color: #34536a; background: #dce8ef; }
.ai-role { color: var(--green); background: var(--mint); }
.roles-grid h3 { max-width: 300px; margin: 18px 0 12px; font-size: 21px; line-height: 1.15; letter-spacing: -.035em; }
.roles-grid p { color: #68736d; font-size: 12px; line-height: 1.65; }

.how { color: #eef3f0; background: #13231c; }
.section-label.light { color: #9fcdb7; }
.how-heading { display: grid; grid-template-columns: .45fr 1.05fr .5fr; gap: 55px; align-items: end; }
.how-heading > p:last-child { margin: 0; color: #a4b4ab; font-size: 14px; line-height: 1.6; }
.ambient-flow { margin-top: 75px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.flow-step { padding: 22px 0; display: grid; grid-template-columns: 35px 1fr; gap: 12px; border-top: 1px solid #3b4a43; opacity: .48; cursor: pointer; transition: opacity .25s; }
.flow-step.active { opacity: 1; }
.flow-step > span { color: #9fcdb7; font-size: 8px; font-weight: 800; }
.flow-step h3 { margin: 0 0 6px; font-size: 15px; }
.flow-step p { margin: 0; color: #a8b5ae; font-size: 11px; line-height: 1.55; }
.flow-visual { position: relative; min-height: 350px; display: grid; place-items: center; border: 1px solid #3a4b43; border-radius: 12px; background: #182a22; overflow: hidden; }
.flow-visual::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(#6d877a 1px, transparent 1px), linear-gradient(90deg, #6d877a 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle, black, transparent 70%); }
.flow-pulse { position: absolute; width: 210px; height: 210px; border: 1px solid #6da58a; border-radius: 50%; animation: pulse 3s ease-out infinite; }
@keyframes pulse { from { opacity: .8; transform: scale(.55); } to { opacity: 0; transform: scale(1.25); } }
#flowCard { position: relative; z-index: 2; width: min(360px, 78%); padding: 19px; border: 1px solid #d8e4dd; border-radius: 10px; color: #293a31; background: #f7faf8; box-shadow: 0 18px 50px rgba(0,0,0,.2); transition: transform .22s, opacity .22s; }
#flowCard small { color: #63806f; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
#flowCard p { margin: 12px 0 8px; font-size: 12px; line-height: 1.55; }
#flowCard span { color: #8c9791; font-size: 8px; }

.trust { background: var(--paper); }
.trust-intro { display: grid; grid-template-columns: .45fr 1.05fr .5fr; gap: 55px; align-items: end; }
.trust-intro > p:last-child { margin: 0; color: #69746e; font-size: 14px; line-height: 1.65; }
.trust-list { margin-top: 75px; border-top: 1px solid #bcc4bf; }
.trust-list article { padding: 27px 0; display: grid; grid-template-columns: .45fr 1.05fr .5fr; gap: 55px; align-items: start; border-bottom: 1px solid #c8ceca; }
.trust-list article > span { color: #7c8982; font-size: 9px; font-weight: 800; }
.trust-list h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.trust-list p { margin: 3px 0 0; color: #69746e; font-size: 12px; line-height: 1.6; }

.cta { padding: 110px max(24px, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: 1.2fr .8fr; gap: 110px; align-items: end; color: white; background: var(--blue); }
.cta .section-label { color: #ced7ff; }
.cta h2 { margin-top: 24px; }
.cta > div:last-child p { margin: 0 0 27px; color: #e2e6ff; font-size: 15px; line-height: 1.65; }
.button.dark { color: #fff; background: #111b17; }

footer { padding: 62px max(24px, calc((100vw - 1200px) / 2)) 25px; color: #e7eeea; background: #111916; }
footer .brand-mark { background: #1b3027; box-shadow: none; }
.footer-brand p { margin: 15px 0 52px; color: #84968d; font-size: 11px; }
.footer-links { display: flex; gap: 27px; }
.footer-links a { color: #afbbb5; text-decoration: none; font-size: 11px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid #344139; color: #75877e; font-size: 9px; }
.footer-bottom a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(14px); animation: reveal .75s ease forwards .1s; }
.reveal.delay { animation-delay: .25s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 120px; }
  .care-room { max-width: 660px; }
  .integration-strip { grid-template-columns: 1fr; gap: 17px; }
  .integration-strip div { justify-content: flex-start; flex-wrap: wrap; gap: 15px 24px; }
  .statement-grid, .how-heading, .trust-intro, .cta { grid-template-columns: 1fr; gap: 36px; }
  .ambient-flow { grid-template-columns: 1fr; }
  .trust-list article { grid-template-columns: 50px 1fr; gap: 16px; }
  .trust-list article p { grid-column: 2; }
}

@media (max-width: 620px) {
  .nav { height: 64px; }
  .nav-cta span { display: none; }
  .hero { min-height: 0; padding-top: 105px; }
  .hero h1 { font-size: 56px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .room-messages { min-height: 470px; padding-inline: 14px; }
  .ambient-entry { margin-left: 0; }
  .ambient-head { flex-wrap: wrap; }
  .ambient-head small { width: 100%; margin-left: 29px; }
  .section { padding-top: 85px; padding-bottom: 85px; }
  .statement h2, .how h2, .trust h2, .cta h2 { font-size: 44px; }
  .roles-grid { grid-template-columns: 1fr; }
  .roles-grid article, .roles-grid article + article { min-height: auto; padding: 28px 0 36px; border-right: 0; border-bottom: 1px solid var(--line); }
  .role-avatar { margin-top: 30px; }
  .ambient-flow { gap: 38px; }
  .flow-visual { min-height: 300px; }
  .cta { padding-top: 85px; padding-bottom: 85px; }
  .footer-bottom { flex-direction: column; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
