/* =========================================================
   CVEWORKS - ABOUT PAGE
   Based on main CVEWorks visual identity
   Light / Red / White
========================================================= */

*{
    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.5;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
select,
textarea{
    font:inherit;
}

.container{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:0 24px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header{
    width:100%;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter:blur(10px);
}

.header-content{
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    color:#171717;
    font-size:21px;
    font-weight:800;
}

.logo-mark,
.footer-mark{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#d71920;
    color:#fff;
    border-radius:10px;
    font-size:10px;
    font-weight:900;
    letter-spacing:.04em;
    box-shadow:0 4px 12px rgba(215,25,32,.18);
}

.logo-name span,
.footer-logo span span{
    color:#d71920;
}

.navigation{
    display:flex;
    align-items:center;
    gap:8px;
}

.navigation a{
    padding:9px 14px;
    border-radius:8px;
    color:#555;
    font-size:14px;
    font-weight:600;
    transition:.2s ease;
}

.navigation a:hover,
.navigation a[aria-current="page"]{
    background:#fff1f1;
    color:#d71920;
}


/* =========================================================
   HERO
========================================================= */

.hero{
    position:relative;
    padding:88px 0 64px;
    text-align:center;
    background:linear-gradient(180deg,#fff 0%,#fffafa 100%);
    overflow:hidden;
}

.hero-glow{
    position:absolute;
    width:480px;
    height:480px;
    top:-320px;
    left:50%;
    transform:translateX(-50%);
    border-radius:50%;
    background:#d71920;
    opacity:.055;
    pointer-events:none;
}

.hero-content{
    position:relative;
    max-width:900px;
}

.hero-badge,
.section-label{
    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:.10em;
}

.hero h1{
    margin-top:20px;
    font-size:clamp(36px,6vw,60px);
    line-height:1.05;
    letter-spacing:-1.8px;
    color:#171717;
}

.hero h1 span{
    color:#d71920;
}

.hero-description{
    max-width:760px;
    margin:20px auto 0;
    color:#666;
    font-size:17px;
    line-height:1.7;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.tools-section,
.features-section,
.about-section,
.cta-section{
    padding:72px 0;
}

.section-heading{
    max-width:760px;
    margin-bottom:34px;
}

.section-heading.centered{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}

.section-heading h2{
    margin-top:13px;
    font-size:34px;
    line-height:1.15;
    color:#171717;
}

.section-heading p{
    margin-top:10px;
    color:#6a6a6a;
    font-size:15px;
    line-height:1.7;
}


/* =========================================================
   ABOUT CONTENT
========================================================= */

.about-section{
    background:#f7f7f8;
}

.tools-section{
    background:#f7f7f8;
}

/*
   Main about box:
   Two columns only when title + text exist.
*/
.about-box{
    display:grid;
    grid-template-columns:minmax(220px,.9fr) minmax(0,1.6fr);
    gap:52px;
    padding:42px;
    background:#fff;
    border:1px solid #e2e2e2;
    border-radius:14px;
    box-shadow:0 3px 15px rgba(0,0,0,.025);
}

/*
   IMPORTANT:
   If the box contains only .about-text,
   use the entire available width.
*/
.about-box > .about-text:only-child{
    grid-column:1 / -1;
    width:100%;
    max-width:none;
}

/*
   Limit paragraph line length,
   but do not leave half the box empty.
*/
.about-box > .about-text:only-child p{
    max-width:940px;
}

.about-title{
    align-self:start;
}

.about-title h2{
    margin-top:15px;
    font-size:32px;
    line-height:1.2;
    color:#171717;
}

.about-text{
    width:100%;
    min-width:0;
}

.about-text p{
    color:#626262;
    font-size:15px;
    line-height:1.8;
}

.about-text p + p{
    margin-top:18px;
}

.about-text a{
    color:#d71920;
    font-weight:600;
}

.about-text a:hover{
    text-decoration:underline;
}


/* =========================================================
   FEATURES
========================================================= */

.features-section{
    background:#fff;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.features-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.feature-card{
    position:relative;
    padding:25px;
    background:#fff;
    border:1px solid #e3e3e3;
    border-radius:12px;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
    overflow:hidden;
}

.feature-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:0;
    height:4px;
    background:#d71920;
    transition:width .50s ease;
}

.feature-card:hover{
    border-color:#efa4a8;
    transform:translateY(-6px);
    box-shadow:0 12px 26px rgba(0,0,0,.07);
}

.feature-card:hover::before{
    width:100%;
}

.feature-icon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#fff1f1;
    color:#d71920;
    font-size:12px;
    font-weight:900;
    letter-spacing:.03em;
}

.feature-card h3{
    margin-top:17px;
    font-size:18px;
    color:#171717;
}

.feature-card p{
    margin-top:8px;
    color:#6b6b6b;
    font-size:14px;
    line-height:1.65;
}


/* =========================================================
   CTA
========================================================= */

.cta-section{
    background:#fff;
}

.cta-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:36px;
    border:1px solid #f0b7ba;
    border-radius:14px;
    background:#fffafa;
}

.cta-box h2{
    margin-top:11px;
    font-size:28px;
    color:#171717;
}

.cta-box p{
    margin-top:6px;
    color:#6a6a6a;
    font-size:14px;
    line-height:1.65;
}

.primary-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-height:46px;
    padding:0 20px;
    border-radius:8px;
    background:#d71920;
    color:#fff;
    font-size:14px;
    font-weight:800;
    box-shadow:0 5px 16px rgba(215,25,32,.18);
    transition:.2s ease;
    flex-shrink:0;
}

.primary-button:hover{
    background:#bd151b;
    transform:translateY(-1px);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer{
    background:#fff;
    border-top:1px solid #e5e5e5;
}

.footer-content{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    gap:50px;
    padding-top:48px;
    padding-bottom:42px;
}

.footer-logo{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#171717;
    font-size:20px;
    font-weight:800;
}

.footer-mark{
    width:38px;
    height:38px;
    font-size:9px;
}

.footer-brand p{
    max-width:280px;
    margin-top:12px;
    color:#777;
    font-size:13px;
}

.footer-column{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:9px;
}

.footer-column strong{
    margin-bottom:4px;
    color:#222;
    font-size:13px;
}

.footer-column a{
    color:#686868;
    font-size:13px;
}

.footer-column a:hover{
    color:#d71920;
}

.copyright{
    border-top:1px solid #eee;
    color:#777;
    font-size:12px;
}

.copyright .container{
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.copyright a{
    color:#d71920;
}

.copyright a:hover{
    text-decoration:underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:900px){

    .about-box{
        grid-template-columns:1fr;
        gap:25px;
    }

    .about-box > .about-text:only-child{
        grid-column:auto;
    }

    .features-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-content{
        grid-template-columns:1.3fr 1fr 1fr;
    }

}


@media(max-width:680px){

    .container{
        padding-left:18px;
        padding-right:18px;
    }

    .header-content{
        min-height:66px;
    }

    .logo{
        font-size:19px;
    }

    .logo-mark{
        width:37px;
        height:37px;
    }

    .navigation{
        gap:2px;
    }

    .navigation a{
        padding:8px 9px;
        font-size:12px;
    }

    .hero{
        padding:65px 0 48px;
    }

    .hero h1{
        font-size:39px;
        letter-spacing:-1px;
    }

    .hero-description{
        font-size:15px;
    }

    .tools-section,
    .features-section,
    .about-section,
    .cta-section{
        padding:52px 0;
    }

    .section-heading h2{
        font-size:29px;
    }

    .about-box{
        padding:25px;
        border-radius:12px;
    }

    .about-title h2{
        font-size:27px;
    }

    .about-text p{
        font-size:14px;
        line-height:1.75;
    }

    .features-grid{
        grid-template-columns:1fr;
    }

    .cta-box{
        align-items:flex-start;
        flex-direction:column;
        padding:27px;
    }

    .primary-button{
        width:100%;
    }

    .footer-content{
        grid-template-columns:1fr 1fr;
        gap:30px;
    }

    .footer-brand{
        grid-column:1/-1;
    }

    .copyright .container{
        min-height:auto;
        padding-top:16px;
        padding-bottom:16px;
        flex-direction:column;
        align-items:flex-start;
    }

}