:root {
    --primary: #1665c0;
    --primary-dark: #0c3c75;
    --accent: #22b37c;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --bg-light: #f5f7fb;
    --bg-soft: #eef2f7;
    --border-soft: #dde3ee;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.image-centered-90 {
    display: block;
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    border: 0.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    border-radius: 12px;
    /* background: #1560b9; */
    overflow: hidden;
}

    .logo-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.logo-text {
    display: flex;
    flex-direction: column;
}

    .logo-text .name {
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 0.02em;
    }

    .logo-text .tagline {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.7rem;
}

    .nav-links a {
        color: var(--text-muted);
        font-weight: 500;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

.nav-cta {
    display: block;
    gap: 0.75rem;
}

/* Hamburger button */
.nav-toggle {
    display: none; /* desktop hidden */
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(31, 41, 51, 0.85);
        border-radius: 999px;
        transition: transform 180ms ease, opacity 180ms ease;
    }

/* Mobile panel stays fixed while scrolling */
.nav-mobile {
    display: none;
    position: fixed; /* <-- key change */
    left: 1.5rem;
    right: 1.5rem;
    /* put it just below the fixed nav bar */
    top: 74px; /* adjust if your nav is taller/shorter */

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 0.8rem;
    z-index: 2000; /* ensure it stays above content */
}

    .nav-mobile.open {
        display: block;
    }

    .nav-mobile a {
        display: block;
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        color: var(--text-main);
        font-weight: 600;
    }

        .nav-mobile a:hover {
            background: rgba(22, 101, 192, 0.08);
            color: var(--primary-dark);
        }

.nav-mobile-cta {
    padding: 0.5rem 0.9rem 0.2rem;
}

/* Open state */
.nav.nav-open .nav-mobile {
    display: block;
}

.nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* mobile */
@media (max-width: 768px) {
    .nav-cta {
        display: none !important;
    }
    /* <-- hide top-right CTA */
    .nav-toggle {
        display: inline-flex;
    }
    /* show hamburger */
    /* your drawer visibility is controlled by .open already */
}

/* Responsive behavior */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    /* you already have this */
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: relative;
    }
    /* needed so nav-mobile positions correctly */
}

.nav.fixed-top {
    z-index: 2100;
}

.btn {
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(22, 101, 192, 0.35);
}

    .btn-primary:hover {
        box-shadow: 0 10px 20px rgba(22, 101, 192, 0.45);
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text-main);
}

    .btn-outline:hover {
        background: rgba(248, 250, 252, 0.9);
    }

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
}

.hero {
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%), radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 3.2vw + 1.3rem, 3.4rem);
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    /* Prevent the hero headline from ever being auto-selected */
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.hero-subtitle {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.hero h1 span.accent {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 36rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin: 1.8rem 0 1rem;
}

.hero-trust {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(34, 179, 124, 0.18);
}

.hero-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: #9ca3af;
}

.meta-value {
    font-weight: 600;
    margin-top: 0.25rem;
}

.hero-visual-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-visual-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(22, 101, 192, 0.08);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-visual-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-photo {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    align-items: flex-start;
}

    .hero-photo::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.45));
        mix-blend-mode: soft-light;
    }

    .hero-photo img {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }

.hero-photo-caption {
    position: absolute;
    left: 1.2rem;
    bottom: 1.1rem;
    color: #f9fafb;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

    .hero-photo-caption strong {
        font-size: 0.9rem;
    }

.hero-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.hero-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* image behavior: fill the wrap, align to top */
.hero-img-wrap {
    height: 180px; /* adjust to taste */
    overflow: hidden;
    border-radius: 14px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* keep highlight styling consistent */
.hero-highlight {
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.08);
}

/* mobile */
@media (max-width: 900px) {
    .hero-pair {
        grid-template-columns: 1fr;
    }
}


.hero-highlight-row {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.hero-highlight {
    flex: 1;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.78rem;
}

    .hero-highlight strong {
        font-size: 0.78rem;
        display: block;
        margin-bottom: 0.2rem;
    }

.hero-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #22b37c;
    color: #f9fafb;
    font-size: 0.72rem;
    margin-right: 0.4rem;
}

.hero {
    position: relative;
    z-index: 1;
}

section {
    padding: 2.75rem 0;
}

.section-header {
    max-width: 620px;
    margin-bottom: 1.8rem;
}

.section-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.section-header h2 {
    font-size: 1.7rem;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.how-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.2rem 1.1rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.12);
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(22, 101, 192, 0.08);
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.how-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.how-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.trust {
    background: var(--bg-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 1.4rem;
}

.stat {
    min-width: 140px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trust-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.trust-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

    .trust-row strong {
        font-weight: 600;
    }

.trust-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.trust-bar-bg {
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.trust-bar-fg {
    height: 100%;
    width: 92%;
    background: linear-gradient(90deg, var(--accent), #4ade80);
    border-radius: inherit;
}

.trust-footnote {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cta {
    padding: 3rem 0 3.5rem;
}

.cta-card {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.42), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    padding: 2.1rem 2rem;
    color: #e5e7eb;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.75);
}

.cta h2 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
}

.cta p {
    margin: 0;
    font-size: 0.93rem;
    color: #cbd5f5;
}

.cta-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn-ghost-light {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.6);
    color: #e5edff;
    font-size: 0.86rem;
    padding: 0.65rem 1.3rem;
    cursor: pointer;
}

    .btn-ghost-light:hover {
        background: rgba(15, 23, 42, 0.3);
    }

.cta-checklist {
    margin-top: 0.75rem;
    font-size: 0.83rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.4rem;
}

.cta-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .cta-check span {
        width: 16px;
        height: 16px;
        border-radius: 999px;
        border: 1px solid rgba(187, 247, 208, 0.7);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        color: #bbf7d0;
    }

/* CTA event footnote */
.cta-event-footnote {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
}

    .cta-event-footnote::before {
        content: "*";
        margin-right: 0.4rem;
        font-size: 1.1em;
        line-height: 1;
        color: var(--accent);
    }

footer {
    margin-top: 28px;
    padding: 18px 16px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #f8fafc; /* light */
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
footer a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    color: #64748b; /* slate */
    text-decoration: none;
}

    footer a:hover {
        background: rgba(15, 23, 42, .06);
        color: #0f172a;
        text-decoration: underline;
    }

    footer a:focus-visible {
        outline: 2px solid rgba(59, 130, 246, .55);
        outline-offset: 2px;
    }

.footer-links {
    display: flex;
    gap: 1.1rem;
}

    .footer-links a {
        color: var(--text-muted);
    }

        .footer-links a:hover {
            color: var(--primary);
        }

/* Responsive */
@media (max-width: 768px) {
    .hero-grid,
    .trust-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .cta-card {
        padding: 1.7rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 2.6rem;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo img {
        height: 220px;
    }
}

/* Kill any border / focus ring around the hero headline */
.hero h1,
.hero h1:focus,
.hero h1:focus-visible {
    border: none !important;
    outline: none !important;
}

.login-page {
    background-color: #f5f7fb;
    padding-top: 4rem; /* space from top so it’s not hugging */
    padding-bottom: 2rem;
}

.login-card {
    max-width: 380px;
    width: 100%;
    border-radius: 0.75rem;
}

    .login-card .form-control-sm {
        font-size: 0.85rem;
    }

    .login-card .card-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

/* DEBUG: prove if an overlay is blocking clicks */
* {
    pointer-events: auto !important;
}

.nav-icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    color: inherit; /* icon inherits nav color */
}

    .nav-icon-btn:focus {
        outline: none;
        box-shadow: none;
    }

    .nav-icon-btn:hover {
        opacity: 0.8;
    }

.risk-badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    font-size: .85rem;
}

.risk-low {
    background: rgba(25, 135, 84, .18);
}

.risk-medium {
    background: rgba(255, 193, 7, .20);
}

.risk-high {
    background: rgba(220, 53, 69, .18);
}

.risk-critical {
    background: rgba(220, 53, 69, .28);
    font-weight: 600;
}

.risk-decision {
    font-size: .85rem;
}