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

:root {
    --bg: #0b0d12;
    --card: #12151c;
    --border: #242833;
    --border-soft: #303642;
    --text: #ffffff;
    --muted: #9da4b2;
    --blue: #4f8cff;
    --blue-hover: #3679f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0 8%;
    border-bottom: 1px solid #20232b;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.logo:visited {
    color: var(--text);
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.logo span {
    color: var(--blue);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #aeb4c0;
    text-decoration: none;
}

nav a:hover,
nav a.active {
    color: var(--text);
}

main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 25px 90px;
    flex: 1;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 45px;
}

.tag {
    display: inline-block;
    background: #151b29;
    color: #6fa1ff;
    padding: 8px 15px;
    border-radius: 30px;
    margin-bottom: 22px;
    font-size: 14px;
}

h1 {
    font-size: 58px;
    line-height: 1.08;
    margin-bottom: 20px;
}

h1 span {
    color: var(--blue);
}

.descricao {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.ferramentas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
}

.icone {
    font-size: 35px;
    color: var(--blue);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 21px;
    margin-bottom: 12px;
}

.card p {
    color: #9299a7;
    line-height: 1.5;
    flex: 1;
}

button,
.btn {
    width: 100%;
    min-height: 44px;
    padding: 13px 16px;
    margin-top: 20px;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover,
.btn:hover {
    background: var(--blue-hover);
}

.tool-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 35px;
}

.tool-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.tool-card > p {
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    background: var(--bg);
    color: white;
    font-size: 16px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
}

input[type="file"] {
    color: #aeb4c0;
}

textarea {
    min-height: 220px;
    resize: vertical;
}

.field + .field {
    margin-top: 18px;
}

.campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-weight: normal;
}

.checkbox input {
    width: auto;
}

.preview {
    margin-top: 20px;
    text-align: center;
}

.preview img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.preview p {
    color: var(--muted);
    margin-top: 8px;
}

.resultado {
    margin-top: 25px;
}

.resultado h3 {
    margin-bottom: 15px;
}

.imagem-resultado {
    display: block;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto 20px;
    border-radius: 12px;
}

.download {
    width: 100%;
    padding: 13px 16px;
    border-radius: 9px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    display: block;
}

.download:hover {
    background: var(--blue-hover);
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
}

#qrcode img {
    padding: 10px;
    background: white;
    border-radius: 10px;
}

.resultado-link,
.resultado-box {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 18px;
    margin-top: 25px;
}

.resultado-link p,
.resultado-box p {
    margin-bottom: 8px;
}

.resultado-link a {
    color: #6fa1ff;
    word-break: break-all;
    text-decoration: none;
}

.info {
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.5;
}

.pdf-result img {
    display: block;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 18px 10px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

.stat span {
    color: var(--muted);
    font-size: 14px;
}

.como {
    max-width: 760px;
    margin: 45px auto 0;
}

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

.como p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.sobre-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 35px;
}

.sobre-card h2 {
    margin-bottom: 12px;
}

.sobre-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}


.home-top-wrap {
    max-width: 760px;
    margin: 0 auto 18px;
}

.home-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.home-top:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.home-link {
    display: inline-flex;
    width: auto;
    margin-top: 0;
    margin-bottom: 30px;
    padding: 10px 16px;
}

footer {
    text-align: center;
    padding: 28px 20px;
    color: #6f7581;
    border-top: 1px solid #20232b;
}

@media (max-width: 900px) {
    .ferramentas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    header {
    padding: 0 20px;
}

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 14px;
    }

    main {
        padding: 50px 18px 70px;
    }

    h1 {
        font-size: 40px;
    }

    .descricao {
        font-size: 16px;
    }

    .ferramentas {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 260px;
    }

    .tool-card,
    .sobre-card {
        padding: 24px;
    }

    .campos,
    .stats {
        grid-template-columns: 1fr;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8d95a3;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--blue);
}

.levelup-section {
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
}

.levelup-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.levelup-tag {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 15px;
    border-radius: 20px;
    background: #f59e0b;
    color: #111;
    font-size: 12px;
    font-weight: bold;
}

.levelup-card h2 {
    margin: 10px 0;
    font-size: 30px;
}

.levelup-card p {
    max-width: 650px;
    margin: 15px auto 25px;
    line-height: 1.6;
    color: #d1d5db;
}

.levelup-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    background: #f59e0b;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    transition: .2s;
}

.levelup-button:hover {
    transform: translateY(-2px);
}

/* PROPAGANDA LEVEL UP NO TOPO */

.levelup-topo {
    max-width: 1050px;
    margin: 0 auto 55px;
    padding: 0 20px;
}

.levelup-topo-conteudo {
    background: #151e2e;
    border: 1px solid #26344d;
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.levelup-topo-tag {
    display: inline-block;
    background: #f5a900;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.levelup-topo h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #fff;
}

.levelup-topo p {
    margin: 0;
    color: #aeb9cc;
    font-size: 14px;
}

.levelup-topo a {
    flex-shrink: 0;
    background: #f5a900;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    padding: 13px 22px;
    border-radius: 9px;
    transition: 0.2s;
}

.levelup-topo a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 700px) {
    .levelup-topo-conteudo {
        flex-direction: column;
        align-items: flex-start;
    }

    .levelup-topo a {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   FERRAMENTAS PRO
========================= */

.pro-tools {
    max-width: 1050px;
    margin: 80px auto;
    padding: 0 20px;
}

.pro-tools-header {
    text-align: center;
    margin-bottom: 35px;
}

.pro-tools-header span {
    display: inline-block;
    background: #f5a900;
    color: #111;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.pro-tools-header h2 {
    font-size: 32px;
    margin: 5px 0 10px;
}

.pro-tools-header p {
    color: #999;
}

.pro-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pro-tool-card {
    position: relative;
    background: #11151d;
    border: 1px solid #f5a900;
    border-radius: 18px;
    padding: 30px;
    text-align: left;
}

.pro-tool-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.pro-badge {
    display: inline-block;
    background: #f5a900;
    color: #111;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
}

.pro-tool-card h2 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.pro-tool-card p {
    color: #999;
    line-height: 1.6;
    min-height: 75px;
}

.pro-tool-button {
    display: block;
    margin-top: 20px;
    padding: 13px;
    background: #f5a900;
    color: #111;
    text-align: center;
    text-decoration: none;
    border-radius: 9px;
    font-weight: bold;
}

.pro-tool-button:hover {
    opacity: 0.9;
}

@media (max-width: 700px) {
    .pro-tools-grid {
        grid-template-columns: 1fr;
    }

    .pro-tools-header h2 {
        font-size: 26px;
    }
}