:root {
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --primary: #4338ca;
    --primary-dark: #312e81;
    --primary-ink: #1e1b4b;
    --emerald: #059669;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, .12);
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    letter-spacing: 0;
    overflow-x: hidden;
}

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

button,
input,
select {
    font: inherit;
    letter-spacing: 0;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 18px clamp(20px, 4vw, 56px);
    color: var(--white);
    transition: background .22s ease, color .22s ease, box-shadow .22s ease, padding .22s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: currentColor;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .92rem;
    font-weight: 600;
}

.site-nav a,
.text-link {
    opacity: .86;
    transition: opacity .2s ease, color .2s ease;
}

.site-nav a:hover,
.text-link:hover {
    opacity: 1;
    color: #a5b4fc;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .text-link:hover,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .text-link:hover {
    color: var(--primary);
}

.site-header.is-open .site-nav a,
.site-header.is-open .text-link {
    color: var(--ink);
    opacity: 1;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: .92rem;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(67, 56, 202, .22);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-light {
    background: var(--white);
    color: var(--primary-dark);
}

.button-ghost {
    border-color: rgba(255, 255, 255, .36);
    color: var(--white);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: transparent;
    color: currentColor;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    color: var(--white);
    background: var(--primary-ink);
}

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

.hero-media {
    background-image: url("images/novalink-hero.png");
    background-size: cover;
    background-position: 68% center;
    filter: saturate(.96) contrast(1.02);
    transform: scale(1.01);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(30, 27, 75, .96) 0%, rgba(49, 46, 129, .86) 34%, rgba(49, 46, 129, .38) 58%, rgba(15, 23, 42, .18) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, .44), rgba(15, 23, 42, .12));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: 172px 24px 180px;
}

.hero-copy {
    width: 100%;
    max-width: 625px;
}

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

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(4.6rem, 11.8vw, 9rem);
    line-height: .88;
    font-weight: 800;
}

.hero-line {
    max-width: 610px;
    margin: 0;
    color: var(--white);
    font-size: clamp(2.05rem, 4.4vw, 4.25rem);
    line-height: 1.02;
    font-weight: 800;
}

.hero-body {
    max-width: 590px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.07rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.trust-rail {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(var(--max), calc(100% - 48px));
    transform: translateX(-50%);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.trust-rail span {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 0 26px;
    border-right: 1px solid var(--line);
    color: var(--primary-ink);
    font-size: .92rem;
    font-weight: 760;
}

.trust-rail span:last-child {
    border-right: 0;
}

.section {
    padding: 112px 24px;
}

.section-white {
    padding-top: 142px;
}

.section-grid,
.provider-layout,
.institution-layout,
.cta-section,
.site-footer {
    max-width: var(--max);
    margin: 0 auto;
}

.section-grid {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 88px;
    align-items: start;
}

.section-label {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: .78rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.section-label-light {
    color: #c7d2fe;
}

h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.1rem);
    line-height: 1.02;
    font-weight: 800;
}

h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
}

p {
    color: var(--muted);
}

.section-heading {
    position: sticky;
    top: 112px;
}

.care-list {
    display: grid;
    gap: 12px;
}

.care-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.care-item:first-child {
    padding-top: 0;
}

.care-item p {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.7;
}

.icon-box {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--primary);
}

.icon-box svg {
    width: 27px;
    height: 27px;
}

.process-section,
.safety-section {
    background: var(--soft);
}

.wide-heading {
    max-width: var(--max);
    margin: 0 auto 58px;
}

.wide-heading h2 {
    max-width: 820px;
}

.process-flow {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-flow article {
    min-height: 250px;
    padding: 28px 26px 32px;
    border-right: 1px solid var(--line);
}

.process-flow article:last-child {
    border-right: 0;
}

.process-flow span {
    display: block;
    margin-bottom: 52px;
    color: var(--primary);
    font-weight: 800;
}

.process-flow p {
    margin: 12px 0 0;
    line-height: 1.65;
}

.section-indigo {
    color: var(--white);
    background: var(--primary-dark);
}

.section-indigo p {
    color: rgba(255, 255, 255, .76);
}

.provider-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.provider-copy p:not(.section-label) {
    max-width: 540px;
    margin: 24px 0 32px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.specialty-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
}

.specialty-panel span {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-weight: 730;
}

.specialty-panel span:nth-child(2n) {
    border-right: 0;
}

.specialty-panel span:nth-last-child(-n+2) {
    border-bottom: 0;
}

.institution-section {
    background: var(--white);
}

.institution-layout {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 92px;
    align-items: center;
}

.ops-panel {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.ops-header,
.ops-row {
    display: grid;
    grid-template-columns: .7fr 1fr;
    gap: 24px;
    padding: 26px 30px;
    border-bottom: 1px solid var(--line);
}

.ops-header {
    background: var(--primary-ink);
    color: var(--white);
}

.ops-row:last-child {
    border-bottom: 0;
}

.ops-row span,
.ops-header span {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.ops-header span {
    color: #c7d2fe;
}

.ops-row strong,
.ops-header strong {
    font-size: .98rem;
    line-height: 1.45;
}

.institution-copy p:not(.section-label) {
    margin: 24px 0 32px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.safety-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.safety-grid article {
    min-height: 238px;
    padding: 28px;
    background: var(--white);
}

.safety-grid h3::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 30px;
    background: var(--emerald);
}

.safety-grid p {
    margin: 14px 0 0;
    line-height: 1.66;
}

.cta-section {
    display: grid;
    grid-template-columns: .95fr .78fr;
    gap: 90px;
    align-items: start;
    padding: 112px 24px;
}

.cta-copy p {
    max-width: 620px;
    margin: 24px 0 0;
    font-size: 1.08rem;
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 30px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form span {
    color: var(--primary-ink);
    font-size: .86rem;
    font-weight: 760;
}

.contact-form input,
.contact-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-form input:focus,
.contact-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 56, 202, .12);
}

.contact-form .button {
    width: 100%;
    margin-top: 4px;
}

.form-note {
    margin: 0;
    font-size: .85rem;
    line-height: 1.55;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    padding: 42px 24px 56px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    max-width: 430px;
    margin: 14px 0 0;
    line-height: 1.65;
}

.site-footer nav {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.footer-brand {
    color: var(--primary-dark);
}

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

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

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav,
    .header-actions {
        display: none;
    }

    .site-header.is-open .site-nav,
    .site-header.is-open .header-actions {
        grid-column: 1 / -1;
        display: flex;
        width: 100%;
    }

    .site-header.is-open .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 10px;
    }

    .site-header.is-open .header-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-inner {
        padding-top: 138px;
    }

    .trust-rail,
    .process-flow,
    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-rail {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: calc(100% - 40px);
        margin: -76px auto 0;
    }

    .trust-rail span:nth-child(2n) {
        border-right: 0;
    }

    .trust-rail span:nth-last-child(-n+2) {
        border-top: 1px solid var(--line);
    }

    .section-white {
        padding-top: 112px;
    }

    .section-grid,
    .provider-layout,
    .institution-layout,
    .cta-section {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .section-heading {
        position: static;
    }

    .institution-layout .ops-panel {
        order: 2;
    }

    .institution-layout .institution-copy {
        order: 1;
    }

    .process-flow article:nth-child(2n),
    .safety-grid article:nth-child(2n) {
        border-right: 0;
    }

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

@media (max-width: 680px) {
    .site-header {
        padding: 14px 18px;
    }

    .brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: 690px;
    }

    .hero-media {
        background-position: 72% center;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(30, 27, 75, .97) 0%, rgba(49, 46, 129, .84) 64%, rgba(49, 46, 129, .42) 100%),
            linear-gradient(0deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .14));
    }

    .hero-inner {
        padding: 118px 20px 128px;
    }

    .hero-copy,
    .hero-line,
    .hero-body {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .hero h1 {
        font-size: clamp(3.6rem, 18vw, 4.9rem);
    }

    .hero-line {
        max-width: 100%;
        font-size: clamp(1.88rem, 8.7vw, 2.7rem);
        overflow-wrap: normal;
    }

    .hero-body {
        font-size: 1rem;
        line-height: 1.68;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .trust-rail,
    .process-flow,
    .safety-grid,
    .specialty-panel {
        grid-template-columns: 1fr;
    }

    .trust-rail {
        width: calc(100% - 28px);
    }

    .trust-rail span,
    .specialty-panel span {
        border-right: 0;
    }

    .specialty-panel span:nth-last-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .section {
        padding: 82px 20px;
    }

    .section-white {
        padding-top: 88px;
    }

    h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .care-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-flow article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .process-flow article:last-child {
        border-bottom: 0;
    }

    .process-flow span {
        margin-bottom: 34px;
    }

    .ops-header,
    .ops-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px;
    }

    .cta-section {
        padding: 84px 20px;
    }

    .contact-form {
        padding: 22px;
    }

    .site-footer {
        padding: 36px 20px 48px;
    }

    .site-footer nav {
        flex-wrap: wrap;
        gap: 18px;
    }
}
