:root {
    /* Paleta Active Theory adaptada as cores da logo DevLive */
    --color-void-black: #000000;
    --color-ghost-white: #ffffff;
    --color-ash-border: #4d4d4d;
    --color-smoke: #808080;
    --color-fog: #999999;
    --color-pale-mist: #d4d8df;
    --color-brand-cyan: #08b0ff;
    --color-brand-green: #88c860;
    --color-error: #ff6b6b;

    /* Superficies translucidas */
    --surface-void-canvas: #000000;
    --surface-translucent-overlay: rgba(0, 0, 0, 0.56);
    --surface-translucent-strong: rgba(0, 0, 0, 0.82);
    --surface-frosted-glass: rgba(255, 255, 255, 0.08);
    --surface-cyan-tint: rgba(8, 176, 255, 0.14);
    --surface-green-tint: rgba(136, 200, 96, 0.14);
    --surface-error-tint: rgba(255, 107, 107, 0.12);

    /* Tipografia moderna e legivel */
    --font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Raios do sistema teoria-ativa */
    --radius-inputs: 5px;
    --radius-buttons-ghost: 5px;
    --radius-cards: 12px;
    --radius-buttons-pill: 500px;

    /* Espacamentos mobile-first em px */
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-36: 36px;
    --space-48: 48px;
    --space-64: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--color-void-black);
    color: var(--color-ghost-white);
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-void-black);
    color: var(--color-ghost-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-brand-cyan);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: var(--radius-buttons-pill);
    background-color: var(--color-brand-cyan);
    color: var(--color-void-black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

/* Palco cosmico full-bleed atras de todo o site */
.void-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--color-void-black);
}

.void-aurora {
    position: absolute;
    top: -180px;
    left: -140px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(8, 176, 255, 0.14) 0%,
        rgba(136, 200, 96, 0.07) 44%,
        rgba(0, 0, 0, 0) 72%
    );
    filter: blur(26px);
}

.void-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 25%, #000000 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 25%, #000000 10%, transparent 78%);
}

.portal-canvas {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.site-header,
.page-main,
.site-footer {
    position: relative;
    z-index: 2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-16);
}

/* Cabecalho solido em #000000 para fundir perfeitamente a logo PNG */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--color-void-black);
    border-bottom: 1px solid var(--color-ash-border);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    padding-block: 10px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    border-radius: var(--radius-buttons-ghost);
}

.brand-logo {
    width: 158px;
    height: auto;
    mix-blend-mode: lighten;
}

.nav-toggle {
    min-width: 74px;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-ash-border);
}

.site-nav.is-open {
    display: flex;
}

.nav-dot {
    display: none;
}

/* Controles ghost e pill fieis ao teoria-ativa */
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-buttons-ghost);
    background-color: transparent;
    color: var(--color-ghost-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ghost-button:hover {
    background-color: var(--surface-frosted-glass);
    border-color: var(--color-ghost-white);
}

.ghost-button--accent {
    border-color: var(--color-brand-cyan);
    color: var(--color-brand-cyan);
}

.ghost-button--accent:hover {
    background-color: var(--surface-cyan-tint);
    border-color: var(--color-brand-cyan);
    color: var(--color-ghost-white);
}

.ghost-button--lg {
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    font-size: 12px;
}

.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-buttons-pill);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.pill-button--primary {
    background-color: var(--color-brand-cyan);
    color: var(--color-void-black);
}

.pill-button--primary:hover {
    background-color: #3cc1ff;
}

.pill-button--green {
    background-color: var(--color-brand-green);
    color: var(--color-void-black);
}

.pill-button--green:hover {
    background-color: #9dd877;
}

.pill-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ghost-card {
    background-color: var(--surface-translucent-overlay);
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-cards);
    padding: var(--space-20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.prose-copy {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-pale-mist);
}

.section-kicker {
    margin: 0 0 var(--space-8);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-brand-cyan);
}

.section-title {
    margin: 0 0 var(--space-20);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ghost-white);
}

.card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ghost-white);
}

/* Hero com globo livre no topo e botoes interativos */
.hero-stage {
    padding-top: var(--space-12);
    padding-bottom: var(--space-36);
}

.hero-stage__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
    align-items: start;
}

/* Espaco aberto transparente para o globo brilhar sem caixa e sem obstrucao no mobile */
.hero-portal-spacer {
    height: 196px;
    pointer-events: none;
}

.hero-copy {
    display: grid;
    gap: var(--space-12);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    justify-self: start;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-buttons-pill);
    background-color: var(--surface-translucent-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-ghost-white);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-brand-green);
    flex-shrink: 0;
    animation: pulse-beacon 2.2s ease-in-out infinite;
}

@keyframes pulse-beacon {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.82);
    }
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-ghost-white);
}

.hero-lead {
    margin: 0;
}

.hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-4);
}

.portal-deck {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.portal-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
}

.mode-pill {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-buttons-pill);
    background-color: var(--surface-translucent-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-pale-mist);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.mode-pill:hover {
    border-color: var(--color-ghost-white);
    color: var(--color-ghost-white);
}

.mode-pill[aria-pressed="true"] {
    background-color: var(--surface-cyan-tint);
    border-color: var(--color-brand-cyan);
    color: var(--color-ghost-white);
    font-weight: 600;
}

.portal-readout {
    margin: 0;
    min-height: 22px;
    padding: 8px 12px;
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-inputs);
    background-color: var(--surface-translucent-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-brand-green);
}

/* Secoes gerais */
.page-section {
    padding-block: var(--space-36);
}

/* Solucoes em cards compactos */
.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
}

.solution-card {
    display: grid;
    gap: var(--space-12);
    align-content: start;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.solution-card:hover {
    border-color: var(--color-brand-cyan);
}

.solution-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.solution-icon {
    flex-shrink: 0;
}

.solution-card__desc {
    margin: 0;
}

.pill-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pill-tag {
    padding: 4px 10px;
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-buttons-pill);
    background-color: rgba(0, 0, 0, 0.56);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-pale-mist);
}

/* Linha de pulso interativa do processo */
.pulse-stepper {
    display: grid;
    gap: var(--space-16);
}

.pulse-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-8);
    align-items: start;
}

.pulse-track__line {
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background-color: var(--color-ash-border);
    z-index: 0;
}

.pulse-track__fill {
    display: block;
    height: 100%;
    width: 0%;
    background-color: var(--color-brand-cyan);
    transition: width 0.3s ease;
}

.pulse-track--step-1 .pulse-track__fill {
    width: 0%;
}

.pulse-track--step-2 .pulse-track__fill {
    width: 33.333%;
}

.pulse-track--step-3 .pulse-track__fill {
    width: 66.666%;
}

.pulse-track--step-4 .pulse-track__fill {
    width: 100%;
}

.step-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-pale-mist);
    cursor: pointer;
}

.step-node__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-ash-border);
    border-radius: 50%;
    background-color: var(--color-void-black);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-pale-mist);
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.step-node__label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.step-node.is-reached .step-node__num {
    border-color: var(--color-brand-cyan);
    color: var(--color-ghost-white);
}

.step-node[aria-pressed="true"] .step-node__num {
    background-color: var(--color-brand-cyan);
    border-color: var(--color-brand-cyan);
    color: var(--color-void-black);
}

.step-node[aria-pressed="true"] .step-node__label {
    color: var(--color-brand-cyan);
    font-weight: 600;
}

.pulse-panels {
    display: grid;
    gap: var(--space-12);
}

.pulse-panel[hidden] {
    display: none;
}

.pulse-panel p {
    margin: var(--space-8) 0 0;
}

/* Contato e formulario */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
}

.contact-context {
    display: grid;
    gap: var(--space-16);
    align-content: start;
}

.contact-context p {
    margin: 0;
}

.contact-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-12);
}

.contact-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-ash-border);
    font-size: 14px;
}

.contact-direct__label {
    font-size: 10px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--color-fog);
}

.hairline-link {
    color: var(--color-pale-mist);
    text-decoration: none;
    border-bottom: 1px solid var(--color-ash-border);
    justify-self: start;
    align-self: flex-start;
    padding-block: 4px;
    font-size: 14px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hairline-link:hover {
    color: var(--color-ghost-white);
    border-bottom-color: var(--color-brand-cyan);
}

.lead-form {
    display: grid;
    gap: var(--space-16);
}

.field-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field {
    display: grid;
    gap: var(--space-6);
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--color-ghost-white);
}

.form-input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-inputs);
    background-color: rgba(0, 0, 0, 0.78);
    color: var(--color-ghost-white);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.25s ease;
}

.form-input::placeholder {
    color: var(--color-smoke);
}

.form-input:hover {
    border-color: var(--color-fog);
}

.form-input:focus {
    border-color: var(--color-brand-cyan);
}

.form-input--invalid {
    border-color: var(--color-error);
}

.field-error {
    margin: 0;
    min-height: 18px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--color-error);
}

.form-status {
    padding: var(--space-16);
    border: 1px solid var(--color-ash-border);
    border-radius: var(--radius-cards);
    background-color: var(--surface-translucent-strong);
    display: grid;
    gap: var(--space-12);
}

.form-status[hidden] {
    display: none;
}

.form-status--success {
    border-color: var(--color-brand-green);
    background-color: var(--surface-green-tint);
}

.form-status--error {
    border-color: var(--color-error);
    background-color: var(--surface-error-tint);
}

.form-status__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-ghost-white);
}

.form-status__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* FAQ compacto */
.faq-list {
    display: grid;
    gap: var(--space-8);
}

.faq-item {
    padding: 0;
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    min-height: 48px;
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: var(--color-brand-cyan);
    flex-shrink: 0;
}

.faq-item[open] .faq-item__summary::after {
    content: "-";
    color: var(--color-brand-green);
}

.faq-item__summary h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-ghost-white);
}

.faq-item__answer {
    margin: 0;
    padding: 0 16px 14px;
    font-size: 15px;
}

/* Rodape */
.site-footer {
    border-top: 1px solid var(--color-ash-border);
    background-color: var(--color-void-black);
    padding-block: var(--space-28);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-20);
}

.brand-logo--footer {
    width: 148px;
    margin-bottom: var(--space-8);
}

.footer-legal,
.footer-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-pale-mist);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: flex-start;
}

@media (max-width: 399px) {
    .container {
        padding-inline: var(--space-12);
    }

    .brand-logo {
        width: 138px;
    }

    .hero-portal-spacer {
        height: 168px;
    }

    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 23px;
    }

    .ghost-card {
        padding: var(--space-16);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .status-dot {
        animation: none;
    }

    .ghost-button,
    .pill-button,
    .hairline-link,
    .form-input,
    .mode-pill,
    .solution-card,
    .pulse-track__fill,
    .step-node__num {
        transition: none;
    }
}
