:root {
    --bg-main: #0b0f19;
    --bg-darker: #070a10;
    --bg-card: #1e293b;
    --border: #334155;
    --accent: #00ff66;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --header-height: 78px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #04d99d #021226;
}

body {
    min-width: 320px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

section {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-anchor {
    display: block;
    position: relative;
    top: calc((var(--header-height) + 20px) * -1);
    visibility: hidden;
}

/* CABEÇALHO */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(11, 15, 25, 0.96);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    display: block;
    width: 168px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

nav a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

.btn-sm {
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent) !important;
    background-color: transparent;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

/* BOTÃO DE IDIOMA */

.language-button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    border: 0;
    border-radius: 50%;
    background-color: transparent;

    cursor: pointer;
    opacity: 0.82;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.language-button:hover {
    opacity: 1;
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.08);
}

.language-button:active {
    transform: scale(0.96);
}

.language-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.flag-emoji {
    display: block;
    font-family:
        "Noto Color Emoji",
        "Segoe UI Emoji",
        "Apple Color Emoji",
        sans-serif;
    font-size: 21px;
    font-variant-emoji: emoji;
    line-height: 1;
}

/* HERO */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(circle at top, #1e293b 0%, var(--bg-main) 68%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    max-width: 930px;
    margin-bottom: 22px;
    color: var(--text-main);
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.12;
}

.hero p {
    max-width: 760px;
    margin-bottom: 38px;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
}

/* BOTÕES */

.btn-lg {
    display: inline-block;
    padding: 15px 40px;

    border: 0;
    border-radius: 8px;
    background-color: var(--accent);
    color: #000;

    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.55);
}

.btn-lg:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 3px;
}

/* SEÇÕES */

.features,
.cta-section {
    padding: 78px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.features h2,
.form-container h2 {
    margin-bottom: 38px;
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2rem);
    line-height: 1.25;
}

.section-subtitle {
    max-width: 760px;
    margin: -20px auto 40px;
    color: var(--text-muted);
    text-align: center;
}

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

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

.card {
    min-width: 0;
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--bg-card);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* FORMULÁRIO */

.form-container {
    max-width: 640px;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 15px;
}

.form-container > p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
select {
    width: 100%;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-main);
    color: #fff;

    font-size: 16px;
}

input::placeholder {
    color: #7f8da3;
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.1);
}

select option {
    background-color: var(--bg-main);
    color: #fff;
}

.lgpd-text {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    color: #64748b !important;
    font-size: 11px;
}

/* RODAPÉ */

footer {
    padding: 30px 0;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

/* TABLET */

@media (max-width: 860px) {
    :root {
        --header-height: auto;
    }

    .site-header {
        position: relative;
    }

    .nav-container {
        padding: 14px 0;
        flex-direction: column;
        gap: 12px;
    }

    .logo-img {
        width: 150px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    section {
        scroll-margin-top: 20px;
    }

    .section-anchor {
        top: -20px;
    }

    .hero {
        min-height: auto;
        padding: 78px 0;
    }

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

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

/* CELULAR */

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1100px);
    }

    nav {
        gap: 10px 14px;
    }

    nav a {
        font-size: 12px;
    }

    .btn-sm {
        padding: 7px 11px;
    }

    .language-button {
        width: 30px;
        height: 30px;
    }

    .hero {
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .features,
    .cta-section {
        padding: 62px 0;
    }

    .card {
        padding: 24px;
    }

    .btn-lg {
        width: 100%;
        padding-inline: 22px;
    }
}
