/* ==========================================================
   BrasioApp — main.css
   Paleta: verde #059669 · fundo #0f1613
   Fonte: Montserrat + JetBrains Mono
   ========================================================== */

:root {
    --green: #059669;
    --green-2: #10b981;
    --green-soft: #34d399;
    --green-glow: rgba(5, 150, 105, 0.35);
    --bg: #0f1613;
    --bg-2: #0b110f;
    --surface: #131b18;
    --surface-2: #182220;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #e8efe9;
    --muted: #98a5a0;
    --muted-2: #6f7c78;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.6), 0 10px 30px -10px rgba(5,150,105,0.15);
    --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -25px rgba(0,0,0,0.7);
    --grad-green: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
    --grad-fade: linear-gradient(180deg, rgba(15,22,19,0) 0%, #0f1613 90%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    overflow-x: hidden;
}

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

.container-xl { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ============ TIPOGRAFIA ============ */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.02em; color: #f2f7f4; font-weight: 800; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; font-weight: 900; }
h1 em { font-style: normal; background: var(--grad-green); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.12; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--muted); margin: 0; }

.eyebrow, .tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--green-soft);
    background: rgba(5,150,105,0.06);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 12px var(--green-2); }

/* ============ BOTÕES ============ */
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 12px;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
    background: var(--grad-green); color: #fff;
    box-shadow: 0 10px 24px -10px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px var(--green-glow); }
.btn-ghost {
    background: rgba(255,255,255,0.02); color: #dbe6e1;
    border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green); color: #fff; background: rgba(5,150,105,0.08); }
.btn-primary.lg, .btn-ghost.lg { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }
.btn-primary.block, .btn-ghost.block { display: flex; width: 100%; }

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(15,22,19,0.72);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .2s ease;
}
.site-header.scrolled {
    background: rgba(11,17,15,0.88);
    border-bottom-color: var(--line);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 32px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 32px; width: auto; }

/* Nav principal — pill container elegante */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.main-nav a {
    position: relative;
    color: #cbd6d1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color .2s ease, background .25s ease;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(5,150,105,0.14);
}
.main-nav a.active {
    color: #fff;
    background: rgba(5,150,105,0.22);
}
/* removemos o ::after antigo — agora o hover é o pill */
.main-nav a::after { display: none; }

.nav-cta {
    display: flex; gap: 10px; align-items: center;
    flex-shrink: 0;
}

/* Hambúrguer */
.nav-toggle {
    display: none;
    background: transparent; border: none; padding: 0;
    width: 42px; height: 42px; cursor: pointer;
    align-items: center; justify-content: center;
    color: #fff;
}
.nav-toggle-bars { position: relative; width: 26px; height: 18px; display: inline-block; }
.nav-toggle-bars span {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 8px; }
.nav-toggle-bars span:nth-child(3) { top: 16px; }
body.nav-open .nav-toggle-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; padding: 90px 0 40px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: -20% -10% auto -10%; height: 700px; pointer-events: none;
    background:
            radial-gradient(ellipse 60% 55% at 20% 30%, rgba(5,150,105,0.25), transparent 60%),
            radial-gradient(ellipse 50% 45% at 85% 10%, rgba(16,185,129,0.18), transparent 65%);
    filter: blur(10px);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 40%, transparent 80%);
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.hero-copy .lead { margin-top: 22px; font-size: 1.1rem; max-width: 560px; color: #b7c5c0; }
.hero-copy h1 { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); gap: 20px;
}
.hero-metrics strong { display: block; font-size: 1.6rem; color: #fff; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.hero-metrics span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.hero-visual { position: relative; }
.hero-glow {
    position: absolute; inset: -30px; z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(5,150,105,0.35), transparent 60%);
    filter: blur(40px);
}
.hero-img {
    position: relative; z-index: 1;
    width: 100%; border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
}
.float-card {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    background: rgba(19,27,24,0.9);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-strong);
    padding: 12px 16px; border-radius: 14px;
    box-shadow: var(--shadow-card);
    animation: floaty 6s ease-in-out infinite;
}
.float-card i { font-size: 1.6rem; color: var(--green-soft); }
.float-card strong { display: block; font-size: 0.9rem; color: #fff; font-weight: 700; }
.float-card span { display: block; font-size: 0.75rem; color: var(--muted); }
.float-card-1 { top: 10%; left: -30px; }
.float-card-2 { bottom: 12%; right: -20px; animation-delay: -3s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Marquee */
.marquee {
    margin-top: 70px; padding: 22px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    overflow: hidden; position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
    display: flex; gap: 40px; white-space: nowrap;
    animation: scroll-x 35s linear infinite;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Recursos */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px 22px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, transparent 60%, rgba(5,150,105,0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(5,150,105,0.25); }
.feature-card:hover::before { opacity: 1; }
.feature-card i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(5,150,105,0.12); color: var(--green-soft);
    font-size: 1.4rem; margin-bottom: 18px;
}
.feature-card h3 { color: #f0f5f2; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; }

/* Split sections */
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-inner { direction: rtl; }
.split.reverse .split-inner > * { direction: ltr; }
.split-media { position: relative; }
.split-media::before {
    content: ""; position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(5,150,105,0.25), transparent 60%);
    filter: blur(40px); z-index: 0;
}
.split-media img {
    position: relative; z-index: 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
}
.split-copy h2 { margin: 18px 0 18px; }
.split-copy p { font-size: 1.05rem; margin-bottom: 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: #d4dedb; font-size: 0.95rem; }
.check-list i {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(5,150,105,0.15); color: var(--green-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}

/* Centralizador */
.centralizador-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.centralizador-grid .c-card:first-child { grid-column: span 2; }
.c-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 24px;
    transition: transform .25s ease, border-color .25s ease;
}
.c-card:hover { transform: translateY(-3px); border-color: rgba(5,150,105,0.3); }
.c-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-green); color: #fff; font-size: 1.3rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px -8px var(--green-glow);
}
.c-card h3 { margin-bottom: 8px; color: #f0f5f2; }
.c-card p { font-size: 0.92rem; }

/* Automações pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong);
    color: #dbe6e1; font-size: 0.9rem; font-weight: 500;
    transition: all .2s ease;
}
.pill i { color: var(--green-soft); }
.pill:hover { border-color: var(--green); background: rgba(5,150,105,0.08); }

/* Integrações */
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.i-item {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: all .25s ease;
}
.i-item:hover { border-color: rgba(5,150,105,0.35); transform: translateY(-2px); }
.i-item i { font-size: 1.5rem; color: var(--green-soft); }
.i-item span { font-weight: 600; color: #e8efe9; font-size: 0.95rem; }

/* Segurança */
.security {
    background:
            radial-gradient(ellipse 60% 60% at 50% 0%, rgba(5,150,105,0.12), transparent 70%),
            var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 26px;
    transition: transform .25s ease, border-color .25s ease;
}
.s-card:hover { transform: translateY(-3px); border-color: rgba(5,150,105,0.3); }
.s-card i {
    font-size: 1.8rem; color: var(--green-soft);
    display: inline-block; margin-bottom: 16px;
    padding: 12px; background: rgba(5,150,105,0.12); border-radius: 12px;
}
.s-card h3 { margin-bottom: 8px; color: #f0f5f2; }
.s-card p { font-size: 0.92rem; }
.s-card.wide { grid-column: span 3; text-align: center; padding: 40px; }
.s-card.wide i { font-size: 2rem; }

/* Planos */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 36px 30px;
    display: flex; flex-direction: column;
    position: relative; transition: transform .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(5,150,105,0.25); }
.plan h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan-sub { color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.plan ul li { display: flex; align-items: center; gap: 10px; color: #d4dedb; font-size: 0.95rem; }
.plan ul li i {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(5,150,105,0.15); color: var(--green-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
}
.plan.featured {
    background:
            radial-gradient(circle at 50% 0%, rgba(5,150,105,0.2), transparent 70%),
            linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border-color: rgba(5,150,105,0.4);
    box-shadow: 0 30px 60px -30px var(--green-glow);
    transform: translateY(-8px);
}
.badge-pop {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--grad-green); color: #fff;
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em; text-transform: uppercase;
    box-shadow: 0 8px 20px -8px var(--green-glow);
}
.plan a { margin-top: auto; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-head h2 { margin: 16px 0 14px; }
.faq-head p { margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 26px;
    transition: border-color .25s ease, background .25s ease;
}
.faq-list details[open] { border-color: rgba(5,150,105,0.35); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.faq-list summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    cursor: pointer; list-style: none;
    font-weight: 600; font-size: 1.02rem; color: #f0f5f2;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
    width: 32px; height: 32px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(5,150,105,0.12); color: var(--green-soft);
    transition: transform .3s ease, background .25s ease;
    flex-shrink: 0;
}
.faq-list details[open] summary i {
    transform: rotate(180deg);
    background: var(--grad-green); color: #fff;
}
.faq-list details p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* CTA / Contato */
.cta { padding: 130px 0; }
.cta-inner {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 1100px; margin: 0 auto;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid rgba(5,150,105,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(5,150,105,0.05);
}
.cta-media { position: relative; min-height: 100%; }
.cta-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.cta-media-overlay {
    position: absolute; inset: 0;
    background:
            linear-gradient(135deg, rgba(15,22,19,0.35) 0%, rgba(15,22,19,0.15) 40%, rgba(5,150,105,0.15) 100%),
            radial-gradient(circle at 30% 70%, rgba(5,150,105,0.3), transparent 60%);
    mix-blend-mode: normal;
}
.cta-content {
    padding: 60px 50px;
    display: flex; flex-direction: column; gap: 18px;
    position: relative; z-index: 1;
}
.cta-content h2 { margin: 6px 0 4px; }
.cta-content p { font-size: 1rem; color: #b7c5c0; }
.cta-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cta-badges {
    display: flex; flex-wrap: wrap; gap: 18px;
    margin-top: 22px; padding-top: 22px;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; color: var(--muted);
    letter-spacing: 0.03em;
}
.cta-badges span { display: inline-flex; align-items: center; gap: 8px; }
.cta-badges i { color: var(--green-soft); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 60px; }
.foot-brand img { height: 32px; margin-bottom: 16px; }
.foot-brand p { max-width: 320px; font-size: 0.9rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot-cols h4 {
    font-size: 0.8rem; font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--green-soft); margin-bottom: 18px;
}
.foot-cols a {
    display: block; color: #b7c5c0; text-decoration: none;
    font-size: 0.92rem; padding: 5px 0;
    transition: color .2s ease;
}
.foot-cols a:hover { color: #fff; }
.foot-bottom {
    border-top: 1px solid var(--line); padding: 22px 0;
    font-size: 0.85rem; color: var(--muted-2);
}
.foot-bottom .container-xl { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; text-align: center; }

/* Seleção */
::selection { background: rgba(5,150,105,0.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #263230; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }
