* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef2ff 100%
        );

    color: #172033;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.container {
    width: 100%;
    max-width: 720px;
}


/* ==========================================================
   CARD PRINCIPAL
   ========================================================== */

.card {
    background: #ffffff;

    border-radius: 24px;

    padding: 42px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.10),
        0 4px 15px rgba(15, 23, 42, 0.04);

    border: 1px solid
        rgba(226, 232, 240, 0.8);
}


/* ==========================================================
   CABEÇALHO
   ========================================================== */

.header {
    text-align: center;
    margin-bottom: 34px;
}

.logo {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ff5a1f,
            #ff7a3d
        );

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 34px;

    box-shadow:
        0 10px 25px
        rgba(255, 90, 31, 0.25);
}

h1 {
    margin: 0;

    font-size: 32px;

    font-weight: 750;

    letter-spacing: -0.8px;

    color: #111827;
}

.subtitle {
    margin-top: 10px;

    font-size: 15px;

    line-height: 1.6;

    color: #64748b;
}

.upload-area {
    position: relative;

    display: block;
    width: 100%;

    border: 2px dashed #cbd5e1;

    border-radius: 18px;

    padding: 42px 30px;

    text-align: center;

    background: #f8fafc;

    transition:
        border-color .2s,
        background .2s,
        transform .2s;

    cursor: pointer;
}

.upload-area:hover {
    border-color: #ff6b2c;

    background: #fff7f3;

    transform: translateY(-1px);
}

.upload-icon {
    font-size: 42px;

    margin-bottom: 12px;
}

.upload-title {
    font-size: 17px;

    font-weight: 650;

    color: #1e293b;

    margin-bottom: 7px;
}

.upload-description {
    font-size: 13px;

    color: #64748b;

    line-height: 1.5;
}

.upload-description strong {
    color: #475569;
}


/* ==========================================================
   INPUT DE ARQUIVO
   ========================================================== */

#file {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


/* ==========================================================
   NOME DO ARQUIVO
   ========================================================== */

.file-name {
    display: none;

    margin-top: 18px;

    padding: 12px 15px;

    border-radius: 12px;

    background: #fff7ed;

    color: #9a3412;

    font-size: 14px;

    font-weight: 600;

    word-break: break-word;
}


/* ==========================================================
   BOTÃO CONVERTER
   ========================================================== */

.button {
    width: 100%;

    margin-top: 22px;

    padding: 15px 20px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #ff5a1f,
            #ff6f35
        );

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(255, 90, 31, 0.22);

    transition:
        transform .15s,
        box-shadow .15s,
        opacity .15s;
}

.button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 25px
        rgba(255, 90, 31, 0.28);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    cursor: wait;

    opacity: 0.7;

    transform: none;
}


/* ==========================================================
   ALERTAS
   ========================================================== */

.alert {
    margin-top: 24px;

    padding: 15px 17px;

    border-radius: 13px;

    font-size: 14px;

    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;
}


/* ==========================================================
   RESULTADO
   ========================================================== */

.result {
    margin-top: 24px;

    padding: 22px;

    border-radius: 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
}

.result-title {
    font-size: 14px;

    font-weight: 700;

    color: #334155;

    margin-bottom: 16px;
}


/* ==========================================================
   ESTATÍSTICAS
   ========================================================== */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.stat {
    text-align: center;

    padding: 14px 8px;

    background: white;

    border-radius: 12px;

    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 22px;

    font-weight: 750;

    color: #111827;
}

.stat-label {
    margin-top: 4px;

    font-size: 11px;

    color: #64748b;

    text-transform: uppercase;

    letter-spacing: .4px;
}


/* ==========================================================
   BOTÃO DOWNLOAD
   ========================================================== */

.download {
    display: block;

    margin-top: 18px;

    padding: 14px;

    border-radius: 12px;

    text-align: center;

    text-decoration: none;

    background: #172033;

    color: white;

    font-size: 15px;

    font-weight: 700;

    transition:
        background .15s,
        transform .15s;
}

.download:hover {
    background: #0f172a;

    transform: translateY(-1px);
}


/* ==========================================================
   RECURSOS
   ========================================================== */

.features {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 30px;
}

.feature {
    padding: 15px;

    text-align: center;

    border-radius: 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
}

.feature-icon {
    font-size: 21px;

    margin-bottom: 7px;
}

.feature-title {
    font-size: 12px;

    font-weight: 700;

    color: #334155;
}

.feature-text {
    margin-top: 4px;

    font-size: 11px;

    line-height: 1.4;

    color: #64748b;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    margin-top: 25px;

    text-align: center;

    font-size: 12px;

    color: #94a3b8;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .card {
        padding: 28px 20px;

        border-radius: 20px;
    }

    h1 {
        font-size: 27px;
    }

    .upload-area {
        padding: 32px 20px;
    }

    .stats {
        grid-template-columns:
            1fr 1fr 1fr;
    }

    .features {
        grid-template-columns:
            1fr;
    }
}


/* ==========================================================
   PUBLICIDADE
   ========================================================== */
.ad-area {
    width: 100%;
    margin: 28px 0;
    text-align: center;
}

.ad-label {
    margin-bottom: 8px;

    font-size: 10px;

    color: #94a3b8;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

#ad-container {
    width: 100%;
}

#ad-container .adsbygoogle {
    display: block;
    width: 100%;
}