:root {
    --navy: #001852;
    --navy-2: #061f5f;
    --blue: #0095ff;
    --blue-dark: #0077d1;
    --yellow: #fec458;
    --ink: #26303b;
    --muted: #6c7683;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --success: #14804a;
    --danger: #b42318;
    --warning: #8a5b00;
    --shadow: 0 22px 60px rgba(0, 24, 82, 0.12);
    --radius: 20px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
}
.skip-link:focus { top: 16px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 24, 82, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}
.nav-wrap {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    min-height: 84px;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; width: 170px; }
.brand img { display: block; width: 155px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.main-nav a {
    position: relative;
    padding: 29px 0 25px;
    color: #343d49;
    font-size: 0.94rem;
    font-weight: 650;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--blue);
    transition: right 180ms ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--navy); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px; background: var(--navy); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:focus-visible,
.filter-button:focus-visible,
.nav-toggle:focus-visible,
.modal-close:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(0, 149, 255, 0.28);
    outline-offset: 3px;
}
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0877e6);
    box-shadow: 0 12px 28px rgba(0, 149, 255, 0.25);
}
.button-primary:hover:not(:disabled) { box-shadow: 0 16px 34px rgba(0, 149, 255, 0.34); }
.button-secondary {
    color: var(--navy);
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.92);
}
.button-small { min-height: 43px; padding: 10px 17px; font-size: 0.9rem; }
.button:disabled { cursor: not-allowed; opacity: 0.52; }

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 16%, rgba(0,149,255,0.34), transparent 31%),
        linear-gradient(125deg, #001543 0%, #04246c 58%, #003f8d 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: auto auto -220px -150px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(0,149,255,0.1);
}
.hero-decoration {
    position: absolute;
    right: -55px;
    top: -30px;
    width: 480px;
    height: 480px;
    opacity: 0.18;
    background: url('../images/form-bg.png') center/contain no-repeat;
    transform: rotate(-8deg);
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    align-items: center;
    gap: 70px;
    min-height: 610px;
    padding-block: 78px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.hero .eyebrow { color: var(--yellow); }
.hero h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(2.65rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}
.hero h1 span { color: var(--yellow); }
.hero-copy > p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 1.14rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list span { color: var(--yellow); font-weight: 900; }

.hero-card {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.17);
    border-radius: 26px;
    background: rgba(255,255,255,0.11);
    box-shadow: 0 28px 80px rgba(0,0,0,0.22);
    backdrop-filter: blur(16px);
}
.hero-card-badge {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--navy);
    background: var(--yellow);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}
.download-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.download-steps li { display: flex; align-items: center; gap: 15px; }
.download-steps li > span {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    color: var(--navy);
    background: #fff;
    font-weight: 900;
}
.download-steps strong,
.download-steps small { display: block; }
.download-steps small { color: rgba(255,255,255,0.68); font-size: 0.86rem; }
.security-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding: 17px;
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
}
.shield-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
}
.security-note strong,
.security-note small { display: block; }
.security-note small { color: var(--muted); }

.alert-wrap { padding-top: 28px; }
.alert {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 0.94rem;
}
.alert-error { color: #7a271a; border: 1px solid #fecdca; background: #fef3f2; }
.alert-warning { margin-top: 24px; color: var(--warning); border: 1px solid #f5d58d; background: #fff9e8; }

.ready-section { padding: 32px 0 0; }
.ready-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 26px 30px;
    border: 1px solid #b8e6cf;
    border-radius: var(--radius);
    background: #f1fbf6;
    box-shadow: 0 14px 34px rgba(20,128,74,0.08);
}
.ready-card h2 { margin: 0 0 4px; color: #0f6139; font-size: 1.65rem; }
.ready-card p { margin: 0; color: #416b55; }
.ready-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #fff;
    background: var(--success);
    font-size: 1.7rem;
    font-weight: 900;
}
.ready-card .eyebrow { margin: 0; color: var(--success); }
.button-download { white-space: nowrap; }

.downloads-section { padding: 92px 0 100px; background: var(--surface-soft); }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
}
.section-heading h2,
.help-section h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}
.section-heading p { max-width: 720px; margin: 13px 0 0; color: var(--muted); }
.availability-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.availability-summary strong { color: var(--blue); font-size: 1.7rem; }
.availability-summary span { color: var(--muted); font-size: 0.86rem; line-height: 1.25; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-button {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #55606d;
    background: #fff;
    font-weight: 750;
}
.filter-button:hover,
.filter-button.active { color: #fff; border-color: var(--navy); background: var(--navy); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,24,82,0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,149,255,0.34);
    box-shadow: var(--shadow);
}
.product-card[hidden] { display: none; }

.product-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 235px;
    margin: -6px -6px 2px;
    padding: 20px 44px 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 24, 82, 0.07);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 149, 255, 0.12), transparent 48%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.product-card-media::after {
    content: '';
    position: absolute;
    left: 17%;
    right: 17%;
    bottom: 12px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 24, 82, 0.12);
    filter: blur(12px);
    transform: scaleX(0.85);
    pointer-events: none;
}

.product-card-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 205px;
    height: 195px;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 24, 82, 0.20));
    transition: transform 180ms ease, filter 180ms ease;
}

.product-card:hover .product-card-image {
    transform: translateY(-4px) scale(1.025);
    filter: drop-shadow(0 18px 24px rgba(0, 24, 82, 0.24));
}

.product-card-media-fallback {
    background: linear-gradient(145deg, #f8fbff, #eaf3ff);
}

.product-card-image-fallback {
    max-width: 125px;
    height: 150px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    filter: drop-shadow(0 12px 18px rgba(0, 24, 82, 0.14));
}

.product-card-media .status {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
}

.status { padding: 6px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; }
.status.available { color: #11653b; background: #e9f8f0; }
.status.unavailable { color: #7a271a; background: #fef0ef; }
.product-card h3 { margin: 20px 0 8px; color: var(--navy); font-size: 1.35rem; }
.product-card > p { flex: 1; margin: 0; color: var(--muted); font-size: 0.94rem; }
.file-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 22px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.file-meta div { min-width: 0; }
.file-meta dt { color: #8a93a0; font-size: 0.7rem; font-weight: 750; text-transform: uppercase; }
.file-meta dd { margin: 2px 0 0; color: #35404c; font-size: 0.82rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.button-card {
    width: 100%;
    min-height: 46px;
    color: var(--navy);
    border-color: rgba(0,24,82,0.12);
    background: #f4f8ff;
}
.button-card:not(:disabled):hover { color: #fff; border-color: var(--blue); background: var(--blue); }

.help-section { padding: 76px 0; color: #fff; background: var(--navy); }
.help-section .eyebrow { color: var(--yellow); }
.help-section h2 { color: #fff; }
.help-section p { max-width: 760px; margin: 14px 0 0; color: rgba(255,255,255,0.74); }
.help-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.site-footer { padding: 58px 0 22px; color: rgba(255,255,255,0.68); background: #000f35; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 60px;
    padding-bottom: 38px;
}
.footer-brand img { width: 145px; padding: 8px; border-radius: 10px; background: #fff; }
.footer-brand p { max-width: 310px; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: 1rem; }
.site-footer a { display: block; margin: 8px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.83rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,15,53,0.78); backdrop-filter: blur(6px); }
.modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 590px);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    padding: 34px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 100px rgba(0,0,0,0.35);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #55606d;
    background: #eef3f8;
    font-size: 1.55rem;
    line-height: 1;
}
.modal-heading { padding-right: 32px; }
.modal-heading h2 { margin: 0; color: var(--navy); font-size: 2rem; line-height: 1.15; }
.modal-heading p { margin: 10px 0 0; color: var(--muted); }
.download-form { display: grid; gap: 16px; margin-top: 24px; }
.download-form > label:not(.consent-field) > span:first-child { display: block; margin-bottom: 6px; color: #3f4956; font-size: 0.86rem; font-weight: 750; }
.download-form input[type="text"],
.download-form input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #d6dee8;
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
}
.download-form input:hover { border-color: #aab7c5; }
.consent-field { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.consent-field input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--blue); }
.consent-field a { color: var(--blue-dark); text-decoration: underline; }
.button-submit { width: 100%; margin-top: 2px; }
.form-note { margin: -3px 0 0; color: #7c8794; font-size: 0.77rem; text-align: center; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 1080px) {
    .nav-wrap { grid-template-columns: 170px 1fr auto; gap: 14px; }
    .main-nav { gap: 16px; }
    .main-nav a { font-size: 0.84rem; }
    .header-cta { display: none; }
    .hero-grid { gap: 38px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .nav-wrap { grid-template-columns: 1fr auto; min-height: 74px; }
    .brand img { width: 130px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 74px;
        left: 14px;
        right: 14px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 14px; border-radius: 8px; }
    .main-nav a::after { display: none; }
    .main-nav a.active { background: #f0f6ff; }
    .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 62px; }
    .hero-card { max-width: 590px; }
    .section-heading { align-items: start; flex-direction: column; }
    .ready-card { grid-template-columns: auto 1fr; }
    .button-download { grid-column: 1 / -1; width: 100%; }
    .help-grid { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.65rem; }
    .hero-copy > p { font-size: 1rem; }
    .hero-actions .button { width: 100%; }
    .trust-list { display: grid; }
    .hero-card { padding: 23px; }
    .downloads-section { padding: 68px 0; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card-media { min-height: 220px; padding-inline: 36px; }
    .product-card-image { max-width: 190px; height: 180px; }
    .availability-summary { width: 100%; }
    .file-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ready-card { grid-template-columns: 1fr; text-align: center; }
    .ready-icon { margin-inline: auto; }
    .modal { padding: 10px; }
    .modal-panel { max-height: calc(100vh - 20px); padding: 28px 20px; border-radius: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
