:root {
    /* DEFAULT = DARK */
    --orange: #FC5003;
    --bg: #0f1115;
    --surface: #141824;
    --text: #f3f5f7;
    --muted: #b7bcc6;
    --border: rgba(255,255,255,.10);
    --shadow: 0 10px 30px rgba(0,0,0,.30);
    --radius: 16px;
    --topbar-bg: rgba(15,17,21,.72);
    --topbar-text: var(--text);
    --card-bg: rgba(255,255,255,.04);
    --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* LIGHT OVERRIDES */
html[data-theme="light"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #222;
    --muted: #666;
    --border: #f0f0f0;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --topbar-bg: rgba(255,255,255,.92);
    --topbar-text: #222;
    --card-bg: #fff;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg)
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px
}

/* ========= TOPBAR ========= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--topbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar__left {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .brand img {
        height: 28px;
        display: block;
    }

/* Logo visível no dark: inverte o SVG (caso ele seja preto) */
html[data-theme="dark"] .brand img {
    filter: invert(1) saturate(0);
}

/* Botão de tema */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--topbar-text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 400; /* sem bold */
    line-height: 1;
}

    .theme-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(252,80,3,.25);
    }

/* Menu (desktop) */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__link {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 400; /* sem bold */
    color: var(--topbar-text);
    padding: 6px 10px;
    margin: 0;
    line-height: 1.2;
    cursor: pointer;
}

    /* SEM HOVER (mantém igual) */
    .topbar__link:hover,
    .topbar__btn:hover,
    .theme-toggle:hover {
        filter: none;
        opacity: 1;
        background: transparent;
    }

/* “Entrar” deve ser link normal (sem fundo) */
.topbar__btn {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 6px 10px;
}

/* “Cadastre-se” laranja */
.link-sign-up {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 8px 14px !important;
    border: 0 !important;
}

/* ========= HERO ========= */
.hero {
    background: var(--orange);
    color: #fff;
}

.hero__row {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    padding: 56px 0;
    align-items: center;
}

.hero h1 {
    margin: 0 0 14px 0;
    font-size: 44px;
    line-height: 1.05
}

.hero p {
    margin: 0 0 22px 0;
    font-size: 16px;
    opacity: .92;
    max-width: 560px
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: #fff;
    color: #111
}

.btn--ghost {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.12);
    color: #fff
}

    /* sem hover também nos botões do hero (se você quiser manter “sem hover”) */
    .btn--primary:hover,
    .btn--ghost:hover {
        filter: none;
        opacity: 1;
    }

.hero__img {
    width: 100%;
    max-width: 520px;
    justify-self: end;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

/* ========= SECTION / CARDS ========= */
.section {
    padding: 54px 0;
    background: var(--bg)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

    .card h3 {
        margin: 0 0 8px 0;
        font-size: 16px
    }

    .card p {
        margin: 0;
        font-size: 14px;
        color: var(--muted);
        line-height: 1.5
    }

.footer {
    border-top: 1px solid var(--border);
    padding: 26px 0;
    color: var(--muted);
    font-size: 13px
}

/* ========= MODAL ========= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 50;
}

    .modal-overlay.is-open {
        display: flex
    }

.modal {
    width: min(980px, 100%);
    height: min(86vh, 860px);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
    position: relative;
}

.modal__top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-btn:hover {
        background: #fff
    }
/* sem hover */
.modal__iframe {
    width: 100%;
    height: 100%;
    border: 0
}

/* ========= MENU MOBILE ========= */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

    /* 3 traços */
    .menu-toggle::before,
    .menu-toggle::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        height: 2px;
        background: var(--topbar-text);
        border-radius: 2px;
    }

    .menu-toggle::before {
        top: 14px;
    }

    .menu-toggle::after {
        top: 28px;
    }

.menu-toggle {
    background: linear-gradient(var(--topbar-text), var(--topbar-text)) center 21px / calc(100% - 20px) 2px no-repeat;
}

@media (max-width: 920px) {
    .hero__row {
        grid-template-columns: 1fr;
        padding: 44px 0
    }

    .hero__img {
        justify-self: start;
        max-width: 620px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 36px
    }
}

/* Mobile: dropdown */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block
    }

    #topnav {
        display: none;
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: 0 12px 30px rgba(0,0,0,.20);
        border-radius: 14px;
        padding: 10px;
        z-index: 9999;
    }

        #topnav.is-open {
            display: block
        }

        #topnav a,
        #topnav button {
            display: block;
            width: 100%;
            text-align: center;
            margin: 6px 0;
            padding: 10px 12px;
            border-radius: 12px;
        }

    /* theme toggle dentro do menu */
    .theme-toggle {
        width: 100%;
        justify-content: center;
        margin: 6px 0 10px 0;
        height: 40px;
    }
}
