/* ==========================================================================
   KameSystems • Landing Wizard (Geek claro / cosmos / energia)
   Objetivo: tema geek leve (boa leitura) + layout responsivo
   Observação: CSS organizado por seções e sem duplicidade de media queries.
   ========================================================================== */

/* ==========================================================================
   1) Variáveis do tema
   ========================================================================== */
:root {
    --bg: #f5f8ff;
    --bg2: #eef4ff;

    --text: #0b1220;
    --muted: rgba(11, 18, 32, .72);

    --border: rgba(15, 23, 42, .12);
    --shadow: 0 18px 45px rgba(2, 6, 23, .10);
    --radius: 18px;

    /* energia / “ki” */
    --primary: #1ed6ff;
    --primary2: #3b82f6;
    --accent: #ffb020;
    --accent2: #ff5a3c;
    --danger: #ef4444;
}

/* ==========================================================================
   2) Reset básico
   ========================================================================== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   3) Fundo (cosmos leve + estrelas sutis)
   ========================================================================== */
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    overflow-x: hidden;

    background:
        radial-gradient(1200px 700px at 10% 0%, rgba(30, 214, 255, .22), transparent 60%),
        radial-gradient(900px 600px at 95% 25%, rgba(255, 176, 32, .20), transparent 62%),
        radial-gradient(900px 700px at 35% 95%, rgba(59, 130, 246, .20), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg2));
}

/* estrelas muito sutis */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(11, 18, 32, .20), transparent 55%),
        radial-gradient(1px 1px at 22% 72%, rgba(11, 18, 32, .18), transparent 55%),
        radial-gradient(1.2px 1.2px at 38% 28%, rgba(11, 18, 32, .16), transparent 55%),
        radial-gradient(1px 1px at 62% 22%, rgba(11, 18, 32, .14), transparent 55%),
        radial-gradient(1px 1px at 78% 56%, rgba(11, 18, 32, .18), transparent 55%),
        radial-gradient(1.4px 1.4px at 86% 18%, rgba(11, 18, 32, .20), transparent 55%),
        radial-gradient(1px 1px at 92% 80%, rgba(11, 18, 32, .18), transparent 55%),
        radial-gradient(1px 1px at 9% 88%, rgba(11, 18, 32, .14), transparent 55%);
}

/* nébula leve animada (não escurece) */
body::after {
    content: "";
    position: fixed;
    inset: -40px;
    pointer-events: none;
    opacity: .75;
    background:
        radial-gradient(600px 360px at 20% 30%, rgba(30, 214, 255, .12), transparent 70%),
        radial-gradient(520px 320px at 80% 40%, rgba(255, 176, 32, .10), transparent 70%),
        radial-gradient(520px 360px at 45% 85%, rgba(59, 130, 246, .10), transparent 75%);
    animation: nebulaMove 14s ease-in-out infinite alternate;
}

@keyframes nebulaMove {
    from {
        transform: translate3d(-6px, -6px, 0) scale(1);
    }

    to {
        transform: translate3d(10px, 8px, 0) scale(1.02);
    }
}

/* ==========================================================================
   4) Estrutura geral
   ========================================================================== */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 18px 34px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    /* acima do background */
}

.layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px;
    align-items: stretch;
}

/* ==========================================================================
   5) Logo topo (flutuante)
   ========================================================================== */
.brand-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0 8px;
    position: relative;
    z-index: 3;
}

.brand-top img {
    height: 172px;
    width: auto;
    display: block;

    /* “sem card” */
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;

    /* flutuação + sombra */
    filter: drop-shadow(0 22px 40px rgba(2, 6, 23, .18));
    animation: floatLogo 4.6s ease-in-out infinite;
}

/* aura/energia atrás da logo */
.brand-top::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 220px;
    border-radius: 999px;
    z-index: -1;
    opacity: .9;
    filter: blur(2px);
    transform: translateY(8px);

    background:
        radial-gradient(closest-side, rgba(30, 214, 255, .22), transparent 72%),
        radial-gradient(closest-side, rgba(255, 176, 32, .18), transparent 70%);
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   6) Cards / Painéis
   ========================================================================== */
.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .86));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

/* brilho “ki” nas bordas do painel */
.panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    pointer-events: none;
    opacity: .55;

    background:
        radial-gradient(420px 220px at 15% 10%, rgba(30, 214, 255, .18), transparent 65%),
        radial-gradient(420px 240px at 90% 20%, rgba(255, 176, 32, .16), transparent 70%);
}

/* garante conteúdo acima do brilho */
.left,
.right {
    position: relative;
    z-index: 0;
}

.left>*,
.right>* {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   7) Painel esquerdo (texto / progresso)
   ========================================================================== */
.left {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

/* Marca do card esquerdo (sem logo duplicada) */
.brand {
    display: flex;
    align-items: center;
    gap: 0;
    /* já removemos a imagem */
}

.left .brand img {
    display: none;
}

.brand .tag {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* título do hero: sem gradiente (leitura) */
.hero h1 {
    margin: 10px 0 8px;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
    text-shadow: none;
}

/* texto do hero */
.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

/* progresso */
.progress {
    margin-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, .10);
    padding-top: 16px;
}

.step-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.step-label,
.step-count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.bar {
    height: 11px;
    background: rgba(15, 23, 42, .05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .10);
}

.bar>div {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width .25s ease;
    box-shadow: 0 0 14px rgba(30, 214, 255, .22);
    background: linear-gradient(90deg, var(--primary), var(--primary2), var(--accent));
}

/* bullets */
.bullets {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.bullet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 4px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    box-shadow: 0 0 10px rgba(255, 176, 32, .18), 0 0 12px rgba(30, 214, 255, .16);
}

/* rodapé do card esquerdo */
.footer-note {
    font-size: 12px;
    color: rgba(11, 18, 32, .58);
    border-top: 1px solid rgba(15, 23, 42, .10);
    padding-top: 14px;
}

/* ==========================================================================
   8) Painel direito (wizard)
   ========================================================================== */
.right {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .82));
}

.topbar h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.topbar small {
    color: rgba(11, 18, 32, .62);
    font-size: 12px;
}

.content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* toast (erros/avisos) */
.toast {
    display: none;
    border: 1px solid rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .08);
    color: rgba(127, 29, 29, 1);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* pergunta */
.q {
    font-size: 20px;
    margin: 2px 0 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.qhint {
    margin: 0;
    color: rgba(11, 18, 32, .68);
    font-size: 13px;
    line-height: 1.45;
}

/* ==========================================================================
   9) Opções (cards clicáveis)
   ========================================================================== */
.options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.opt {
    border: 1px solid rgba(15, 23, 42, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .88));
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    text-align: left;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    position: relative;
    overflow: hidden;
    transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease;
}

/* “aura” no hover */
.opt::after {
    content: "";
    position: absolute;
    inset: -2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease;

    background:
        radial-gradient(220px 120px at 20% 20%, rgba(30, 214, 255, .20), transparent 55%),
        radial-gradient(220px 120px at 85% 30%, rgba(255, 176, 32, .18), transparent 60%);
}

.opt:hover {
    border-color: rgba(59, 130, 246, .35);
    box-shadow: 0 12px 28px rgba(2, 6, 23, .12);
    transform: translateY(-2px);
}

.opt:hover::after {
    opacity: 1;
}

.opt .t {
    font-weight: 800;
    font-size: 14px;
}

.opt .s {
    font-size: 12px;
    color: rgba(11, 18, 32, .65);
    margin-top: 2px;
}

/* seta */
.chev {
    width: 10px;
    height: 10px;
    margin-left: auto;
    flex: 0 0 auto;
    transform: rotate(-45deg);
    border-right: 2px solid rgba(11, 18, 32, .45);
    border-bottom: 2px solid rgba(11, 18, 32, .45);
}

/* ==========================================================================
   10) Formulário
   ========================================================================== */
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 12px;
    color: rgba(11, 18, 32, .68);
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.input::placeholder,
.textarea::placeholder {
    color: rgba(11, 18, 32, .42);
}

.textarea {
    min-height: 100px;
    resize: vertical;
    grid-column: 1 / -1;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(30, 214, 255, .65);
    box-shadow: 0 0 0 3px rgba(30, 214, 255, .16);
}

/* ==========================================================================
   11) Resumo
   ========================================================================== */
.summary {
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.summary .row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(15, 23, 42, .16);
    padding-bottom: 8px;
}

.summary .row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary .k {
    color: rgba(11, 18, 32, .62);
    font-size: 12px;
}

.summary .v {
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

/* ==========================================================================
   12) Ações / Botões
   ========================================================================== */
.actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
}

.btn {
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover {
    box-shadow: 0 12px 28px rgba(2, 6, 23, .12);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, .28);
}

/* Primário: sólido (sem gradiente), respeitando o tema */
.btn-primary {
    background: var(--primary2);
    color: #fff;
    border-color: rgba(59, 130, 246, .25);
    text-shadow: none;
    box-shadow: 0 14px 28px rgba(59, 130, 246, .18);
}

.btn-primary:hover {
    background: #2f6fe8;
    box-shadow: 0 18px 36px rgba(59, 130, 246, .22);
    transform: translateY(-2px);
}

/* Disabled geral (ex.: botão Voltar) */
.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Primário desabilitado NÃO fica “apagado” (só remove o glow) */
.btn-primary:disabled,
.btn-primary[disabled] {
    opacity: 1 !important;
    background: #2f6fe8 !important;
    /* 1 tom abaixo, ainda azul */
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
    border-color: rgba(59, 130, 246, .25) !important;
}

/* Destaque opcional de palavra (se usar <span class="ki"> ) */
.ki {
    color: var(--primary2);
    font-weight: 900;
}

/* ==========================================================================
   13) Acessibilidade (foco visível)
   ========================================================================== */
.opt:focus-visible,
.btn:focus-visible,
.input:focus-visible,
.textarea:focus-visible {
    outline: 3px solid rgba(255, 176, 32, .32);
    outline-offset: 2px;
}

/* ==========================================================================
   14) Responsivo
   ========================================================================== */

/* até 980px: 1 coluna + conforto no padding */
@media (max-width: 980px) {
    .wrap {
        justify-content: flex-start;
        align-items: center;
        padding: 18px 14px 26px;
    }

    .layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .panel {
        width: 100%;
        margin: 0 auto;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .fields {
        grid-template-columns: 1fr;
    }

    .left,
    .content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* logo mais compacta */
    .brand-top {
        width: 100%;
        margin: 6px auto 12px;
    }

    .brand-top img {
        height: 92px;
        max-width: 92vw;
    }

    /* aura centralizada e responsiva */
    .brand-top::before {
        width: min(92vw, 420px);
        height: 160px;
        transform: translateY(10px);
        left: 50%;
        translate: -50% 0;
    }

    .hero h1 {
        font-size: 24px;
    }
}

/* mobile pequeno (320/360): ajustes finos */
@media (max-width: 360px) {
    .brand-top img {
        height: 82px;
    }

    .hero h1 {
        font-size: 22px;
    }
}