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

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('https://cdn.cianci.com.br/fonts/inter-var-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('https://cdn.cianci.com.br/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

/* Canvas */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .35
}

/* Layout */
.wrap {
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1)
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.reveal-l {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.reveal-l.visible {
    opacity: 1;
    transform: none
}

.reveal-r {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.reveal-r.visible {
    opacity: 1;
    transform: none
}

.d1 {
    transition-delay: .08s
}

.d2 {
    transition-delay: .16s
}

.d3 {
    transition-delay: .24s
}

.d4 {
    transition-delay: .32s
}

.d5 {
    transition-delay: .40s
}

.d6 {
    transition-delay: .48s
}

/* Pulse */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .3;
        transform: scale(1.6)
    }
}

.live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .05em;
    color: var(--green)
}

.live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    border: none
}

.btn-pri {
    background: var(--blue);
    color: #fff
}

.btn-pri:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, .35)
}

.btn-out {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid rgba(var(--accent-rgb), .35)
}

.btn-out:hover {
    background: rgba(var(--accent-rgb), .07);
    border-color: var(--accent)
}

.btn-gh {
    background: transparent;
    color: var(--muted2);
    border: 1.5px solid var(--b2)
}

.btn-gh:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, .25)
}

.btn-green {
    background: var(--green);
    color: #fff
}

.btn-green:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, .3)
}

.btn-amber {
    background: #f59e0b;
    color: #000
}

.btn-amber:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, .3)
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px
}

/* Divider */
.gline {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--b2) 20%, rgba(var(--accent-rgb), .4) 50%, var(--b2) 80%, transparent)
}

/* Labels */
.slabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace
}

.stitle {
    font-size: clamp(26px, 3vw, 48px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.1;
    margin-bottom: 18px
}

.ssub {
    font-size: 16px;
    color: var(--muted2);
    line-height: 1.72
}

/* Animations */
@keyframes bar-rise {
    from {
        transform: scaleY(0)
    }

    to {
        transform: scaleY(1)
    }
}

.bar-animated {
    transform-origin: bottom;
    animation: bar-rise 1s cubic-bezier(.16, 1, .3, 1) forwards
}

@keyframes tb {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .35
    }

    30% {
        transform: translateY(-4px);
        opacity: 1
    }
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: background .4s, border-color .4s, backdrop-filter .4s;
    border-bottom: 1px solid transparent
}

header.scrolled {
    background: rgba(8, 13, 23, .9);
    border-color: var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px)
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 70px
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-right: auto;
    text-decoration: none
}

.logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 7px
}

.logo-txt {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.03em
}

.logo-txt em {
    font-style: normal;
    color: var(--cyan)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 24px
}

.nav-links a {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted2);
    border-radius: 7px;
    transition: color .2s, background .2s
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05)
}

.nav-acts {
    display: flex;
    gap: 9px;
    align-items: center
}

.header-menu-wrap {
    position: relative
}

.header-menu-btn {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0
}

.header-menu-icon {
    width: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.header-menu-icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor
}

.header-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid var(--b2);
    border-radius: 14px;
    background: rgba(8, 13, 23, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 80
}

.header-menu-wrap.open .header-menu-dropdown {
    opacity: 1;
    transform: none;
    pointer-events: auto
}

.header-menu-group {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.header-menu-group+.header-menu-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border)
}

.header-menu-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2px
}

.header-menu-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted2);
    transition: color .2s, background .2s
}

.header-menu-dropdown a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05)
}

.header-menu-social {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.header-menu-social a {
    justify-content: center
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace
}

.breadcrumb a {
    color: var(--muted2);
    transition: color .2s
}

.breadcrumb a:hover {
    color: var(--accent)
}

.breadcrumb-sep {
    color: var(--border)
}

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin: 64px 0
}

.stat-box {
    flex: 1;
    padding: 28px 24px;
    background: var(--card);
    border-right: 1px solid var(--border);
    text-align: center;
    transition: background .2s
}

.stat-box:last-child {
    border-right: none
}

.stat-box:hover {
    background: rgba(var(--accent-rgb), .06)
}

.stat-val {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    background: linear-gradient(90deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.stat-lbl {
    font-size: 12px;
    color: var(--muted2);
    margin-top: 6px;
    font-weight: 500
}

/* CTA section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(var(--accent-rgb), .1) 0%, transparent 70%)
}

.cta-inner {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin: 0 auto
}

.cta-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin-bottom: 18px;
    text-wrap: balance
}

.cta-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg)
}

.foot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px
}

.f-brand {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.f-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px
}

.f-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px
}

.f-logo-txt {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.03em
}

.f-logo-txt em {
    font-style: normal;
    color: var(--cyan)
}

.f-slogan {
    font-size: 12px;
    color: var(--muted2);
    line-height: 1.5;
    max-width: 300px
}

.f-cnpj {
    font-size: 11px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace
}

.f-bottom {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 20px
}

.f-copy {
    font-size: 12px;
    color: var(--muted)
}

.f-links-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.f-links-row a {
    font-size: 12px;
    color: var(--muted2);
    transition: color .2s
}

.f-links-row a:hover {
    color: var(--text)
}

.f-social {
    display: flex;
    gap: 8px
}

.f-sl {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

.f-sl:hover {
    background: rgba(37, 99, 235, .15);
    border-color: rgba(37, 99, 235, .35)
}

.f-sl svg {
    width: 14px;
    height: 14px;
    fill: var(--muted2);
    transition: fill .2s
}

.f-sl:hover svg {
    fill: var(--text)
}

/* Responsive */
@media(max-width:1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .features-layout,
    .incl-layout,
    .ai-layout {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .steps-grid,
    .proc-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .sol-grid,
    .types-grid,
    .cases-grid {
        grid-template-columns: 1fr 1fr
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .plans-grid {
        grid-template-columns: 1fr 1fr
    }

    .feat-grid {
        grid-template-columns: 1fr 1fr
    }

    .plat-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {
    .wrap {
        padding: 0 20px
    }

    .nav-links {
        display: none
    }

    .page-hero {
        padding: 110px 0 72px
    }

    .stats-bar {
        flex-direction: column
    }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .stat-box:last-child {
        border-bottom: none
    }

    .steps-grid,
    .proc-grid {
        grid-template-columns: 1fr
    }

    .sol-grid,
    .types-grid,
    .cases-grid,
    .feat-grid,
    .plat-grid {
        grid-template-columns: 1fr
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .plans-grid {
        grid-template-columns: 1fr
    }

    .foot-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px
    }
}
