:root {
    --ink: #1a202c;
    --brand-blue: #3b82f6;
    --brand-blue-deep: #1e3a8a;
    --brand-orange: #f08b1a;
    --paper: #ffffff;
    --line: #e2e8f0;
    --max: 1280px;
    --gutter: clamp(1rem, 2.5vw, 2.75rem);
    --radius: 24px;
    --bg-blank: #f1f5f9;
    --pillar-image-size: 42% auto;
    --nav-height: 72px;
    --section-offset: 5.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--bg-blank);
    line-height: 1.6;
    font-size: clamp(0.98rem, 0.16vw + 0.94rem, 1.08rem);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

header[id],
section[id],
footer[id] {
    scroll-margin-top: var(--section-offset);
}

/* BACKGROUND LAYERS */
.fixed-background-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-blank);
    z-index: -2;
}

.fixed-background-photo {
    position: fixed;
    top: var(--nav-height);
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    height: calc(100vh - var(--nav-height));
    z-index: -1;
    pointer-events: none;
}

.fixed-background-photo::before,
.fixed-background-photo::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
}

.fixed-background-photo::before {
    left: 0;
    width: 48%;
    background: var(--bg-blank);
}

.fixed-background-photo::after {
    right: 0;
    width: 52%;
    background-image: url('background.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.12) 10%, rgba(0,0,0,0.45) 20%, black 32%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.12) 10%, rgba(0,0,0,0.45) 20%, black 32%);
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--brand-blue-deep);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2rem, 1.5vw + 1.45rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 0.95vw + 1.5rem, 2.7rem); text-align: center; margin-bottom: clamp(2rem, 1.5vw + 1.5rem, 3rem); }
h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.2rem, 0.35vw + 1.08rem, 1.5rem); }
h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.05rem, 0.25vw + 0.98rem, 1.25rem); margin-bottom: 0.5rem; }

.container {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    padding: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-wrap {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
}

.logo img { height: 110px; width: auto; display: block; }

.nav-desktop {
    display: flex;
    gap: clamp(1rem, 1.6vw, 2rem);
    align-items: center;
}

.nav-desktop a,
.mobile-nav-links a {
    text-decoration: none;
    font-size: clamp(0.76rem, 0.08vw + 0.74rem, 0.86rem);
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-cta {
    white-space: nowrap;
}

.nav-toggle {
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid rgba(30, 58, 138, 0.14);
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
}

.nav-toggle-line {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-blue-deep);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
}

.mobile-nav-panel[hidden] {
    display: none;
}

.mobile-nav-links {
    padding: 0 0 1rem;
    display: grid;
    gap: 0.65rem;
}

.mobile-nav-links a:not(.btn) {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mobile-nav-links .btn {
    margin-top: 0.35rem;
}

.mobile-nav-links .btn-primary {
    color: #fff;
}

.btn {
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    padding: clamp(0.82rem, 0.25vw + 0.76rem, 1rem) clamp(1.4rem, 0.9vw + 1rem, 2.2rem);
    font-size: clamp(0.8rem, 0.1vw + 0.77rem, 0.9rem);
    text-transform: uppercase;
    border-radius: 60px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--brand-blue-deep); color: #fff; box-shadow: 0 10px 20px rgba(30,58,138,0.15); }
.btn-primary:hover { background: var(--brand-blue); transform: translateY(-3px); }

/* HERO SECTION - TRANSPARENT & ACCENTED */
.hero {
    padding: clamp(1.5rem, 2vw, 2.5rem) 0 clamp(2.75rem, 3vw, 4rem);
    min-height: calc(100svh - var(--nav-height));
    display: flex;
    align-items: center;
}

.hero-container {
    --hero-content-max: 40rem;
    background: transparent;
    position: relative;
    width: 100%;
    max-width: 860px;
    padding: clamp(0.5rem, 1vw, 1rem) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    justify-items: start;
}

.hero-copy {
    width: min(100%, var(--hero-content-max));
}

.hero h1 {
    color: var(--brand-blue-deep);
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
    max-width: 24ch;
    text-wrap: balance;
}

.hero p {
    font-size: clamp(1.02rem, 0.3vw + 0.95rem, 1.25rem);
    color: #1e293b;
    font-weight: 500;
    max-width: 100%;
    line-height: 1.72;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CONTENT CONTAINERS - FROSTED GLASS */
.floating-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 1vw + 1.2rem, 3.5rem);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
}

.eyebrow {
    color: var(--brand-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.section-padding {
    padding: clamp(2.5rem, 1.5vw + 2rem, 4rem) 0;
    position: relative;
    z-index: 10;
    background: var(--bg-blank);
}

.video-section {
    padding: 0 0 2rem;
    position: relative;
    z-index: 10;
    background: transparent;
}

.video-card {
    width: 100%;
    margin: 0;
}

.hero-video {
    width: min(100%, var(--hero-content-max));
    max-width: 100%;
}

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #000;
}

.video-frame strong {
    display: block;
    color: var(--brand-blue-deep);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    background: #000;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.28));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-play-button {
    width: clamp(64px, 7vw, 86px);
    height: clamp(64px, 7vw, 86px);
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-button:hover {
    transform: scale(1.04);
    background: #ffffff;
}

.video-play-button::before {
    content: "";
    margin-left: 5px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent var(--brand-blue-deep);
}

#solution {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 0;
}

#tech {
    background: transparent;
    position: relative;
    isolation: isolate;
}

#tech::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(241, 245, 249, 0.94) 0%, rgba(241, 245, 249, 0.84) 38%, rgba(241, 245, 249, 0.7) 55%, rgba(241, 245, 249, 0.34) 78%, rgba(241, 245, 249, 0.12) 100%),
        url('tech_background.png');
    background-size: cover, cover;
    background-position: center, center right;
    background-attachment: scroll, fixed;
    z-index: -1;
}

#tech .container {
    position: relative;
    z-index: 1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.trio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#partners .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-summary {
    font-size: clamp(1rem, 0.2vw + 0.96rem, 1.15rem);
    color: #4a5568;
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
    line-height: 1.85;
}

.solution-heading {
    margin-top: 3.5rem;
}

.feature-card {
    background: #fff;
    padding: clamp(1.25rem, 0.8vw + 1rem, 2.5rem);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover { transform: translateY(-5px); background: #fff; }

.feature-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

.stat-large {
    font-size: clamp(1.2rem, 0.3vw + 1.12rem, 1.5rem);
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 1.25rem;
    display: block;
    font-family: 'Inter', sans-serif;
    min-height: 4.6rem;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-row {
    display: flex;
    gap: 2rem;
    padding: clamp(1.35rem, 0.9vw + 1rem, 2.5rem);
    border-radius: var(--radius);
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 220px;
}

.pillar-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.98) 34%, rgba(248, 250, 252, 0.9) 52%, rgba(248, 250, 252, 0.55) 70%, rgba(248, 250, 252, 0.16) 84%, rgba(248, 250, 252, 0) 100%),
        var(--pillar-image);
    background-repeat: no-repeat;
    background-position: left top, right center;
    background-size: cover, var(--pillar-image-size);
    z-index: -1;
    filter: blur(0);
}

.pillar-row > * {
    position: relative;
    z-index: 1;
}

.pillar-content {
    max-width: 53%;
    padding-right: 1.0rem;
}

.pillar-content h4 {
    font-size: clamp(1.15rem, 0.5vw + 1rem, 1.55rem);
    margin-bottom: 0.9rem;
}

.pillar-content p {
    font-size: clamp(0.98rem, 0.12vw + 0.95rem, 1.08rem);
    line-height: 1.75;
    max-width: 30rem;
}

.pillar-clinical {
    --pillar-image: url('clinical_intelligence.png');
}

.pillar-workflow {
    --pillar-image: url('workflow_automation.jpg');
}

.pillar-privacy {
    --pillar-image: url('privacy_architecture.png');
}

.pillar-num {
    background: var(--brand-blue-deep);
    color: white;
    font-weight: 800;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.metric-card {
    background: #fff;
    padding: clamp(1.25rem, 0.7vw + 1rem, 2rem);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(30, 58, 138, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.metric-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.metric-card strong {
    color: var(--brand-blue-deep);
    font-size: clamp(1rem, 0.15vw + 0.96rem, 1.12rem);
    line-height: 1.35;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card p {
    color: #475569;
    line-height: 1.7;
}

.reliability-card {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(59, 130, 246, 0.14);
}

.reliability-card h3 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 0.6vw + 1.2rem, 2rem);
}

.reliability-intro {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    color: #475569;
    line-height: 1.75;
}

.reliability-eyebrow {
    display: block;
    text-align: center;
    color: var(--brand-blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.partner-box {
    background: var(--brand-blue-deep);
    color: #fff;
    padding: clamp(1.75rem, 1.5vw + 1.25rem, 4rem);
    border-radius: 40px;
    margin-top: 4rem;
    text-align: center;
}

.partner-box h3 { color: #fff; }

.about-intro {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #475569;
    font-size: clamp(1rem, 0.15vw + 0.96rem, 1.08rem);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(1.25rem, 0.7vw + 1rem, 2rem);
    box-shadow: 0 18px 35px rgba(30, 58, 138, 0.06);
}

.about-card h3 {
    margin-bottom: 1rem;
}

.about-card p {
    color: #475569;
    line-height: 1.8;
}

.section-heading-left {
    text-align: left;
}

#partners .section-heading-left {
    text-align: center;
}

.section-heading-spaced {
    margin-bottom: 3rem;
}

.partner-actions,
.footer-actions {
    margin-top: 1.5rem;
}

.partner-link-btn {
    background: #fff;
    color: var(--brand-blue-deep);
}

footer {
    padding: 4.5rem 0;
    background: var(--bg-blank);
    text-align: center;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

footer p {
    max-width: 42rem;
    margin: 0 auto;
    color: #475569;
}

.footer-email {
    color: var(--brand-blue);
    font-weight: 700;
}

.footer-meta {
    margin-top: 5rem;
    opacity: 0.4;
    font-size: 0.75rem;
}

@media (max-width: 1180px) {
    :root { --gutter: clamp(1rem, 2vw, 2rem); }
    .logo img { height: 100px; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pillar-content { max-width: 58%; }
}

@media (max-width: 900px) {
    :root { --nav-height: 68px; --gutter: 1rem; --section-offset: 5rem; }
    .logo img { height: 90px; }
    .nav-desktop,
    .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .btn { padding: 0.9rem 1.7rem; }
    .hero {
        min-height: auto;
        align-items: flex-start;
        padding: 1.25rem 0 2.5rem;
    }
    .hero-copy,
    .hero h1,
    .hero p,
    .hero-video {
        max-width: 100%;
    }
    .floating-container { padding: 2rem; margin-bottom: 2rem; }
    .fixed-background-photo {
        left: 0;
        transform: none;
        width: 100%;
        opacity: 0.22;
    }
    .fixed-background-photo::before { width: 30%; }
    .fixed-background-photo::after { width: 70%; }
    .cards-grid,
    .trio-grid,
    #partners .cards-grid,
    .about-grid,
    .metrics-grid { grid-template-columns: 1fr; }
    #tech::before {
        background-attachment: scroll, scroll;
        background-position: center, center;
    }
    .pillar-row::before {
        background:
            linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.96) 36%, rgba(248, 250, 252, 0.82) 58%, rgba(248, 250, 252, 0.42) 78%, rgba(248, 250, 252, 0.12) 100%),
            var(--pillar-image);
        background-repeat: no-repeat;
        background-position: center top, center bottom;
        background-size: cover, cover;
    }
    .pillar-content {
        max-width: 100%;
        padding-right: 0;
    }
    .pillar-content p { max-width: none; }
    .reliability-card { margin-top: 2.25rem; padding-top: 2.25rem; }
    .partner-box { padding: 3rem; }
}

@media (max-width: 640px) {
    :root { --nav-height: 60px; --gutter: 0.85rem; --radius: 20px; --section-offset: 4.5rem; }
    .logo img { height: 80px; }
    .hero {
        padding: 1rem 0 2rem;
    }
    .hero p {
        font-size: 1rem;
        line-height: 1.7;
    }
    h1 { font-size: clamp(1.85rem, 7vw, 2.55rem); }
    h2 { font-size: clamp(1.6rem, 5.5vw, 2rem); margin-bottom: 1.75rem; }
    .section-padding { padding: 2.75rem 0; }
    .floating-container,
    .feature-card,
    .metric-card,
    .about-card { padding: 1.5rem; }
    .hero-actions .btn,
    .mobile-nav-links .btn,
    .partner-actions .btn,
    .footer-actions .btn {
        width: 100%;
        text-align: center;
    }
    .stat-large { min-height: auto; font-size: 1.3rem; }
    .partner-box { padding: 2rem 1.5rem; border-radius: 24px; }
    .feature-icon,
    .metric-icon { width: 48px; height: 48px; }
    .fixed-background-photo {
        display: none;
    }
}

@media (min-width: 1400px) {
    :root { --gutter: clamp(1.5rem, 3vw, 3.25rem); }
    .solution-summary { max-width: 1100px; }
    .pillar-content p { max-width: 35rem; }
    .about-intro { max-width: 60rem; }
}
