:root {
    --bg: #050505;
    --card-bg: rgba(15, 15, 15, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e8e8e8;
    --text-dim: #b8b8b8;
    --accent: #ffffff;
    --panel-media-height: 500px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    overflow-x: hidden; /* CRITICAL FIX: Prevents horizontal scroll */
}
html { font-size: 18px; }

body {
    background-color: #0f1116;
    background-image: linear-gradient(
        180deg,
        #171b23 0%,
        #12161d 45%,
        #0e1117 100%
    );
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; }

/* Blocks */
.block { padding: 70px 0; }
.section-head { max-width: 920px; margin: 0 auto 36px; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 14px; }
.section-sub a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.section-sub a:hover { color: #d9d9d9; }
.question-list { margin-left: 1.2rem; }
.question-list li + li { margin-top: 0.45rem; }
.split-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.split-reverse { grid-template-columns: 1fr 1.3fr; }
.split-content { min-width: 0; }
.split-media { min-width: 0; }

/* Background Decorations */
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        radial-gradient(
            1100px 700px at 97% -6%,
            rgba(255,255,255,0.16) 0%,
            rgba(255,255,255,0.07) 20%,
            rgba(255,255,255,0.02) 42%,
            rgba(255,255,255,0) 70%
        ),
        radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
        radial-gradient(rgba(0,0,0,0.11) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 100% 100%, 6px 6px, 8px 8px, 40px 40px;
    background-position: 0 0, 0 0, 2px 2px, 0 0;
    background-repeat: no-repeat, repeat, repeat, repeat;
    z-index: -1;
}

/* Header */
header { padding: 30px 0; border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-weight: 700; letter-spacing: 3px; font-size: 1.1rem; color: var(--text-dim); }
.logo span { color: var(--text); font-weight: 800; }
.nav-link { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border); padding: 8px 16px; border-radius: 6px; transition: 0.2s; }
.nav-link:hover { background: #fff; color: #000; }

/* Hero */
.hero { padding: 100px 0 60px; text-align: center; }
.badge-container { margin-bottom: 30px; }
.badge { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 6px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
h1 { font-family: var(--font-heading); font-size: clamp(2.8rem, 10vw, 4.5rem); line-height: 1; margin-bottom: 0; letter-spacing: -2px; color: #fff; }
.gradient-text { background: linear-gradient(180deg, #fff 0%, #666 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.25rem; color: var(--text-dim); max-width: 800px; margin: 50px auto; }
.hero-note { margin-top: 18px; color: var(--text-dim); font-size: 0.95rem; opacity: 0.9; }

/* Buttons */
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 18px 36px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-size: 1rem; }
.btn.primary { background: #fff; color: #000; box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
.btn.secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); }
.btn:hover { transform: translateY(-3px) scale(1.02); }

/* Cards */
.glass-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; backdrop-filter: blur(20px); position: relative; overflow: hidden; }
.card-grid { display: grid; gap: 18px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.info-card { padding: 28px; }
.info-card h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 10px; }
.info-card p { color: var(--text-dim); font-size: 0.98rem; }
.media-card { padding: 10px; }
.media-card-portrait { max-width: 420px; margin-left: auto; }
.media-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    object-fit: cover;
}
.final-split .media-card { height: 100%; }
.final-split .media-image { min-height: 220px; height: 100%; object-position: center; }

/* Block 2: keep the visual secondary to the text */
.block-2 .split-layout { align-items: center; }
.block-2 .section-head { margin-bottom: 0; }
.block-2 .split-media .media-card {
    max-width: 380px;
    margin-left: auto;
}
.services-split { grid-template-columns: 0.75fr 1.75fr; align-items: center; }
.services-split .split-media { display: flex; align-items: center; }
.services-split .split-content { display: flex; flex-direction: column; justify-content: center; }
.services-head { margin: 0 0 24px; max-width: none; }
.services-media-card {
    flex: 1;
    min-height: var(--panel-media-height);
}
.services-media-card .media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transform-origin: top left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.3;
    color: #fff;
}
.value-h2-sentence { display: block; }
.value-h2-sentence-second { margin: 2rem 0; }

/* Benchmark */
.benchmark-card { padding: 34px; }
.benchmark-card { isolation: isolate; }
.benchmark-bg {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}
.benchmark-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.benchmark-scale { margin-top: 10px; }
.benchmark-scale, .link-row { position: relative; z-index: 1; }
.scale-labels,
.scale-values {
    position: relative;
    width: 100%;
}
.scale-labels { height: 54px; margin-bottom: 6px; }
.scale-values { height: 22px; margin-top: 8px; }
.scale-labels span,
.scale-values span {
    position: absolute;
    transform: translate(-50%, 0);
    top: 0;
    font-size: 0.82rem;
    text-align: center;
}
.scale-labels span {
    color: var(--text-dim);
    white-space: normal;
    line-height: 1.15;
    bottom: 0;
    top: auto;
}
.scale-values span { color: #fff; font-weight: 800; font-family: var(--font-heading); }
.scale-values .scale-endpoint-start,
.scale-values .scale-endpoint-end {
    color: var(--text-dim);
    font-weight: 600;
}
.scale-values .scale-endpoint-start {
    left: 14px;
    transform: none;
}
.scale-values .scale-endpoint-end {
    right: 14px;
    left: auto;
    transform: none;
}
.scale-track {
    position: relative;
    height: 36px;
    margin: 4px 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
}
.scale-track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    right: 14px;
    height: 2px;
    background: rgba(255,255,255,0.18);
    transform: translateY(-50%);
}
.scale-mark {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.05);
}
.scale-mark.strong {
    background: #fff;
    box-shadow: 0 0 0 7px rgba(255,255,255,0.08);
}
.link-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; justify-content: center; }
.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    transition: 0.2s ease;
}
.link:hover { background: #fff; color: #000; transform: translateY(-1px); }

/* Who */
.who-card { padding: 0; display: block; }
.who-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin-top: 8px; }
.who-main,
.who-meta { font-size: 1.05rem; line-height: 1.35; }
.who-main { font-weight: 800; font-family: var(--font-main); }
.who-meta { color: var(--text-dim); font-weight: 700; }
.block-4 .split-layout {
    grid-template-columns: minmax(0, 560px) 390px;
    gap: 18px;
    min-height: var(--panel-media-height);
    justify-content: center;
}
.block-4 .split-content {
    max-width: none;
    justify-self: stretch;
}
.block-4 .media-card-portrait {
    width: 100%;
    margin: 0;
    height: var(--panel-media-height);
    aspect-ratio: auto;
}
.block-4 .media-card-portrait .media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.who-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    padding: 11px 16px;
    border-radius: 10px;
    transition: 0.2s ease;
}
.block-4 .section-head {
    margin: 0 0 36px;
    max-width: none;
}
.li-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: #fff; }
.who-link:hover { background: #fff; color: #000; transform: translateY(-1px); }
.who-link:hover .li-icon { background: #111; color: #fff; border-color: #111; }

/* Security media */
.security-media-card {
    width: 90%;
    margin: 0 auto;
}
.block-6 .split-media { display: flex; justify-content: center; }

/* Final CTA */
.final-cta { padding-bottom: 100px; }
.cta-box {
    padding: 56px 40px;
    text-align: center;
    background: transparent;
    border: none;
    backdrop-filter: none;
}
.cta-box h2 { font-size: 3rem; margin-bottom: 16px; }
.final-cta .cta-group { margin-top: 30px; }
.cta-note { margin-top: 18px; font-size: 1.05rem; color: var(--text-dim); }
.final-cta .split-layout {
    align-items: center;
    grid-template-columns: 1.43fr 0.97fr;
    gap: 18px;
}
.final-cta .split-media { display: flex; justify-content: flex-end; }
.final-cta .split-content { display: block; }
.final-cta .media-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5 / 6;
    height: auto;
}
.final-cta .cta-box { width: 100%; height: auto; display: flex; flex-direction: column; justify-content: flex-start; }
.final-cta .media-image {
    min-height: 0;
    height: 100%;
    object-fit: cover;
}
.lead-form {
    margin-top: 26px;
    display: grid;
    gap: 16px;
    text-align: left;
    background: rgba(15, 15, 15, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 18px;
}
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.lead-form input,
.lead-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: rgba(255,255,255,0.45);
}
.lead-form textarea { resize: vertical; min-height: 150px; }
.lead-form .btn {
    width: auto;
    min-width: 140px;
    justify-self: center;
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .final-cta .split-layout,
    .final-cta .split-layout.split-reverse {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .final-split .split-content,
    .final-split .split-media {
        order: initial;
        width: 100%;
    }

    .final-cta .split-media {
        justify-content: center;
    }

    .final-cta .media-card {
        max-width: 320px;
        margin: 0 auto;
    }
}


/* Footer */
footer { padding: 60px 0; border-top: 1px solid var(--border); }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    gap: 18px;
}
.footer-logo { justify-self: start; }
.footer-center { justify-self: center; text-align: center; }
.footer-grid .footer-copy:last-child { justify-self: end; text-align: right; }
.footer-copy { opacity: 0.85; }

@media (max-width: 900px) {
    .block { padding: 70px 0; }
    .cta-box { padding: 40px 20px; }
    .card-grid-2 { grid-template-columns: 1fr; }
    .benchmark-card { padding: 26px; }
    .scale-labels {
        position: relative;
        height: 86px;
        margin-bottom: 8px;
    }
    .scale-labels span {
        position: absolute;
        transform: translateX(-50%);
        width: 84px;
        white-space: normal;
        line-height: 1.15;
        text-align: center;
        font-size: 0.74rem;
        color: var(--text-dim);
    }
    .scale-labels span::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        width: 1px;
        background: rgba(255,255,255,0.25);
    }
    .scale-labels span:nth-child(1) { left: 20%; top: 36px; }
    .scale-labels span:nth-child(1)::after { height: 12px; }
    .scale-labels span:nth-child(2) { left: 40%; top: 8px; }
    .scale-labels span:nth-child(2)::after { height: 40px; }
    .scale-labels span:nth-child(3) { left: 60%; top: 36px; }
    .scale-labels span:nth-child(3)::after { height: 12px; }
    .scale-labels span:nth-child(4) { left: 70%; top: 8px; width: 64px; }
    .scale-labels span:nth-child(4)::after { height: 40px; }
    .scale-values { height: 20px; margin-top: 10px; }
    .scale-values span {
        width: auto;
        white-space: nowrap;
        line-height: 1;
        font-size: 0.78rem;
    }
    .scale-values .scale-endpoint-start,
    .scale-values .scale-endpoint-end { width: auto; }
    .split-layout,
    .split-reverse { grid-template-columns: 1fr; }
    .media-card-portrait { max-width: 100%; margin-left: 0; }
    .split-media { order: 2; }
    .block-4 .split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 16px;
        justify-content: stretch;
    }
    .block-4 .split-content {
        max-width: none;
        width: 100%;
        justify-self: stretch;
    }
    .block-4 .split-media { order: 2; }
    .block-4 .split-content { order: 1; }
    .block-4 .media-card-portrait {
        max-width: 320px;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        margin: 0 auto;
    }
    .block-4 .media-card-portrait .media-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .final-split .split-content { order: 1; }
    .final-split .split-media { order: 2; }
    .final-cta .split-layout { gap: 14px; }
    .final-cta .split-media { justify-content: center; }
    .final-cta .media-card {
        max-width: 280px;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
    }
    .cta-box {
        padding: 28px 18px;
    }
    .cta-box h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .lead-form { margin-top: 18px; }
    .lead-form-grid { grid-template-columns: 1fr; }
    .lead-full { grid-column: auto; }
    .lead-form textarea { min-height: 120px; }
    .lead-form .btn { width: 100%; justify-self: stretch; }
    .grid-overlay { opacity: 0.78; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo,
    .footer-center,
    .footer-grid .footer-copy:last-child {
        justify-self: center;
        text-align: center;
    }
}
