/* ═══════════════════════════════════════════════
   index.css — somente o que o index.php utiliza
   (topbar e footer ficam em home_topbar.css e home_footer.css)
   Breakpoints: 1100 / 900 / 640 / 400
   ═══════════════════════════════════════════════ */

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

:root {
    --blue-0: #0099FF;
    --blue-1: #0056B3;
    --blue-3: #002255;
    --light: #f4f8ff;
    --muted: #5a7a9e;
    --text: #0f1f35;
    --text2: #3d5470;
    --border: rgba(0, 86, 179, 0.11);
    --font-head: 'Sora', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
    overflow-x: clip;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}



/* ─── BOTÕES ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue-0), var(--blue-1));
    color: #fff;
    padding: 15px 36px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 153, 255, 0.38);
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 153, 255, 0.52);
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}


/* ─── HERO ─── */
.hero {
    background: var(--light);
    display: flex;
    align-items: center;
    padding: 90px clamp(20px, 5vw, 80px) 70px;
    position: relative;
    overflow: hidden;
}

.hero-glow1 {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.14) 0%, transparent 65%);
    top: -200px;
    right: -80px;
    pointer-events: none;
}

.hero-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.18) 0%, transparent 65%);
    bottom: -100px;
    left: 8%;
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: linear-gradient(rgba(0, 153, 255, 1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 153, 255, 1) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    position: relative;
}

.hero-inner>* {
    min-width: 0;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 3.8vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.hero h1 em {
    font-style: normal;
    color: var(--blue-0);
}

.hero-desc {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text2);
    line-height: 1.75;
    max-width: 450px;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-right {
    display: flex;
    justify-content: center;
}

/* Imagens do hero e da seção NF: altura fluida (sobrescreve o style="height:500px" inline) */
.hero-right img,
.zp-vis img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto !important;
    max-height: clamp(240px, 60vw, 500px);
    object-fit: contain;
}


/* ─── APRESENTAÇÃO (VÍDEO) ─── */
.apresent {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    align-items: center;
    padding: 50px clamp(20px, 5vw, 80px);
    background: linear-gradient(150deg, #000f28 0%, var(--blue-3) 48%, #003a78 100%);
}

.apresent>* {
    min-width: 0;
}

.apresent-right {
    color: #fff;
}

.apresent-right h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff !important;
    overflow-wrap: break-word;
}

.apresent-right em {
    font-style: normal;
    color: var(--blue-0);
}

.apresent-right p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 30px;
}

.video-wrap {
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrap iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}


/* ─── HELPERS DE SEÇÃO ─── */
.sec {
    padding: 50px clamp(20px, 5vw, 80px);
}

.sec.bg-light {
    background: var(--light);
}

.sec-in {
    max-width: 1200px;
    margin: 0 auto;
}

.sec-tag {
    display: inline-block;
    background: rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 153, 255, 0.22);
    color: var(--blue-1);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 4px 13px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.sec-h {
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 2.8vw, 2.55rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
}

.sec-h em {
    font-style: normal;
    color: var(--blue-0);
}

.sec-p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text2);
    line-height: 1.75;
    margin-top: 12px;
    max-width: 460px;
}


/* ─── Z-PATTERN (NOTA FISCAL) ─── */
.zpair {
    display: flex;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.zp-text,
.zp-vis {
    flex: 1;
    min-width: 0;
}

.zp-vis {
    text-align: center;
}

.zp-checks {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-checks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text2);
    line-height: 1.6;
}

.chk {
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--blue-0);
}

.zp-action {
    margin-top: 30px;
}

#imgRotativa {
    transition: opacity 0.5s ease;
}


/* ─── HERO-TWO (DASHBOARD) ─── */
.hero-two {
    background: linear-gradient(150deg, #000f28 0%, var(--blue-3) 48%, #003a78 100%);
    display: flex;
    align-items: center;
    padding: 90px clamp(20px, 5vw, 80px) 70px;
    position: relative;
    overflow: hidden;
}

.hero-two-glow1 {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.14) 0%, transparent 65%);
    top: -200px;
    right: -80px;
    pointer-events: none;
}

.hero-two-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.18) 0%, transparent 65%);
    bottom: -100px;
    left: 8%;
    pointer-events: none;
}

.hero-two-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: linear-gradient(rgba(0, 153, 255, 1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 153, 255, 1) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

.hero-two-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    position: relative;
}

.hero-two-inner>* {
    min-width: 0;
}

.hero-two-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #7ecfff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-0);
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero-two h2 {
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 3.8vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.hero-two h2 em {
    font-style: normal;
    color: var(--blue-0);
}

.hero-two-desc {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.75;
    max-width: 450px;
}

.hero-two-right {
    position: relative;
}


/* ─── MOCKUP DO DASHBOARD ─── */
.mock-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 153, 255, 0.08);
    background: #061120;
}

.mock-bar {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.mock-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.d-r {
    background: #ff5f56;
}

.d-y {
    background: #ffbd2e;
}

.d-g {
    background: #27c93f;
}

.mock-url {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 4px 11px;
    font-size: 0.69rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-hd-main {
    background: linear-gradient(135deg, #0a1f3d, #021026);
    padding: 18px 22px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    border: 1px solid rgba(0, 153, 255, 0.2);
}

.db-hd-main .db-hd-ttl {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.db-hd-dt {
    font-size: 0.68rem;
    color: #fff;
}

.db-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.nav-item {
    background: #0d2242;
    color: #fff;
    padding: 10px 5px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-wrap: anywhere;
}

.db-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.kpi {
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 3px solid #0099FF;
    border-radius: 10px;
    padding: 15px;
}

.kpi-icon {
    background: #0d2242;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 153, 255, 0.2);
}

.kpi-lbl {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
}

.kpi-val {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.kpi-sub {
    font-size: 0.58rem;
    margin-top: 3px;
    color: #fff;
}

.kpi-sub.up {
    color: #36e27f;
}

.db-chart-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.chart-hd {
    background: #0d2242;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 153, 255, 0.1);
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 62px;
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}


/* ─── CARDS FLUTUANTES ─── */
.float-card {
    position: absolute;
    background: rgba(2, 16, 38, 0.9);
    border: 1px solid rgba(0, 153, 255, 0.22);
    backdrop-filter: blur(16px);
    border-radius: 13px;
    padding: 11px 15px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.fc-left {
    left: -38px;
    top: 50%;
    transform: translateY(-50%);
    animation: float1 4s ease-in-out infinite;
}

.fc-right {
    right: -34px;
    bottom: 55px;
    animation: float2 4s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(calc(-50% - 8px));
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.fc-lbl {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 4px;
}

.fc-val {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1;
}

.fc-val em {
    font-style: normal;
    color: #36e27f;
}

.fc-trend {
    font-size: 0.59rem;
    color: #36e27f;
    margin-top: 3px;
}


/* ─── FAQ ─── */
.faq-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.faq-hd {
    text-align: center;
    margin-bottom: 40px;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    padding: 18px 20px;
    box-shadow: none;
}

.accordion-button:hover {
    background: rgba(0, 153, 255, 0.03);
}

.accordion-button:not(.collapsed) {
    color: var(--blue-1);
    background: rgba(0, 153, 255, 0.05);
    box-shadow: none;
}

.accordion-button::after {
    filter: hue-rotate(180deg);
}

.accordion-body {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    padding: 0 20px 18px;
}

.accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(0, 153, 255, 0.3);
    box-shadow: 0 6px 18px rgba(0, 153, 255, 0.08);
}


/* ─── CTA FINAL ─── */
.cta-section {
    padding: 0 clamp(20px, 4vw, 80px) 80px;
}

.cta-box {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--blue-3) 0%, #003d82 55%, #005cb8 100%);
    border-radius: 28px;
    padding: clamp(44px, 8vw, 80px) clamp(20px, 5vw, 60px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 28px;
    position: relative;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
}

.cta-box h2 em {
    font-style: normal;
    color: var(--blue-0);
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}



/* ─── REVEAL (animação de entrada) ─── */
.rv,
.rl,
.rr {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv {
    transform: translateY(28px);
}

.rl {
    transform: translateX(-28px);
}

.rr {
    transform: translateX(28px);
}

.rv.vis,
.rl.vis,
.rr.vis {
    opacity: 1;
    transform: none;
}


/* ═══════════════ RESPONSIVO ═══════════════ */

/* Notebook pequeno / tablet paisagem: cards flutuantes para dentro */
@media (max-width: 1100px) {
    .fc-left {
        left: -12px;
    }

    .fc-right {
        right: -12px;
    }
}

/* Tablet retrato e abaixo: tudo em coluna única */
@media (max-width: 900px) {

    .hero {
        padding: 100px 20px 50px;
    }

    .hero-inner,
    .hero-two-inner,
    .apresent {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 32px;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .hero-ctas {
        justify-content: center;
    }

    /* Vídeo: título primeiro, vídeo depois */
    .apresent {
        text-align: center;
        gap: 24px;
    }

    .apresent-right {
        order: -1;
    }

    .apresent-right p {
        margin: 0 auto;
    }

    .video-wrap {
        width: 100%;
    }

    /* Seção NF: empilha texto e imagem */
    .zpair {
        flex-direction: column;
        gap: 32px;
    }

    .zp-text {
        width: 100%;
    }

    .sec-p {
        max-width: none;
    }

    /* Dashboard */
    .hero-two {
        padding: 70px 20px 50px;
    }

    .hero-two-inner {
        text-align: center;
    }

    .hero-two-desc {
        margin: 0 auto;
    }

    .db-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .rl,
    .rr {
        transform: translateY(28px);
    }
}

/* Celulares */
@media (max-width: 640px) {

    .sec {
        padding: 40px 20px;
    }

    .btn-primary {
        padding: 14px 28px;
    }

    .hero-two-pill {
        margin-bottom: 18px;
    }

    .mock-wrap {
        border-radius: 14px;
    }

    .mock-body {
        padding: 12px;
        gap: 10px;
    }

    .db-hd-main {
        padding: 14px 16px;
    }

    .db-hd-main .db-hd-ttl {
        font-size: 1rem;
    }

    .db-hd-dt {
        font-size: 0.72rem;
    }

    .db-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-item {
        font-size: 0.62rem;
    }

    .kpi {
        padding: 12px;
    }

    .kpi-lbl,
    .kpi-sub {
        font-size: 0.62rem;
    }

    .kpi-val {
        font-size: 1rem;
    }

    .fc-left,
    .fc-right {
        display: none;
    }

    .faq-hd {
        margin-bottom: 28px;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 16px;
    }

    .accordion-body {
        padding: 0 16px 16px;
    }

    .cta-section {
        padding: 0 16px 50px;
    }

    .cta-box {
        border-radius: 20px;
    }
}

/* Celulares pequenos: botões em largura total */
@media (max-width: 400px) {

    .hero-ctas,
    .zp-action {
        width: 100%;
    }

    .hero-ctas .btn-primary,
    .zp-action .btn-primary,
    .cta-btns,
    .cta-btns .btn-ghost-white {
        width: 100%;
    }

    .zp-checks li {
        font-size: 0.85rem;
    }

    .mock-url {
        font-size: 0.62rem;
    }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .pill-dot,
    .fc-left,
    .fc-right {
        animation: none;
    }

    .rv,
    .rl,
    .rr {
        transition: none;
    }
}