:root {
    --navy: #00164f;
    --navy-dark: #00103a;
    --blue: #0a2b66;
    --ink: #071844;
    --muted: #5c6578;
    --line: #b7bdc8;
    --soft-line: #d7dbe2;
    --white: #ffffff;
    --page: #fdfdfc;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Montserrat", Arial, Helvetica, sans-serif;
    --shell: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--page);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.65rem 1rem;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-150%);
}

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

.site-shell {
    width: min(100% - 4rem, var(--shell));
    margin-inline: auto;
}

.narrow-shell {
    width: min(100% - 3rem, 820px);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(253, 253, 252, 0.98);
}

.header-inner {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    flex: 0 0 auto;
    width: 242px;
    text-decoration: none;
}

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

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.2rem, 2.25vw, 2.45rem);
}

.primary-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.5rem;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.primary-nav .nav-cta {
    display: inline-flex;
    min-height: 58px;
    padding: 0.75rem 1.7rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy);
    transition: color 180ms ease, background 180ms ease;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
    color: var(--white);
    background: var(--navy);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.75rem;
    border: 0;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
}

.nav-toggle-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-toggle-lines {
    width: 26px;
    display: grid;
    gap: 5px;
}

.nav-toggle-lines span {
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    padding: 3.7rem 0 5.25rem;
}

.hero-grid {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(430px, 1.02fr);
    align-items: center;
    gap: 1rem;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-left: 2.5rem;
}

.eyebrow {
    margin: 0 0 1.4rem;
    color: var(--navy);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.33em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero h1,
.challenge h1,
.solutions h2,
.contact-heading h1 {
    margin: 0;
    color: var(--navy-dark);
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(3.65rem, 5.2vw, 5rem);
    line-height: 0.98;
}

.short-rule {
    width: 52px;
    height: 2px;
    display: block;
    margin: 2.35rem 0 2rem;
    background: var(--navy);
}

.hero-intro {
    margin: 0;
    color: var(--ink);
    font-size: 1.16rem;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 2.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.35rem;
}

.button {
    min-height: 56px;
    display: inline-flex;
    padding: 0.8rem 1.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy);
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary:hover,
.button-primary:focus-visible {
    background: #0b3275;
    box-shadow: 0 9px 22px rgba(0, 22, 79, 0.16);
}

.button-outline {
    color: var(--navy);
    background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
    color: var(--white);
    background: var(--navy);
}

.button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.hero-meta {
    margin: 2.45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: var(--ink);
    font-size: 0.86rem;
}

.hero-visual {
    position: relative;
    min-width: 0;
    margin: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-visual img {
    width: min(100%, 635px);
    height: auto;
    mix-blend-mode: multiply;
}

.video-section {
    padding: 0 0 5.5rem;
}

.video-inner {
    width: min(100% - 8rem, 1050px);
}

.section-divider {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: minmax(45px, 1fr) auto minmax(45px, 1fr);
    align-items: center;
    gap: 2rem;
}

.section-divider span {
    height: 1px;
    background: var(--line);
}

.section-divider h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.video-shell {
    position: relative;
    aspect-ratio: 864 / 353;
    overflow: hidden;
    border-radius: 18px;
    background: #020915;
    box-shadow: 0 20px 45px rgba(2, 13, 40, 0.09);
}

.video-shell video,
.video-cover,
.video-cover img {
    width: 100%;
    height: 100%;
}

.video-shell video {
    object-fit: cover;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: #020915;
    cursor: pointer;
}

.js .video-cover {
    display: block;
}

.video-cover img {
    object-fit: cover;
}

.video-shell.is-playing .video-cover {
    display: none;
}

.site-footer {
    padding: 0 0 2.85rem;
}

.footer-inner {
    min-height: 96px;
    padding-top: 2.55rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.82rem;
}

.footer-inner p {
    margin: 0;
}

.footer-notes {
    display: flex;
    gap: 1rem;
}

/* Technology page */
.technology-page .site-header {
    border-bottom: 1px solid rgba(183, 189, 200, 0.2);
}

.challenge {
    padding: 2.5rem 0 3.5rem;
}

.centered-copy {
    text-align: center;
}

.centered-copy .eyebrow {
    margin-bottom: 0;
}

.short-rule-centered {
    width: 52px;
    margin: 1.3rem auto 1rem;
}

.challenge h1 {
    font-size: clamp(3rem, 5vw, 4.25rem);
    line-height: 1.02;
}

.challenge .centered-copy > p:last-child,
.solutions .centered-copy > p:last-child,
.contact-heading > p:last-child {
    margin: 1.4rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
}

.solutions {
    padding: 0.5rem 0 4rem;
}

.solutions h2 {
    font-size: clamp(3rem, 4.5vw, 4rem);
    line-height: 1.05;
}

.solution-list {
    width: min(100%, 710px);
    margin: 2.25rem auto 0;
    padding: 0;
    list-style: none;
    counter-reset: solution;
}

.solution-list li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.75rem;
}

.solution-number {
    min-height: 38px;
    padding-right: 1.25rem;
    border-right: 1px solid #9da6b7;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
}

.solution-list h3 {
    margin: 0 0 0.2rem;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.solution-list p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.ecosystem {
    padding: 0 0 2.8rem;
}

.ecosystem-divider {
    margin-bottom: 2.6rem;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    border-bottom: 1px solid var(--line);
}

.ecosystem-grid article {
    min-height: 170px;
    padding: 0 2.5rem 2rem;
    text-align: center;
}

.ecosystem-grid article + article {
    border-left: 1px solid var(--line);
}

.product-name {
    margin: 0 0 0.25rem;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
}

.product-name sup {
    position: relative;
    top: -0.4em;
    font-family: var(--sans);
    font-size: 0.34em;
    letter-spacing: 0;
}

.ecosystem-grid h4 {
    margin: 0 0 0.9rem;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.45;
    text-transform: uppercase;
}

.ecosystem-grid p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ecosystem-grid .secure-card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    text-align: left;
}

.secure-card img {
    width: 58px;
    height: auto;
    mix-blend-mode: multiply;
}

/* Contact page */
.contact-section {
    padding: 3.5rem 0 5.5rem;
}

.contact-shell {
    width: min(100% - 3rem, 850px);
    margin-inline: auto;
}

.contact-heading h1 {
    font-size: clamp(3.25rem, 5.5vw, 4.6rem);
    line-height: 1;
}

.form-status {
    margin: 2rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--soft-line);
    font-size: 0.9rem;
    text-align: center;
}

.form-status-success {
    color: #14532d;
    border-color: #9dc7aa;
    background: #f0faf3;
}

.form-status-error {
    color: #7f1d1d;
    border-color: #d8aaaa;
    background: #fff6f6;
}

.form-status-notice {
    color: var(--navy);
    border-color: #b8c5db;
    background: #f3f6fb;
}

.contact-form {
    margin-top: 2rem;
    padding: 2.4rem;
    border: 1px solid var(--soft-line);
    background: var(--white);
    box-shadow: 0 18px 55px rgba(0, 22, 79, 0.055);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
}

.contact-form label > span {
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form strong {
    color: #b31b34;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #b8bfcb;
    border-radius: 0;
    color: var(--ink);
    background: #fff;
    outline: 0;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input {
    min-height: 50px;
    padding: 0.65rem 0.8rem;
}

.contact-form textarea {
    min-height: 165px;
    padding: 0.8rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 22, 79, 0.1);
}

.form-wide {
    grid-column: 1 / -1;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.submit-button {
    margin-top: 1.5rem;
}

.recaptcha-notice {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

@media (max-width: 1160px) {
    .site-shell {
        width: min(100% - 3rem, var(--shell));
    }

    .brand {
        width: 205px;
    }

    .primary-nav {
        gap: 1.25rem;
    }

    .primary-nav a {
        font-size: 0.7rem;
    }

    .primary-nav .nav-cta {
        min-height: 52px;
        padding-inline: 1.2rem;
    }

    .hero-copy {
        padding-left: 1rem;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 5.5vw, 4.25rem);
    }
}

@media (max-width: 940px) {
    .header-inner {
        min-height: 100px;
    }

    .brand {
        width: 195px;
    }

    .nav-toggle {
        position: relative;
        z-index: 61;
        display: flex;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        z-index: 60;
        padding: 8rem 2rem 3rem;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.65rem;
        overflow-y: auto;
        background: rgba(253, 253, 252, 0.99);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-1rem);
        transition: visibility 0s linear 180ms, opacity 180ms ease, transform 180ms ease;
    }

    .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .primary-nav a {
        font-size: 1rem;
    }

    .primary-nav .nav-cta {
        width: min(100%, 260px);
        margin-top: 0.5rem;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-copy {
        width: min(100%, 700px);
        padding-left: 0;
    }

    .hero h1 {
        font-size: clamp(3.25rem, 9vw, 4.5rem);
    }

    .hero-visual {
        width: min(100%, 650px);
        justify-self: center;
    }

    .video-inner {
        width: min(100% - 3rem, 1050px);
    }

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

    .ecosystem-grid article {
        min-height: auto;
        padding: 2.1rem 1.5rem;
    }

    .ecosystem-grid article + article {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .ecosystem-grid .secure-card {
        align-items: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .site-shell,
    .narrow-shell,
    .video-inner,
    .contact-shell {
        width: min(100% - 2rem, var(--shell));
    }

    .header-inner {
        min-height: 84px;
    }

    .brand {
        width: 168px;
    }

    .hero {
        padding: 2.6rem 0 3.75rem;
    }

    .eyebrow {
        margin-bottom: 1rem;
        font-size: 0.78rem;
        letter-spacing: 0.28em;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 13vw, 3.55rem);
        line-height: 0.98;
    }

    .short-rule {
        margin: 1.75rem 0 1.4rem;
    }

    .short-rule-centered {
        margin: 1rem auto 0.9rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .desktop-only {
        display: none;
    }

    .hero-actions {
        margin-top: 2rem;
        display: grid;
        gap: 0.85rem;
    }

    .button {
        width: 100%;
    }

    .hero-meta {
        font-size: 0.75rem;
    }

    .hero-meta span:nth-child(2) {
        display: none;
    }

    .hero-meta span {
        width: 100%;
    }

    .hero-visual {
        margin-top: 0;
    }

    .video-section {
        padding-bottom: 3.5rem;
    }

    .section-divider {
        gap: 0.9rem;
    }

    .section-divider h2 {
        font-size: 0.75rem;
        letter-spacing: 0.22em;
    }

    .video-shell {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .video-shell video,
    .video-cover img {
        object-fit: cover;
    }

    .footer-inner {
        min-height: 0;
        padding: 2rem 0 0;
        flex-direction: column;
        gap: 1rem;
        font-size: 0.75rem;
    }

    .footer-notes {
        flex-wrap: wrap;
    }

    .challenge {
        padding: 2.8rem 0 3rem;
    }

    .challenge h1,
    .solutions h2 {
        font-size: clamp(2.5rem, 12vw, 3.2rem);
    }

    .challenge .centered-copy > p:last-child,
    .solutions .centered-copy > p:last-child {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .solution-list li {
        grid-template-columns: 54px 1fr;
        gap: 1rem;
        margin-bottom: 1.65rem;
    }

    .solution-number {
        padding-right: 0.85rem;
        font-size: 1.1rem;
    }

    .solution-list h3 {
        font-size: 0.88rem;
    }

    .solution-list p {
        font-size: 0.84rem;
    }

    .ecosystem-grid article {
        padding-inline: 0.75rem;
    }

    .product-name {
        font-size: 2.35rem;
    }

    .contact-section {
        padding: 2.8rem 0 3.75rem;
    }

    .contact-heading h1 {
        font-size: clamp(2.8rem, 12vw, 3.5rem);
    }

    .contact-form {
        padding: 1.35rem;
    }

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

    .form-wide {
        grid-column: auto;
    }
}

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

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