/* =========================================================
   GESTÃO DE DADOS PÚBLICOS — HOME
   Bootstrap 5.3.8
   ========================================================= */

:root {
    --navy: #071d40;
    --navy-2: #0c2c5b;
    --blue: #2c52d4;
    --cyan: #3ca4dc;
    --sky: #eaf6fd;
    --bg: #f5f7fb;
    --text: #14233b;
    --muted: #66748a;
    --border: rgba(7, 29, 64, .09);
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* NAVBAR */

.navbar-custom {
    background: rgba(7, 29, 64, .97);
    min-height: 78px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 30px rgba(7, 29, 64, .12);
    backdrop-filter: blur(12px);
}

.navbar-custom .navbar-brand {
    color: #fff;
    letter-spacing: -.02em;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 600;
    padding: .7rem .9rem !important;
    border-radius: 10px;
    transition: .2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: #fff !important;
    background: rgba(255,255,255,.08);
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .55rem;
    box-shadow: 0 18px 45px rgba(7,29,64,.18);
}

.dropdown-item {
    border-radius: 9px;
    padding: .7rem .8rem;
    font-weight: 600;
    color: var(--text);
    transition: .2s ease;
}

.dropdown-item:hover {
    background: var(--navy);
    color: #fff;
}

#logo,
#logo1 {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

#logo {
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* HERO */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 105px 0 115px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(60,164,220,.28), transparent 27%),
        radial-gradient(circle at 70% 90%, rgba(44,82,212,.26), transparent 30%),
        linear-gradient(135deg, #061a38 0%, #071d40 55%, #0b3267 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow {
    color: #9edfff;
    margin-bottom: 22px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 5px rgba(60,164,220,.15);
}

.hero-title {
    max-width: 760px;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -.055em;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-title span {
    color: #75cef5;
}

.hero-text {
    max-width: 690px;
    color: rgba(255,255,255,.76);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 31px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero-primary,
.btn-hero-secondary,
.btn-cta {
    border-radius: 12px;
    padding: .9rem 1.25rem;
    font-weight: 700;
    transition: .25s ease;
}

.btn-hero-primary {
    background: #fff;
    color: var(--navy);
    border: 1px solid #fff;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    background: #eef9ff;
    color: var(--navy);
}

.btn-hero-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
}

.btn-hero-secondary:hover {
    color: #fff;
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.11);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: rgba(255,255,255,.7);
    font-size: .86rem;
}

.hero-points i {
    color: #76d2a3;
    margin-right: 5px;
}

.hero-dashboard {
    position: relative;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
}

.dashboard-top,
.chart-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.dashboard-top {
    margin-bottom: 26px;
}

.dashboard-top strong {
    display: block;
    font-size: 1.15rem;
    margin-top: 3px;
}

.dashboard-kicker {
    display: block;
    color: #8fc9e6;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.live-dot {
    color: #9be2bd;
    font-size: .75rem;
}

.live-dot i {
    font-size: .5rem;
    margin-right: 4px;
}

.mini-chart {
    padding: 20px;
    border-radius: 16px;
    background: rgba(3,17,38,.38);
    border: 1px solid rgba(255,255,255,.08);
}

.chart-label {
    color: rgba(255,255,255,.65);
    font-size: .78rem;
}

.chart-label strong {
    color: #fff;
    font-size: .95rem;
}

.bars {
    height: 115px;
    display: flex;
    align-items: end;
    gap: 8px;
    margin-top: 18px;
}

.bars span {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(to top, #2c52d4, #67c8ed);
    opacity: .9;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 13px;
}

.dashboard-cards div {
    min-height: 72px;
    padding: 10px 5px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    text-align: center;
}

.dashboard-cards i {
    display: block;
    color: #80d5f5;
    margin-bottom: 6px;
}

.dashboard-cards span {
    color: rgba(255,255,255,.72);
    font-size: .65rem;
    font-weight: 800;
}

/* SEÇÕES */

.intro-section,
.bases-section,
.cta-section {
    padding: 100px 0;
}

.intro-section {
    background: #fff;
}

.section-kicker {
    color: var(--blue);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 800;
    color: var(--navy);
}

.section-text {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 20px;
}

.feature-card {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: .25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(60,164,220,.35);
    box-shadow: 0 18px 40px rgba(7,29,64,.09);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--blue);
    background: var(--sky);
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.feature-card h3 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* BASES */

.bases-section {
    background: var(--bg);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 42px;
}

.section-heading-text {
    max-width: 430px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.data-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-dados {
    position: relative;
    overflow: hidden;
    padding: 31px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(7,29,64,.05);
    transition: .3s ease;
}

.card-dados::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -55px;
    bottom: -55px;
    border-radius: 50%;
    background: rgba(60,164,220,.09);
    transition: .3s ease;
}

.data-card-link:hover .card-dados {
    transform: translateY(-8px);
    border-color: rgba(60,164,220,.35);
    box-shadow: 0 22px 45px rgba(7,29,64,.11);
}

.data-card-link:hover .card-dados::after {
    transform: scale(1.5);
}

.data-card-number {
    color: #a4afbf;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.data-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 28px 0 22px;
    border-radius: 16px;
    color: var(--blue);
    background: var(--sky);
    font-size: 1.4rem;
    transition: .25s ease;
}

.data-card-link:hover .data-icon {
    color: #fff;
    background: var(--navy);
    transform: rotate(-4deg);
}

.card-dados h3 {
    position: relative;
    z-index: 1;
    color: var(--navy);
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 11px;
}

.card-dados p {
    position: relative;
    z-index: 1;
    min-height: 58px;
    color: var(--muted);
    line-height: 1.65;
    font-size: .92rem;
}

.data-card-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--blue);
    font-size: .86rem;
    font-weight: 800;
}

.data-card-action i {
    transition: .2s ease;
}

.data-card-link:hover .data-card-action i {
    transform: translateX(4px);
}

/* CTA */

.cta-section {
    padding-top: 20px;
    padding-bottom: 100px;
    background: var(--bg);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 48px 52px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(60,164,220,.3), transparent 30%),
        linear-gradient(135deg, var(--navy), #0b346b);
    box-shadow: 0 22px 55px rgba(7,29,64,.18);
}

.cta-box .section-kicker {
    color: #89d8f7;
}

.cta-box h2 {
    max-width: 700px;
    margin: 10px 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -.04em;
    font-weight: 800;
}

.cta-box p {
    max-width: 670px;
    color: rgba(255,255,255,.68);
    margin: 0;
    line-height: 1.7;
}

.btn-cta {
    flex-shrink: 0;
    color: var(--navy);
    background: #fff;
    border: 1px solid #fff;
}

.btn-cta:hover {
    color: var(--navy);
    background: #eaf8ff;
    transform: translateY(-2px);
}

/* FOOTER */

.footer {
    background: #04152e;
    color: #fff;
    padding: 45px 0 28px;
    margin-top: 0;
}

.footer h5 {
    font-weight: 800;
}

.footer-muted {
    color: rgba(255,255,255,.52);
}

.footer hr {
    border-color: rgba(255,255,255,.12);
    margin: 30px 0 20px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
}

#logo1 {
    border-radius: 13px !important;
    box-shadow: none !important;
}

/* ANIMAÇÃO */

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVO */

@media (max-width: 991.98px) {
    .hero-section {
        padding: 78px 0 85px;
    }

    .hero-dashboard {
        max-width: 620px;
        margin: 0 auto;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 38px 30px;
    }
}

@media (max-width: 767.98px) {
    .navbar-custom {
        min-height: 68px;
    }

    #logo {
        width: 45px;
        height: 45px;
    }

    .hero-section {
        padding: 62px 0 70px;
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-points {
        flex-direction: column;
        gap: 9px;
    }

    .hero-dashboard {
        padding: 18px;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-section,
    .bases-section {
        padding: 72px 0;
    }

    .cta-section {
        padding-bottom: 72px;
    }

    .feature-card,
    .card-dados {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
