@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --forest: #0b3438;
  --forest-2: #105057;
  --ink: #132b30;
  --muted: #526a6e;
  --clinical: #12a49d;
  --clinical-light: #dff5f2;
  --paper: #f7f9f8;
  --white: #ffffff;
  --line: #d9e3e1;
  --coral: #df6854;
  --amber: #d39a35;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 3px solid rgba(18,164,157,.35); outline-offset: 3px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 9px 12px; background: white; color: var(--forest); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.site-header.scrolled { border-color: rgba(217,227,225,.8); background: rgba(247,249,248,.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; width: min(var(--max), calc(100% - 48px)); height: 76px; margin: auto; align-items: center; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; }
.landing-brand strong { color: var(--clinical); }
.landing-brand-mark { position: relative; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--forest); }
.landing-brand-mark::before, .landing-brand-mark::after { position: absolute; width: 13px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.landing-brand-mark::after { transform: rotate(90deg); }
.desktop-nav { display: flex; gap: 31px; margin-left: auto; }
.desktop-nav a, .text-link { color: #385359; font-size: 13px; font-weight: 500; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--clinical); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: 38px; }
.header-cta { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 0 15px; border-radius: 4px; background: var(--forest); color: white; font-size: 12px; font-weight: 600; }
.header-cta svg { width: 15px; }
.menu-button { display: none; width: 40px; height: 40px; margin-left: auto; padding: 0; place-items: center; border: 0; background: transparent; }
.menu-button svg { width: 20px; }
.mobile-nav { display: none; }

.hero { position: relative; display: grid; min-height: 800px; padding: 142px max(24px, calc((100vw - var(--max)) / 2)) 72px; grid-template-columns: minmax(400px,.82fr) minmax(560px,1.18fr); gap: 55px; align-items: center; overflow: hidden; background-color: #edf3f1; background-image: linear-gradient(rgba(11,52,56,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(11,52,56,.04) 1px, transparent 1px); background-size: 42px 42px; }
.hero::before { position: absolute; top: 0; right: 0; bottom: 0; width: 51%; background: var(--forest); content: ""; }
.hero-copy { position: relative; z-index: 2; align-self: center; }
.section-label { display: flex; gap: 14px; margin: 0 0 28px; color: var(--forest-2); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.section-label span + span::before { margin-right: 14px; color: #91a5a7; content: "/"; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 660px; margin: 0; color: var(--forest); font-size: clamp(52px,6vw,84px); font-weight: 500; line-height: .94; letter-spacing: 0; }
h1 em { color: var(--clinical); font-family: "Instrument Serif", serif; font-weight: 400; }
.hero-lede { max-width: 590px; margin: 28px 0 0; color: #38565b; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.primary-cta, .closing-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 11px; padding: 0 21px; border-radius: 4px; background: var(--forest); color: white; font-size: 13px; font-weight: 600; transition: transform .18s ease, background .18s ease; }
.primary-cta:hover, .closing-button:hover { background: var(--forest-2); transform: translateY(-2px); }
.primary-cta svg, .closing-button svg { width: 17px; }
.inline-link, .light-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.inline-link svg, .light-link svg { width: 16px; }
.hero-proof { display: grid; grid-template-columns: repeat(3,1fr); max-width: 620px; margin-top: 55px; padding-top: 20px; border-top: 1px solid #cbd8d6; }
.hero-proof div { padding-right: 14px; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { color: var(--forest); font: 600 11px "IBM Plex Mono", monospace; }
.hero-proof span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.verification-window { position: relative; z-index: 2; align-self: center; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: white; box-shadow: 0 35px 90px rgba(1,22,25,.3); }
.window-bar { display: flex; height: 51px; align-items: center; gap: 16px; padding: 0 15px; border-bottom: 1px solid #dce5e3; background: white; }
.window-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mini-cross { position: relative; width: 20px; height: 20px; border: 1px solid var(--forest); border-radius: 50%; }
.mini-cross::before, .mini-cross::after { position: absolute; top: 8px; left: 4px; width: 10px; height: 2px; background: var(--clinical); content: ""; }
.mini-cross::after { transform: rotate(90deg); }
.live-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #547075; font: 10px "IBM Plex Mono", monospace; }
.live-status i { width: 6px; height: 6px; border-radius: 50%; background: #34a86d; box-shadow: 0 0 0 4px rgba(52,168,109,.12); }
.window-bar > a { display: grid; width: 28px; height: 28px; place-items: center; color: var(--muted); }
.window-bar > a svg { width: 14px; }
.window-tabs { display: grid; grid-template-columns: repeat(4,1fr); background: #f3f6f5; }
.preview-tab { display: flex; min-width: 0; height: 47px; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 0; border-right: 1px solid #dce5e3; border-bottom: 2px solid transparent; background: transparent; color: #5c7074; font-size: 10px; }
.preview-tab:last-child { border-right: 0; }
.preview-tab svg { width: 13px; }
.preview-tab.active { border-bottom-color: var(--clinical); background: white; color: var(--forest); font-weight: 600; }
.iframe-shell { position: relative; height: 485px; overflow: hidden; background: #f5f7f6; }
.static-preview { display: grid; height: 100%; place-items: center; padding: 48px; background: #eef5f3; }
.preview-record { width: min(540px, 100%); padding: 34px; border: 1px solid #d7e2df; border-left: 4px solid var(--clinical); border-radius: 6px; background: white; box-shadow: 0 18px 45px rgba(10,47,53,.1); }
.preview-record span, .preview-record strong, .preview-record small { display: block; }
.preview-record span { color: var(--clinical); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.preview-record strong { margin-top: 16px; color: var(--ink); font-size: 27px; }
.preview-record small { margin-top: 8px; color: var(--muted); }
.iframe-shell iframe { width: 1440px; height: 900px; border: 0; transform: scale(.535); transform-origin: 0 0; pointer-events: none; }
.preview-loader { position: absolute; inset: 0; display: none; place-items: center; background: rgba(247,249,248,.9); color: var(--muted); font: 10px "IBM Plex Mono", monospace; }
.preview-loader.visible { display: grid; }
.preview-loader span { width: 22px; height: 22px; border: 2px solid #c8d7d4; border-top-color: var(--clinical); border-radius: 50%; animation: spin .7s linear infinite; }
.preview-loader p { margin: 8px 0 0; }
.hero-scroll { position: absolute; bottom: 21px; left: max(24px, calc((100vw - var(--max)) / 2)); z-index: 3; display: flex; align-items: center; gap: 9px; color: #698084; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.hero-scroll svg { width: 14px; }

.record-line { overflow: hidden; border-top: 1px solid #cad7d5; border-bottom: 1px solid #cad7d5; background: white; }
.record-track { display: flex; min-width: max-content; height: 62px; align-items: center; justify-content: center; gap: 24px; padding: 0 24px; color: #577075; font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.record-track svg { width: 14px; color: var(--clinical); }

.section { padding: 112px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; margin-bottom: 57px; }
.section-kicker { margin: 0 0 13px; color: var(--clinical); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2, .workflow h2, .analytics h2, .closing-cta h2 { margin: 0; color: var(--forest); font-size: clamp(36px,4.3vw,59px); font-weight: 500; line-height: 1.06; letter-spacing: 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.platform { background: white; }
.platform-ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; min-height: 112px; grid-template-columns: 75px 50px minmax(240px,1fr) 150px 22px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); transition: background .18s ease, padding .18s ease; }
.ledger-row:hover { padding-right: 14px; padding-left: 14px; background: #f5faf8; }
.ledger-code, .ledger-meta { color: #73888b; font: 500 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.ledger-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest-2); }
.ledger-icon svg { width: 18px; }
.ledger-copy strong, .ledger-copy small { display: block; }
.ledger-copy strong { font-size: 19px; }
.ledger-copy small { max-width: 620px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ledger-row > svg { width: 17px; color: var(--clinical); }

.workflow { display: grid; grid-template-columns: .72fr 1.28fr; gap: 100px; background: var(--forest); color: white; }
.section-kicker.light { color: #65d8d1; }
.workflow h2, .analytics h2, .closing-cta h2 { color: white; }
.workflow-intro > p:not(.section-kicker) { max-width: 460px; margin: 23px 0 28px; color: #b8ced0; line-height: 1.8; }
.light-link { color: #7ee0da; }
.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.workflow-steps li { display: grid; min-height: 135px; grid-template-columns: 48px 1fr 40px; gap: 18px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); }
.workflow-steps li > span { color: #66d6d0; font: 500 10px "IBM Plex Mono", monospace; }
.workflow-steps strong { display: block; font-size: 18px; }
.workflow-steps p { margin: 7px 0 0; color: #a9c1c4; font-size: 13px; }
.workflow-steps li > svg { width: 20px; color: #66d6d0; }

.capabilities { background: #eef3f2; }
.capability-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid #cbd8d6; border-left: 1px solid #cbd8d6; }
.capability { min-height: 330px; padding: 34px; border-right: 1px solid #cbd8d6; border-bottom: 1px solid #cbd8d6; background: rgba(255,255,255,.55); }
.capability-wide { display: grid; grid-column: 1 / -1; min-height: 400px; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; background: white; }
.capability-icon { display: grid; width: 45px; height: 45px; margin-bottom: 55px; place-items: center; border: 1px solid #bdcecb; border-radius: 50%; color: var(--forest-2); }
.capability-icon svg { width: 19px; }
.capability-label { color: var(--clinical); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.capability h3 { max-width: 500px; margin: 12px 0 13px; color: var(--forest); font-size: 25px; font-weight: 500; line-height: 1.25; }
.capability p { max-width: 525px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.capability a { display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; color: var(--forest-2); font-size: 12px; font-weight: 600; }
.capability a svg { width: 15px; }
.capability.exception { background: #fff4f1; }
.capability.exception .capability-icon { border-color: #edbcb3; color: var(--coral); }
.rx-specimen { border: 1px solid var(--line); border-radius: 5px; background: #f8faf9; }
.rx-specimen > div { display: grid; min-height: 91px; grid-template-columns: 58px 1fr 1.2fr 72px; gap: 14px; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); }
.rx-specimen > div:last-child { border-bottom: 0; }
.rx-specimen span { color: #6f8387; font: 9px "IBM Plex Mono", monospace; }
.rx-specimen strong { font-size: 14px; }
.rx-specimen small { color: var(--muted); }
.rx-specimen b { padding: 4px 8px; border-radius: 12px; background: #e4f4eb; color: #24734f; font: 500 9px "IBM Plex Mono", monospace; text-align: center; }

.analytics { display: grid; grid-template-columns: .72fr 1.28fr; gap: 100px; align-items: center; background: #123e43; color: white; }
.analytics-copy > p:not(.section-kicker) { max-width: 490px; margin: 24px 0 0; color: #b7ced0; line-height: 1.8; }
.analytics dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 40px 0 32px; }
.analytics dl div { padding: 0 17px; border-left: 1px solid rgba(255,255,255,.18); }
.analytics dl div:first-child { padding-left: 0; border-left: 0; }
.analytics dt { font: 500 28px "IBM Plex Mono", monospace; }
.analytics dd { margin: 6px 0 0; color: #9fbbbe; font-size: 11px; }
.analytics-visual { border: 1px solid rgba(255,255,255,.18); background: #0e3439; box-shadow: 0 25px 50px rgba(3,20,22,.2); }
.analytics-head, .analytics-bottom { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.analytics-head span, .analytics-head strong { display: block; }
.analytics-head div > span { color: #91b0b3; font-size: 10px; }
.analytics-head strong { margin-top: 2px; font-size: 14px; }
.verified-chip { display: flex !important; align-items: center; gap: 7px; color: #74dbb1 !important; font: 9px "IBM Plex Mono", monospace; }
.verified-chip i { width: 6px; height: 6px; border-radius: 50%; background: #4cc38d; }
.landing-chart { position: relative; height: 310px; padding: 30px 22px 38px; }
.chart-rule { position: absolute; right: 22px; left: 22px; border-top: 1px dashed rgba(255,255,255,.12); }
.chart-rule.r1 { top: 70px; }.chart-rule.r2 { top: 145px; }.chart-rule.r3 { top: 220px; }
.landing-chart svg { position: relative; z-index: 2; width: 100%; height: 240px; overflow: visible; }
.landing-chart polyline { fill: none; stroke: #5bd2cc; stroke-width: 3; vector-effect: non-scaling-stroke; }
.landing-chart circle { fill: #0e3439; stroke: #5bd2cc; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-fill { fill: rgba(91,210,204,.08); stroke: none; }
.chart-months { position: absolute; right: 22px; bottom: 16px; left: 22px; display: flex; justify-content: space-between; color: #759599; font: 9px "IBM Plex Mono", monospace; }
.analytics-bottom { min-height: 58px; border-top: 1px solid rgba(255,255,255,.13); border-bottom: 0; color: #8faeb1; font-size: 11px; }
.analytics-bottom span { display: flex; align-items: center; gap: 8px; }
.analytics-bottom svg { width: 15px; color: #5bd2cc; }
.analytics-bottom strong { color: #6fd6a8; font: 500 11px "IBM Plex Mono", monospace; }

.trust { background: white; }
.trust-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.trust-heading h2 { max-width: 630px; margin: 0; color: var(--forest); font-size: clamp(34px,4vw,55px); font-weight: 500; line-height: 1.06; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.trust-grid article { min-height: 260px; padding: 30px 30px 30px 0; border-right: 1px solid var(--line); }
.trust-grid article + article { padding-left: 30px; }
.trust-grid article:last-child { border-right: 0; }
.trust-grid svg { width: 23px; color: var(--clinical); }
.trust-grid h3 { margin: 55px 0 10px; font-size: 18px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.closing-cta { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; background: var(--clinical); color: white; }
.closing-cta > div:last-child p { max-width: 460px; margin: 0 0 24px; color: #e4fffc; line-height: 1.7; }
.closing-button { background: var(--forest); }

.site-footer { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; padding: 70px max(24px, calc((100vw - var(--max)) / 2)) 24px; background: #08282c; color: white; }
.site-footer .landing-brand-mark { color: #66d6d0; }
.footer-brand p { max-width: 390px; margin: 18px 0 0; color: #88a6aa; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links div { display: grid; align-content: start; gap: 10px; }
.footer-links strong { margin-bottom: 5px; color: #67d6d0; font: 600 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.footer-links a { color: #adc2c5; font-size: 12px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; grid-column: 1 / -1; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #6f9094; font: 9px "IBM Plex Mono", monospace; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 130px; }
  .hero::before { top: auto; width: 100%; height: 41%; }
  .hero-copy { max-width: 800px; }
  .verification-window { width: min(900px,100%); }
  .iframe-shell { height: 430px; }
  .iframe-shell iframe { transform: scale(.49); }
  .workflow, .analytics { gap: 55px; }
}

@media (max-width: 900px) {
  .desktop-nav, .header-actions { display: none; }
  .menu-button { display: grid; }
  .mobile-nav { position: fixed; inset: 76px 0 auto; display: grid; padding: 18px 24px 28px; border-bottom: 1px solid var(--line); background: var(--paper); transform: translateY(-130%); transition: transform .22s ease; }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .workflow, .analytics { grid-template-columns: 1fr; }
  .workflow-intro { max-width: 650px; }
  .capability-wide { grid-template-columns: 1fr; }
  .analytics-visual { width: 100%; }
}

@media (max-width: 680px) {
  .header-inner { width: calc(100% - 32px); height: 68px; }
  .mobile-nav { top: 68px; }
  .hero { padding: 112px 16px 58px; grid-template-columns: minmax(0,1fr); gap: 42px; background-size: 32px 32px; }
  .hero::before { height: 36%; }
  h1 { font-size: clamp(45px,14vw,64px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-proof { grid-template-columns: 1fr; gap: 13px; margin-top: 38px; }
  .hero-proof div { padding-left: 11px; border-left: 2px solid #a7bab7; }
  .window-tabs { grid-template-columns: 1fr 1fr; }
  .preview-tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .iframe-shell { height: 360px; }
  .iframe-shell iframe { width: 1200px; transform: scale(.36); }
  .hero-scroll { display: none; }
  .record-track { justify-content: flex-start; animation: marquee 18s linear infinite; }
  .section { padding: 80px 16px; }
  .section-heading { margin-bottom: 38px; }
  .ledger-row { min-height: 150px; grid-template-columns: 45px 1fr 20px; gap: 12px; padding: 18px 0; }
  .ledger-icon, .ledger-meta { display: none; }
  .ledger-copy small { font-size: 12px; }
  .workflow { gap: 44px; }
  .workflow-steps li { grid-template-columns: 35px 1fr 25px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-wide { grid-column: auto; gap: 36px; }
  .capability { min-height: auto; padding: 28px 22px; }
  .capability-icon { margin-bottom: 38px; }
  .rx-specimen > div { grid-template-columns: 45px 1fr 70px; }
  .rx-specimen small { display: none; }
  .analytics dl { gap: 9px; }
  .analytics dl div { padding: 0 8px; }
  .analytics dt { font-size: 21px; }
  .landing-chart { height: 260px; }
  .landing-chart svg { height: 190px; }
  .trust-heading { align-items: flex-start; flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article, .trust-grid article + article { min-height: auto; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid h3 { margin-top: 35px; }
  .closing-cta { grid-template-columns: 1fr; gap: 38px; }
  .site-footer { grid-template-columns: 1fr; gap: 45px; padding-right: 16px; padding-left: 16px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  @keyframes marquee { to { transform: translateX(-45%); } }
}

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