/* ============================================================
   Página inicial pública — landing institucional
   Usa as variáveis de tema globais definidas em static/css/style.css
   (--bg-main, --bg-card, --bg-elevated, --text-main, --text-muted,
   --border-color, --shadow-*). Suporta tema claro e escuro via
   :root[data-theme="..."].
   ============================================================ */

.home-page {
    --home-azul-escuro: #082c66;
    --home-azul: #0d47a1;
    --home-azul-claro: #0d6efd;
    --home-acento: #ffc94d;
    --home-alt-bg: #f3f6fb;
    --home-icone-tinta: rgba(13, 110, 253, 0.12);
    --home-icone-cor: #0d6efd;
    color: var(--text-main);
    overflow-x: clip;
}

:root[data-theme="dark"] .home-page {
    --home-azul-escuro: #071e46;
    --home-azul: #0a3576;
    --home-azul-claro: #1a5cd6;
    --home-alt-bg: #232530;
    --home-icone-tinta: rgba(110, 168, 254, 0.14);
    --home-icone-cor: #6ea8fe;
}

/* ------------------------------------------------------------
   Barra de navegação do site
   ------------------------------------------------------------ */

.home-topbar {
    background: color-mix(in srgb, var(--bg-card, #ffffff) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, #dee2e6);
    transition: box-shadow 0.25s ease;
}

.home-topbar.is-scrolled {
    box-shadow: var(--shadow-2, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.home-navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.home-brand {
    text-decoration: none;
}

/* Logo do site (static/images/favicon.png) — PNG transparente, legível tanto
   sobre a barra clara quanto sobre o rodapé escuro. */
.home-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-brand-nome {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.home-brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.home-nav-links .nav-link {
    font-weight: 500;
    color: var(--text-main);
    padding-left: 1rem;
    padding-right: 1rem;
}

.home-nav-links .nav-link:hover,
.home-nav-links .nav-link:focus {
    color: var(--home-icone-cor);
}

.home-btn-nav {
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.home-hero {
    position: relative;
    padding: 4.5rem 0 0;
    color: #ffffff;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(13, 110, 253, 0.35), transparent 60%),
        linear-gradient(150deg, var(--home-azul-escuro) 0%, var(--home-azul) 55%, var(--home-azul-claro) 100%);
}

/* Nota: style.css força `color: var(--text-main)` em h1..h6/p/span/li (seletor
   de elemento), o que vence a cor herdada do container. Por isso todo texto
   sobre os fundos azuis precisa da cor declarada numa classe própria. */
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.home-hero-titulo {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
}

.home-destaque {
    position: relative;
    z-index: 0;
    color: #ffffff;
    white-space: nowrap;
}

.home-destaque::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.28em;
    background: var(--home-acento);
    opacity: 0.55;
    border-radius: 3px;
    z-index: -1;
}

.home-hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin-bottom: 1.75rem;
}

@media (max-width: 991.98px) {
    .home-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
}

.home-btn-hero {
    min-width: 180px;
}

.home-hero-checks {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.home-hero-checks li {
    color: rgba(255, 255, 255, 0.85);
}

.home-hero-checks i {
    color: var(--home-acento);
}

/* Onda de transição entre o hero e o conteúdo */
.home-hero-onda {
    margin-top: 3.5rem;
    line-height: 0;
}

.home-hero-onda svg {
    display: block;
    width: 100%;
    height: 64px;
}

.home-hero-onda path {
    fill: var(--bg-main, #f8f9fa);
}

/* ------------------------------------------------------------
   Composição visual do hero (painel ilustrativo)
   ------------------------------------------------------------ */

.home-hero-visual {
    position: relative;
    max-width: 460px;
}

.home-mock-painel {
    background: var(--bg-card, #ffffff);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(4, 24, 68, 0.35);
    padding: 1.25rem 1.5rem 1.5rem;
    color: var(--text-main);
}

.home-mock-topo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.home-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color, #dee2e6);
}

.home-mock-titulo {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.home-mock-grafico {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    height: 170px;
    padding: 0 0.25rem;
}

.home-mock-barra {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

.home-mock-barra span {
    display: block;
    width: 100%;
    max-width: 42px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--home-azul-claro), var(--home-azul));
    opacity: 0.9;
}

.home-mock-barra[data-nivel="1"] span { height: 42%; }
.home-mock-barra[data-nivel="2"] span { height: 58%; }
.home-mock-barra[data-nivel="3"] span { height: 50%; }
.home-mock-barra[data-nivel="4"] span { height: 72%; }
.home-mock-barra[data-nivel="5"] span { height: 88%; }

.home-mock-barra small {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.home-mock-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #dee2e6);
}

.home-mock-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-mock-stat-rotulo {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.home-mock-stat-valor {
    font-size: 1.15rem;
    font-weight: 700;
}

.home-mock-stat-valor i {
    color: #2f9e44;
}

.home-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated, #ffffff);
    color: var(--text-main);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--shadow-2, 0 4px 12px rgba(0, 0, 0, 0.12));
    white-space: nowrap;
}

.home-chip-1 {
    top: -1.1rem;
    left: -1.25rem;
    animation: home-flutuar 6s ease-in-out infinite;
}

.home-chip-1 i {
    color: #2f9e44;
}

.home-chip-2 {
    bottom: -1.1rem;
    right: -0.75rem;
    animation: home-flutuar 7s ease-in-out infinite reverse;
}

.home-chip-2 i {
    color: #e8a013;
}

@keyframes home-flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 575.98px) {
    .home-chip-1 { left: 0; }
    .home-chip-2 { right: 0; }
}

/* ------------------------------------------------------------
   Faixa de destaques
   ------------------------------------------------------------ */

.home-strip {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    background: var(--bg-main, #f8f9fa);
}

.home-strip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.home-strip-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--home-icone-tinta);
    color: var(--home-icone-cor);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.home-strip-titulo {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.home-strip-texto {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------
   Seções de conteúdo
   ------------------------------------------------------------ */

.home-section {
    padding: 5rem 0;
    scroll-margin-top: 84px;
}

.home-section-alt {
    background: var(--home-alt-bg);
}

.home-section-header {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.home-eyebrow-secao {
    background: var(--home-icone-tinta);
    border: 0;
    color: var(--home-icone-cor);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.home-section-header h2 {
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    margin-bottom: 0.75rem;
}

.home-section-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Cards de recursos */

.home-card {
    height: 100%;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3, 0 10px 24px rgba(0, 0, 0, 0.1));
    border-color: color-mix(in srgb, var(--home-icone-cor) 40%, var(--border-color, #dee2e6));
}

.home-card-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--home-icone-tinta);
    color: var(--home-icone-cor);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.home-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Passos (como funciona) */

.home-passos {
    position: relative;
}

@media (min-width: 992px) {
    .home-passos::before {
        content: "";
        position: absolute;
        top: 1.65rem;
        left: 18%;
        right: 18%;
        border-top: 2px dashed var(--border-color, #dee2e6);
    }
}

.home-passo {
    position: relative;
    text-align: center;
    padding: 0 1rem;
}

.home-passo-numero {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-azul), var(--home-azul-claro));
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.3);
}

.home-passo h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-passo p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 340px;
    margin: 0 auto;
}

/* Cards de perfil */

.home-perfil {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-perfil:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3, 0 10px 24px rgba(0, 0, 0, 0.1));
}

.home-perfil-topo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.home-perfil-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--home-icone-tinta);
    color: var(--home-icone-cor);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.home-perfil h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.home-perfil ul {
    margin-bottom: 1.25rem;
}

.home-perfil ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
}

.home-perfil ul li i {
    color: #2f9e44;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.home-perfil-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--home-icone-cor);
}

.home-perfil-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Faixa de chamada final (CTA)
   ------------------------------------------------------------ */

.home-cta {
    padding: 4.5rem 0;
    color: #ffffff;
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(140deg, var(--home-azul-escuro), var(--home-azul-claro));
}

.home-cta h2 {
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.home-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
}

/* ------------------------------------------------------------
   Rodapé institucional
   ------------------------------------------------------------ */

.home-footer {
    background: #0a1b38;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 3.5rem;
}

.home-footer-marca {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
}

.home-brand-logo-footer {
    width: 34px;
    height: 34px;
}

.home-footer-texto {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 420px;
}

.home-footer-titulo {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.home-footer-links li {
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.65);
}

.home-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.home-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.home-footer-base {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}

.home-footer-base span {
    color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------
   Animações de entrada (ativadas só com JS — html.home-js)
   ------------------------------------------------------------ */

html.home-js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.home-js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

html.home-js .reveal-delay-1 { transition-delay: 0.1s; }
html.home-js .reveal-delay-2 { transition-delay: 0.2s; }
html.home-js .reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html.home-js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-chip-1,
    .home-chip-2 {
        animation: none;
    }
}
