:root {
    --color-navy: #14263d;
    --color-navy-dark: #0d1b2a;
    --color-blue: #2878b8;
    --color-blue-dark: #1f6399;
    --color-background: #f7f9fb;
    --color-surface: #ffffff;
    --color-text: #1f2933;
    --color-muted: #667585;
    --color-border: #dce3e9;

    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--color-text);
    background: var(--color-background);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-blue);
}

.container {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

/* Header */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

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

.brand {
    color: var(--color-navy);
    font-size: 1.35rem;
    font-weight: 750;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--color-blue);
}

/* Main */

main {
    flex: 1;
}

/* Hero */

.hero {
    padding: clamp(4rem, 9vw, 8rem) 0;
    background:
        linear-gradient(
            135deg,
            var(--color-navy-dark),
            var(--color-navy)
        );
    color: white;
}

.hero-content {
    max-width: 850px;
}

.eyebrow {
    margin: 0 0 1rem;
    color: #a8d4f2;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-lede {
    max-width: 700px;
    margin: 1.75rem 0 0;
    color: #e3eaf0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

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

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

.hero-note {
    margin: 1rem 0 0;
    color: #bfcbd5;
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    padding: 2rem 0;
    color: var(--color-muted);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

/* Mobile */

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

    .site-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 0;
    }
}

/* =========================================================
   Security Manager
   ========================================================= */

.security-content {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
    padding: 3rem 0 5rem;
}

/* Security check form */

.security-content > .hero {
    margin: -3rem calc(50% - 50vw) 3rem;
    padding: clamp(3rem, 7vw, 5rem)
             max(1rem, calc((100vw - var(--content-width)) / 2));
}

.scan-form {
    max-width: 680px;
    margin-top: 2rem;
    padding: 1.5rem;
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: 10px;
}

.scan-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.scan-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
}

.scan-form input:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 1px;
}

.scan-form button,
.export-button {
    margin-top: 1rem;
    padding: 0.85rem 1.15rem;
    border: 0;
    border-radius: 6px;
    color: white;
    background: var(--color-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.scan-form button:hover,
.export-button:hover {
    background: var(--color-blue-dark);
}

.form-error {
    margin-top: 0.5rem;
    color: #a61b1b;
    font-weight: 600;
}

.fine-print {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}


/* Report heading */

.report-header {
    margin-bottom: 2rem;
}

.report-header .eyebrow,
.monitoring-panel .eyebrow {
    color: var(--color-blue);
}

.report-header h1 {
    margin: 0.25rem 0 1.5rem;
    color: var(--color-navy);
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.03em;
}

.back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--color-blue);
    font-weight: 650;
    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}


/* Scan summary */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 720px;
}

.summary-grid > div {
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.summary-grid strong {
    display: block;
    color: var(--color-navy);
    font-size: 2rem;
    line-height: 1;
}

.summary-grid span {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}


/* Continuous monitoring */

.monitoring-panel {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.monitoring-panel h2 {
    margin-top: 0;
    color: var(--color-navy);
}

.monitoring-panel p {
    line-height: 1.55;
}


/* Security results */

.results {
    display: grid;
    gap: 1.25rem;
}

.result-card {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left-width: 5px;
    border-radius: 8px;
}

.result-card h2 {
    margin: 0.75rem 0 0.5rem;
    color: var(--color-navy);
}

.result-card > p {
    line-height: 1.6;
}


/* Result status */

.status-pass {
    border-left-color: #28824b;
}

.status-warning,
.status-unknown,
.status-error {
    border-left-color: #c58a16;
}

.status-fail {
    border-left-color: #b42318;
}

.status-label {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--color-background);
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pass .status-label {
    color: #176438;
}

.status-warning .status-label,
.status-unknown .status-label,
.status-error .status-label {
    color: #8a5c00;
}

.status-fail .status-label {
    color: #981b13;
}


/* Result explanations */

.impact,
.recommendation {
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: 6px;
}

.impact strong,
.recommendation strong {
    color: var(--color-navy);
}

.impact p,
.recommendation p {
    margin-bottom: 0;
    line-height: 1.6;
}


/* Technical information */

details {
    margin-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

summary {
    color: var(--color-blue);
    font-weight: 650;
    cursor: pointer;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--color-navy-dark);
    color: #e6edf3;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}


/* Security Manager mobile layout */

@media (max-width: 600px) {
    .security-content {
        padding-top: 2rem;
    }

    .security-content > .hero {
        margin-top: -2rem;
    }

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

    .result-card,
    .monitoring-panel {
        padding: 1.25rem;
    }
}

/* =========================================================
   General site sections
   ========================================================= */

.section {
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-alt {
    background: #eef3f7;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.section-heading .eyebrow,
.section .eyebrow {
    color: var(--color-blue);
}

.section-heading h2,
.split-section h2 {
    margin: 0 0 1rem;
    color: var(--color-navy);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section-heading > p:not(.eyebrow),
.split-section > div > p {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.centered {
    margin-inline: auto;
    text-align: center;
}

.narrow {
    max-width: 850px;
}


/* Hero buttons */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Services */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    padding: 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.service-card h3 {
    margin: 0 0 0.75rem;
    color: var(--color-navy);
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}


/* Split feature section */

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature {
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.feature strong,
.feature span {
    display: block;
}

.feature strong {
    margin-bottom: 0.35rem;
    color: var(--color-navy);
}

.feature span {
    color: var(--color-muted);
    line-height: 1.5;
}


/* Bottom call to action */

.cta-section {
    padding: 3rem 0;
    color: white;
    background: var(--color-navy);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-inner h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.cta-inner p {
    margin: 0;
    color: #d4dee7;
}

.button-light {
    flex-shrink: 0;
    color: var(--color-navy);
    background: white;
}

.button-light:hover {
    background: #eef3f7;
}


/* Homepage responsive layout */

@media (max-width: 800px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Interior pages
   ========================================================= */

.page-hero {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    color: white;
    background: var(--color-navy);
}

.page-hero .eyebrow {
    color: #a8d4f2;
}

.page-hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.page-hero > .container > p:not(.eyebrow) {
    max-width: 700px;
    margin: 1.5rem 0 0;
    color: #dbe5ed;
    font-size: 1.15rem;
    line-height: 1.65;
}

.content-column {
    max-width: 800px;
}

.content-column h2 {
    margin: 2.5rem 0 0.75rem;
    color: var(--color-navy);
    font-size: 1.75rem;
}

.content-column h2:first-child {
    margin-top: 0;
}

.content-column p {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.content-column .button {
    margin-top: 1rem;
}


/* Navigation CTA */

.nav-cta {
    padding: 0.55rem 0.8rem;
    color: white !important;
    background: var(--color-blue);
    border-radius: 5px;
}

.nav-cta:hover {
    background: var(--color-blue-dark);
}


/* Contact */

.contact-card {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.contact-card h3 {
    margin-top: 0;
    color: var(--color-navy);
}

.contact-card p {
    color: var(--color-muted);
    line-height: 1.6;
}

.contact-card hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}


/* Mobile navigation */

@media (max-width: 700px) {
    .header-inner {
        padding: 0.75rem 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
}

/* =========================================================
   Contact form
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
}

.contact-intro h2 {
    margin-top: 0;
    color: var(--color-navy);
    font-size: 2rem;
}

.contact-intro > p {
    color: var(--color-muted);
    line-height: 1.7;
}

.security-callout {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #eef3f7;
    border-radius: 8px;
}

.security-callout h3 {
    margin-top: 0;
    color: var(--color-navy);
}

.security-callout p {
    color: var(--color-muted);
    line-height: 1.6;
}

.security-callout a {
    font-weight: 700;
    text-decoration: none;
}

.contact-form {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-navy);
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: white;
    color: var(--color-text);
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 1px;
}

.required {
    color: #b42318;
}

.help-text,
.form-note {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.form-note {
    margin-bottom: 0;
}

.confirmation-card {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.confirmation-card .eyebrow {
    color: var(--color-blue);
}

.confirmation-card h1 {
    color: var(--color-navy);
}

.confirmation-card p {
    margin: 1rem auto 2rem;
    max-width: 600px;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 750px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}