/* =========================================================
   CVEWORKS - PUBLIC EXPOSURE SCANNER
   Light / Red / White visual identity
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --red: #c90000;
    --red-dark: #a90000;
    --red-light: #fff1f1;

    --white: #ffffff;

    --background: #f7f7f8;

    --text: #202124;
    --text-light: #6d6d6d;

    --border: #dddddd;
    --border-light: #eeeeee;

    --green: #17823b;
    --green-bg: #edf8f1;

    --orange: #c46a00;
    --orange-bg: #fff5e8;

    --blue: #2563a8;
    --blue-bg: #eef5fc;

    --shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.6;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   HEADER
   PADRÃO CVEWORKS
========================================================= */

.site-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e5e7;

    flex-shrink: 0;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 72px;

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #202124;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;

    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    background: #c90000;
    color: #ffffff;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;

    box-shadow: none;
}

.brand-name {
    color: #202124;

    font-size: 20px;
    font-weight: 800;

    line-height: normal;
    letter-spacing: -0.4px;
}

.brand-name span {
    color: #c90000;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-navigation {
    display: flex;
    align-items: center;

    gap: 32px;
}

.site-navigation a {
    padding: 0;

    color: #5f6368;

    font-size: 14px;
    font-weight: 600;

    background: transparent;

    border: 0;
    border-radius: 0;

    transition:
        color 0.2s ease;
}

.site-navigation a:hover {
    color: #c90000;
}


/* =========================================================
   MAIN
========================================================= */

.page-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 45px 24px 70px;

    flex: 1;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    margin-bottom: 35px;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 span {
    color: #d71920;
}

.tool-badge {
    display: inline-block;

    padding: 5px 10px;
    margin-bottom: 14px;

    background: var(--red-light);
    color: var(--red);

    border: 1px solid #ffd1d1;
    border-radius: 4px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.hero-content h1 {
    margin-bottom: 14px;

    font-size: 40px;
    line-height: 1.15;

    letter-spacing: -1px;
}

.hero-content p {
    max-width: 700px;

    color: var(--text-light);

    font-size: 17px;
}


/* =========================================================
   CARDS
========================================================= */

.scanner-card,
.score-card,
.statistics-card,
.result-block,
.recommendations-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    box-shadow: var(--shadow);
}


/* =========================================================
   SCANNER
========================================================= */

.scanner-card {
    padding: 30px;

    margin-bottom: 40px;
}

.scanner-header {
    margin-bottom: 25px;
}

.scanner-header h2 {
    margin-bottom: 5px;

    font-size: 21px;
}

.scanner-header p {
    color: var(--text-light);

    font-size: 14px;
}

.input-area label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
}

.input-row {
    display: flex;

    gap: 10px;
}

.input-row input {
    flex: 1;

    height: 48px;

    padding: 0 15px;

    border: 1px solid #cfcfcf;
    border-radius: 5px;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.input-row input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(201, 0, 0, 0.08);
}

.input-area small {
    display: block;

    margin-top: 9px;

    color: #777777;

    font-size: 12px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button {
    min-height: 44px;

    padding: 0 20px;

    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s,
        transform 0.1s;
}

.primary-button {
    background: var(--red);
    color: #ffffff;

    border: 1px solid var(--red);
}

.primary-button:hover {
    background: var(--red-dark);

    border-color: var(--red-dark);
}

.secondary-button {
    background: #ffffff;
    color: #333333;

    border: 1px solid #cfcfcf;
}

.secondary-button:hover {
    color: var(--red);

    border-color: var(--red);
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(1px);
}

.large-button {
    min-height: 48px;
}


/* =========================================================
   STATUS
========================================================= */

.scan-status {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 20px;
    padding: 13px 15px;

    background: #fafafa;
    color: #555555;

    border: 1px solid #e5e5e5;
    border-radius: 5px;

    font-size: 13px;
}

.spinner {
    width: 15px;
    height: 15px;

    border: 2px solid #dddddd;
    border-top-color: var(--red);
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.error-box {
    margin-top: 15px;
    padding: 13px 15px;

    background: var(--red-light);
    color: var(--red);

    border: 1px solid #efbcbc;
    border-radius: 5px;

    font-size: 13px;
}

.note {
    padding: 14px 20px;

    color: #777777;

    border-top: 1px solid var(--border-light);

    font-size: 12px;
}

.muted {
    color: #777777;

    font-size: 13px;
}


/* =========================================================
   RESULTS
========================================================= */

.results-section {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(8px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

.results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.results-top h2 {
    margin: 3px 0;

    font-size: 26px;
}

.results-top p {
    color: var(--text-light);

    font-size: 12px;
}

.action-group {
    display: flex;

    gap: 10px;
}

.section-label {
    display: inline-block;

    margin-bottom: 18px;
    padding: 9px 16px;

    color: #c90000;

    background: #ffffff;

    border: 1px solid #f3bcbc;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* =========================================================
   SCORE
========================================================= */

.score-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(300px, 1fr);

    gap: 18px;

    margin-bottom: 20px;
}

.score-card {
    display: flex;
    align-items: center;

    gap: 25px;

    padding: 30px;
}

.score-circle {
    width: 130px;
    height: 130px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    border: 8px solid #e9b4b4;
    border-radius: 50%;
}

.score-circle span {
    color: var(--red);

    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.score-circle small {
    margin-top: 3px;

    color: #777777;

    font-size: 11px;
}

.score-information h3 {
    margin: 3px 0 5px;

    color: var(--red);

    font-size: 24px;
}

.score-information p {
    max-width: 430px;

    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   STATISTICS
========================================================= */

.statistics-card {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    padding: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;

    padding: 14px;

    border: 1px solid var(--border-light);
    border-radius: 5px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
}

.stat-label {
    color: var(--text-light);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* =========================================================
   RESULT BLOCK
========================================================= */

.result-block {
    margin-bottom: 18px;

    overflow: hidden;
}

.block-header {
    min-height: 70px;

    padding: 20px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid var(--border-light);
}

.block-header h3 {
    margin-top: 2px;

    font-size: 18px;
}

.block-description {
    color: #777777;

    font-size: 12px;
}


/* =========================================================
   RESULT GRID
========================================================= */

.result-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    background: var(--border-light);
}

.result-item {
    min-height: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 18px 20px;

    background: #ffffff;
}

.result-label {
    margin-bottom: 4px;

    color: #777777;

    font-size: 11px;
}

.result-item strong {
    font-size: 14px;

    word-break: break-word;
}


/* =========================================================
   SECURITY GRID
========================================================= */

.security-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    background: var(--border-light);
}

.security-item {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px 18px;

    background: #ffffff;

    font-size: 13px;
}


/* =========================================================
   STATUS LABELS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;

    padding: 4px 8px;

    background: var(--blue-bg);
    color: var(--blue);

    border-radius: 4px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

.status.good {
    background: var(--green-bg);
    color: var(--green);
}

.status.warning {
    background: var(--orange-bg);
    color: var(--orange);
}

.status.bad {
    background: var(--red-light);
    color: var(--red);
}

.status.info {
    background: var(--blue-bg);
    color: var(--blue);
}


/* =========================================================
   TECHNOLOGY
========================================================= */

.technology-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    padding: 22px 25px;
}

.technology-tag {
    padding: 7px 11px;

    background: #fafafa;
    color: #444444;

    border: 1px solid #d8d8d8;
    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   FINDINGS
========================================================= */

.findings-list {
    padding: 20px 25px;
}

.finding {
    display: flex;

    gap: 15px;

    margin-bottom: 12px;
    padding: 17px;

    background: #fcfcfc;

    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 4px;
}

.finding:last-child {
    margin-bottom: 0;
}

.finding-severity {
    min-width: 65px;

    padding-top: 2px;

    color: var(--red);

    font-size: 9px;
    font-weight: 800;
}

.finding-content h4 {
    margin-bottom: 3px;

    font-size: 14px;
}

.finding-content p {
    color: var(--text-light);

    font-size: 12px;
}

.finding-critical {
    border-left-color: #8b0000;
}

.finding-high {
    border-left-color: var(--red);
}

.finding-medium {
    border-left-color: var(--orange);
}

.finding-low {
    border-left-color: var(--blue);
}

.empty-state {
    padding: 10px;

    color: var(--green);

    font-size: 13px;
}


/* =========================================================
   RECOMMENDATIONS
========================================================= */

.recommendations-card {
    width: 100%;

    display: block;

    overflow: hidden;

    margin-bottom: 25px;

    grid-column: 1 / -1;
}

.recommendations-card ol {
    margin: 0;

    padding: 22px 25px 22px 50px;
}

.recommendations-card li {
    padding: 6px 0;

    color: #444444;

    font-size: 13px;
}




/* =========================================================
   ASSESSMENT
========================================================= */

.assessment-section {
    border-color: #e4d7d7;
}

.assessment-content {
    padding: 24px 25px;
}

.assessment-block {
    margin-bottom: 18px;
    padding: 18px 20px;

    background: #fcfcfc;

    border: 1px solid var(--border-light);
    border-left: 3px solid #d8d8d8;
    border-radius: 5px;
}

.assessment-block:last-child {
    margin-bottom: 0;
}

.assessment-summary,
.assessment-overall {
    border-left-color: var(--red);
}

.assessment-block h4 {
    margin-bottom: 10px;

    font-size: 14px;
}

.assessment-block > p,
.assessment-item p,
.assessment-finding p {
    color: var(--text-light);

    font-size: 12px;
    line-height: 1.65;
}

.assessment-list,
.assessment-findings {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.assessment-item,
.assessment-finding {
    display: grid;

    grid-template-columns:
        110px
        minmax(0, 1fr);

    gap: 14px;

    padding: 13px 14px;

    background: #ffffff;

    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.assessment-item strong,
.assessment-finding strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;
}

.assessment-value {
    margin-bottom: 4px;

    color: #333333;

    font-size: 12px;
    font-weight: 600;

    word-break: break-word;
}

.assessment-state,
.assessment-severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: start;

    min-height: 24px;

    padding: 4px 7px;

    border-radius: 4px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.5px;
    text-align: center;
}

.assessment-state.observed {
    background: var(--blue-bg);
    color: var(--blue);
}

.assessment-state.absent {
    background: var(--orange-bg);
    color: var(--orange);
}

.assessment-state.not-verified {
    background: #f1f1f1;
    color: #666666;
}

.assessment-severity {
    background: var(--red-light);
    color: var(--red);
}

.assessment-recommendations {
    margin: 0;

    padding-left: 22px;
}

.assessment-recommendations li {
    padding: 4px 0;

    color: #444444;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   REPORT ACTIONS
========================================================= */

.report-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}


/* =========================================================
   FOOTER
   PADRÃO CVEWORKS
========================================================= */

.site-footer {
    width: 100%;

    background: #ffffff;

    border-top: 1px solid #e4e4e6;

    flex-shrink: 0;
}


/* =========================================================
   FOOTER CONTENT
   Caso exista estrutura completa de rodapé
========================================================= */

.footer-content {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 50px;

    padding: 50px 0;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #202124;

    font-size: 18px;
    font-weight: 800;
}

.footer-logo > span:last-child span {
    color: #c90000;
}

.footer-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    background: #c90000;
    color: #ffffff;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 800;
}

.footer-brand p {
    margin-top: 12px;

    color: #85898d;

    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.footer-column strong {
    margin-bottom: 4px;

    color: #303236;

    font-size: 12px;
}

.footer-column a {
    color: #85898d;

    font-size: 12px;
}

.footer-column a:hover {
    color: #c90000;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    width: 100%;

    background: #ffffff;

    border-top: 1px solid #eeeeef;
}

.footer-bottom-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    color: #92969a;

    font-size: 11px;
}


/* =========================================================
   FOOTER TEXT
========================================================= */

.footer-bottom-inner p,
.footer-bottom-inner span {
    margin: 0;

    color: #92969a;

    font-size: 11px;
    line-height: 1.6;
}

.footer-bottom-inner a {
    color: #c90000;

    font-size: inherit;
}

.footer-bottom-inner a:hover {
    text-decoration: underline;
}

.footer-credit {
    color: #92969a;

    text-align: right;

    font-size: 11px;
}

.footer-credit span {
    color: #c90000;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .score-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns:
            1.5fr 1fr 1fr;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {

    /* =====================================================
       HEADER
    ===================================================== */

    .header-inner {
        width: min(100% - 28px, 1180px);
        height: 64px;
    }

    .site-navigation {
        gap: 16px;
    }


    /* =====================================================
       MAIN
    ===================================================== */

    .page-container {
        padding:
            30px 15px 50px;
    }

    .hero-content h1 {
        font-size: 31px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .scanner-card {
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
    }

    .input-row input,
    .input-row .primary-button {
        width: 100%;
    }

    .results-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-group {
        width: 100%;

        flex-direction: column;
    }

    .action-group button {
        width: 100%;
    }

    .score-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .block-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .finding {
        flex-direction: column;

        gap: 5px;
    }

    .finding-severity {
        min-width: auto;
    }

    .report-actions {
        flex-direction: column;
    }

    .report-actions button {
        width: 100%;
    }



    .assessment-content {
        padding: 18px;
    }

    .assessment-item,
    .assessment-finding {
        grid-template-columns: 1fr;
    }

    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-content {
        width: min(100% - 28px, 1180px);

        grid-template-columns:
            1fr 1fr;

        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        width: min(100% - 28px, 1180px);

        align-items: flex-start;
        flex-direction: column;

        gap: 20px;

        padding: 18px 0;

        text-align: left;
    }

    .footer-credit {
        text-align: left;
    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .site-navigation a {
        font-size: 12px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .scanner-card {
        border-radius: 5px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .site-header,
    .scanner-card,
    .report-actions,
    .site-footer,
    .results-top .action-group {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    .page-container {
        padding: 0;
    }

    .result-block,
    .score-card,
    .statistics-card,
    .recommendations-card {
        box-shadow: none;

        break-inside: avoid;
    }

}