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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f8fc;
    color: #182230;
    line-height: 1.6;
}

/* HEADER */

header {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e7eaf0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #635bff;
    color: white;

    border-radius: 10px;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #526071;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: #635bff;
}


/* HERO */

.hero {
    text-align: center;
    padding: 70px 20px 38px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.hero > p {
    color: #667085;
    font-size: 18px;
    margin-bottom: 20px;
}

.privacy-badge {
    display: inline-block;

    background: #edfff6;
    color: #087a4b;

    border: 1px solid #c7f3df;
    border-radius: 100px;

    padding: 7px 14px;

    font-size: 13px;
    font-weight: 600;
}


/* MAIN COUNTER */

.counter-container {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;

    background: white;

    border: 1px solid #e4e7ec;
    border-radius: 20px;

    padding: 26px;

    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06);
}


/* STAT CARDS */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;

    margin-bottom: 20px;
}

.stat-card {
    background: #f8f9fc;
    border: 1px solid #eaecf0;
    border-radius: 14px;

    padding: 18px;
    text-align: center;
}

.stat-card span {
    display: block;

    color: #635bff;

    font-size: 30px;
    font-weight: 750;

    line-height: 1.2;
}

.stat-card p {
    color: #667085;
    font-size: 13px;
    margin-top: 5px;
}


/* TEXT AREA */

textarea {
    width: 100%;
    min-height: 330px;

    resize: vertical;

    border: 1px solid #d7dce5;
    border-radius: 14px;

    padding: 20px;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;

    color: #182230;
    background: #ffffff;

    outline: none;

    transition: 0.2s;
}

textarea:focus {
    border-color: #635bff;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
}

textarea::placeholder {
    color: #98a2b3;
}


/* BUTTONS */

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 14px;
}

.actions button {
    border: 1px solid #d0d5dd;
    background: white;

    padding: 10px 18px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.actions button:hover {
    background: #f5f6f8;
}

#clearButton {
    color: #d92d20;
}


/* EXTRA STATS */

.extra-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #eaecf0;

    margin-top: 22px;
    padding-top: 22px;
}

.extra-stats div {
    text-align: center;
}

.extra-stats div:not(:last-child) {
    border-right: 1px solid #eaecf0;
}

.extra-stats span {
    font-size: 18px;
    font-weight: 700;
}

.extra-stats p {
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
}


/* DOCUMENT UPLOAD */

.upload-section {
    width: min(1000px, calc(100% - 40px));

    margin: 65px auto 0;

    text-align: center;
}

.upload-section h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.upload-section > p {
    color: #667085;
}

.upload-box {
    margin-top: 22px;

    padding: 55px 20px;

    background: white;

    border: 2px dashed #d0d5dd;
    border-radius: 18px;

    transition: 0.2s;
}

.upload-box:hover {
    border-color: #635bff;
    background: #fbfaff;
}

.upload-button {
    display: inline-block;

    background: #635bff;
    color: white;

    padding: 11px 20px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    margin-bottom: 12px;
}

.upload-button:hover {
    background: #5149e8;
}

.upload-box p {
    color: #667085;
    font-size: 14px;
}

.upload-box small {
    display: block;

    margin-top: 8px;

    color: #98a2b3;
}

.file-privacy {
    margin-top: 14px;

    font-size: 13px;
    color: #087a4b !important;
}


/* INFORMATION */

.info-section {
    width: min(800px, calc(100% - 40px));

    margin: 80px auto;
}

.info-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.info-section p {
    color: #667085;
}


/* FOOTER */

footer {
    border-top: 1px solid #e4e7ec;

    padding: 30px 20px;

    text-align: center;

    color: #98a2b3;

    font-size: 13px;

    background: white;
}


/* MOBILE */

@media (max-width: 700px) {

    header {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .hero {
        padding-top: 50px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-container {
        padding: 16px;
    }

    textarea {
        min-height: 300px;
    }

    .extra-stats {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .extra-stats div:not(:last-child) {
        border-right: none;
    }

    .actions {
        justify-content: stretch;
    }

    .actions button {
        flex: 1;
    }

}
/* DRAG AND DROP ACTIVE STATE */

.upload-box.drag-active {
    border-color: #635bff;
    background: #f3f1ff;
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(99, 91, 255, 0.12);
}

/* FILE UPLOAD STATUS */

.file-status {
    margin-top: 14px;
    min-height: 22px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #16a34a;
}
.file-status.processing {
    color: #635bff;
}

.file-status.success {
    color: #16a34a;
}

.file-status.error {
    color: #dc2626;
}

/* ========================================
   SEO CONTENT SECTIONS
======================================== */

.info-section {
    max-width: 1000px;
    margin: 32px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.info-section h2 {
    margin: 0 0 18px;
    font-size: 26px;
    color: #172033;
    line-height: 1.3;
}

.info-section h3 {
    margin: 22px 0 6px;
    font-size: 18px;
    color: #172033;
}

.info-section p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

/* FAQ spacing */

.info-section h3 + p {
    margin-bottom: 18px;
}

/* Mobile */

@media (max-width: 700px) {
    .info-section {
        margin: 20px 16px;
        padding: 24px 20px;
        border-radius: 14px;
    }

    .info-section h2 {
        font-size: 22px;
    }

    .info-section h3 {
        font-size: 17px;
    }

    .info-section p {
        font-size: 15px;
    }
}

/* FOOTER */

footer {
    margin-top: 60px;
    padding: 32px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #635bff;
}

.footer-content p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 600px) {
    .footer-links {
        gap: 14px 20px;
    }

    footer {
        padding: 28px 16px;
    }
}