/* =========================================================
   CVEWORKS - CPF GENERATOR
   File: Gerador_CPF.css
   Light / Red / White visual identity
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f7f7f8;
    color: #202124;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   PADRÃO CVEWORKS
========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e7;
}

.header-content {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #202124;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}


/*
   Compatibilidade com o HTML atual do Gerador de CPF.
   O padrão principal do CVEWorks utiliza .logo-mark.
*/
.logo-mark,
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    background: #c90000;
    color: #ffffff;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-name {
    color: #202124;

    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.4px;
}

.logo-cve {
    color: #202124;
}

.logo-work,
.logo-name span {
    color: #c90000;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navigation a {
    color: #5f6368;

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.navigation a:hover {
    color: #c90000;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    padding:
        70px 0 60px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffafa 100%
        );

    overflow: hidden;
}

.hero-background {
    position: absolute;

    width: 480px;
    height: 480px;

    top: -320px;
    left: 50%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background: #d71920;

    opacity: 0.055;

    pointer-events: none;
}

.hero-content {
    position: relative;

    max-width: 900px;
}

.hero-badge,
.section-badge {
    display: inline-flex;
    align-items: center;

    padding:
        7px 14px;

    border:
        1px solid #ffcaca;

    border-radius: 30px;

    background: #fff5f5;

    color: #d71920;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.10em;
}

.hero h1 {
    margin:
        20px 0 14px;

    color: #171717;

    font-size:
        clamp(
            38px,
            6vw,
            54px
        );

    line-height: 1.08;

    letter-spacing: -1px;
}

.hero h1 span {
    color: #d71920;
}

.hero p {
    max-width: 680px;

    margin: 0 auto;

    color: #666666;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   HACKERDNA AFFILIATE
========================================================= */

.affiliate-section {
    padding: 64px 0;

    background: #f7f7f8;
}

.affiliate-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 38px 42px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.035);

    overflow: hidden;
}

.affiliate-box::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -120px;
    top: -130px;

    border-radius: 50%;

    background: #d71920;

    opacity: 0.035;

    pointer-events: none;
}

.affiliate-content {
    position: relative;

    z-index: 1;

    max-width: 760px;
}

.affiliate-box h2 {
    margin-top: 12px;

    color: #171717;

    font-size: 28px;

    line-height: 1.2;
}

.affiliate-box p {
    margin-top: 8px;

    color: #686868;

    font-size: 14px;

    line-height: 1.7;
}

.affiliate-button {
    position: relative;

    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    gap: 12px;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 8px;

    background: #d71920;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 5px 16px rgba(215, 25, 32, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.affiliate-button:hover {
    background: #bd151b;

    transform:
        translateY(-1px);
}

.affiliate-button span {
    font-size: 18px;
}

.affiliate-disclosure {
    margin-top: 13px !important;

    color: #999999 !important;

    font-size: 11px !important;

    line-height: 1.5 !important;
}


/* =========================================================
   GENERATOR SECTION
========================================================= */

.generator-section {
    padding:
        60px 0 70px;

    background: #ffffff;
}


/* =========================================================
   GENERATOR CARD
========================================================= */

.generator-card {
    max-width: 850px;

    margin: 0 auto;

    padding: 35px;

    border:
        1px solid #e5e5e5;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 12px 40px
        rgba(
            0,
            0,
            0,
            0.06
        );
}


/* =========================================================
   CARD HEADER
========================================================= */

.card-header {
    margin-bottom: 28px;

    text-align: center;
}

.card-header h2 {
    margin:
        17px 0 8px;

    color: #171717;

    font-size: 27px;
}

.card-header p {
    margin: 0;

    color: #777777;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   CPF RESULT
========================================================= */

.cpf-result-box {
    padding:
        22px 24px;

    border:
        1px solid #ffcaca;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #fff5f5,
            #ffffff
        );
}

.cpf-result-label {
    display: block;

    margin-bottom: 9px;

    color: #d71920;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.08em;
}

.cpf-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.cpf-result-row strong {
    color: #d71920;

    font-family:
        "Courier New",
        monospace;

    font-size:
        clamp(
            25px,
            5vw,
            34px
        );

    letter-spacing: 2px;
}


/* =========================================================
   COPY CPF BUTTON
========================================================= */

.copy-button {
    min-width: 105px;
    height: 40px;

    padding:
        0 15px;

    border:
        1px solid #d71920;

    border-radius: 8px;

    background: #ffffff;

    color: #d71920;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.copy-button:hover {
    background: #d71920;

    color: #ffffff;
}

.copy-message {
    min-height: 17px;

    margin-top: 8px;

    color: #2f7d32;

    font-size: 11px;
}


/* =========================================================
   CPF DATA GRID
========================================================= */

.cpf-data-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-top: 18px;
}

.cpf-data-item {
    min-height: 90px;

    padding: 17px;

    border:
        1px solid #e7e7e7;

    border-radius: 11px;

    background: #fafafa;
}

.cpf-data-item span {
    display: block;

    margin-bottom: 8px;

    color: #777777;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.cpf-data-item strong {
    display: block;

    color: #222222;

    font-size: 14px;

    line-height: 1.45;
}


/* =========================================================
   EXPLANATION
========================================================= */

.cpf-explanation {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-top: 18px;

    padding: 18px;

    border:
        1px solid #e3e3e3;

    border-left:
        4px solid #d71920;

    border-radius: 10px;

    background: #fafafa;
}

.cpf-explanation-icon {
    flex-shrink: 0;

    font-size: 20px;
}

.cpf-explanation strong {
    display: block;

    margin-bottom: 6px;

    color: #333333;

    font-size: 13px;
}

.cpf-explanation p {
    margin: 0;

    color: #666666;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   TEST DATA NOTICE
========================================================= */

.cpf-test-notice {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-top: 14px;

    padding: 18px;

    border:
        1px solid #eadfbd;

    border-left:
        4px solid #d71920;

    border-radius: 10px;

    background: #fffaf0;
}

.notice-icon {
    flex-shrink: 0;

    font-size: 21px;
}

.cpf-test-notice strong {
    display: block;

    margin-bottom: 5px;

    color: #333333;

    font-size: 13px;
}

.cpf-test-notice p {
    margin: 0;

    color: #666666;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   ACTIONS
========================================================= */

.cpf-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 22px;
}

.generate-button,
.copy-all-button {
    height: 52px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
}

.generate-button {
    border:
        1px solid #d71920;

    background: #d71920;

    color: #ffffff;
}

.generate-button:hover {
    background: #b9151b;

    border-color: #b9151b;
}

.generate-button:active,
.copy-all-button:active {
    transform:
        translateY(1px);
}

.copy-all-button {
    width: 100%;

    border:
        1px solid #dddddd;

    background: #ffffff;

    color: #333333;
}

.copy-all-button:hover {
    background: #fff1f1;

    border-color: #f2bcbc;

    color: #c4161c;
}


/* =========================================================
   ABOUT SECTION
========================================================= */

.about-section {
    padding:
        65px 0 75px;

    background: #ffffff;
}

.about-card {
    max-width: 850px;

    margin: 0 auto;

    padding: 35px;

    border:
        1px solid #e5e5e5;

    border-radius: 16px;

    background: #ffffff;
}

.about-card > h2 {
    margin:
        18px 0 13px;

    color: #171717;

    font-size: 29px;
}

.about-card > p {
    margin:
        0 0 13px;

    color: #666666;

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   SECURITY NOTICES
========================================================= */

.security-notice {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-top: 17px;

    padding: 18px;

    border:
        1px solid #e4e4e4;

    border-radius: 10px;

    background: #fafafa;
}

.security-notice.warning {
    border-color: #eadfbd;

    background: #fffaf0;
}

.security-icon {
    flex-shrink: 0;

    font-size: 20px;
}

.security-notice strong {
    display: block;

    margin-bottom: 5px;

    color: #333333;

    font-size: 13px;
}

.security-notice p {
    margin: 0;

    color: #666666;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   FOOTER
   PADRÃO CVEWORKS
========================================================= */

.site-footer {
    background: #ffffff;

    border-top: 1px solid #e4e4e6;
}

.footer-content {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 50px;

    padding: 50px 0;
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.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;

    line-height: 1.6;
}

.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;
}

/* =========================================================
   FOOTER COLUMNS
========================================================= */

.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 {
    border-top: 1px solid #eeeeef;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    color: #92969a;

    font-size: 11px;
}

.footer-bottom-inner a {
    color: #c90000;
}

.footer-bottom-inner a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .footer-content {
        grid-template-columns:
            1.5fr 1fr 1fr;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(
            100% - 28px,
            1180px
        );
    }


    /* HEADER */

    .header-content {
        height: 64px;
    }

    .navigation {
        gap: 16px;
    }


    /* HERO */

    .hero {
        padding:
            55px 0 50px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 13px;
    }


    /* GENERATOR */

    .generator-section {
        padding:
            45px 0 55px;
    }

    .generator-card {
        padding:
            22px 18px;

        border-radius: 14px;
    }

    .cpf-result-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .copy-button {
        width: 100%;
    }

    .cpf-data-grid {
        grid-template-columns:
            1fr;
    }

    .cpf-actions {
        grid-template-columns:
            1fr;
    }


    /* ABOUT */

    .about-section {
        padding:
            55px 0;
    }

    .about-card {
        padding:
            25px 20px;
    }


    /* AFFILIATE */

    .affiliate-section {
        padding:
            50px 0;
    }

    .affiliate-box {
        align-items: flex-start;
        flex-direction: column;

        gap: 24px;

        padding: 28px 24px;
    }

    .affiliate-button {
        width: 100%;
    }


    /* FOOTER */

    .footer-content {
        grid-template-columns:
            1fr 1fr;

        gap: 30px;
    }

    .footer-brand {
        grid-column:
            1 / -1;
    }

    .footer-bottom-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    /* HEADER */

    .navigation a {
        font-size: 12px;
    }

    .logo-name {
        font-size: 18px;
    }

    .logo-mark,
    .logo-badge {
        width: 36px;
        height: 36px;
    }


    /* HERO */

    .hero h1 {
        font-size: 32px;
    }


    /* CPF */

    .cpf-result-row strong {
        font-size: 25px;

        letter-spacing: 1px;
    }


    /* FOOTER */

    .footer-content {
        grid-template-columns:
            1fr;

        gap: 25px;
    }

    .footer-brand {
        grid-column: auto;
    }

}