/* ============================================================
   Ágil Fiscal — Website institucional
   Tokens · Tipografia · Componentes · Animações
   ============================================================ */

:root {
    /* Marca */
    --brand:           #05585D;
    --brand-light:     #0A7A7F;
    --brand-deep:      #032D30;
    --accent:          #38E4DE;        /* cyan luminoso */
    --accent-bright:   #7BF1EC;
    --accent-glow:     rgba(56, 228, 222, 0.35);
    --accent-soft:     rgba(56, 228, 222, 0.18);

    /* Dark theme (default) */
    --bg:              #08161A;
    --bg-grade-1:      #0B1E24;
    --bg-grade-2:      #061113;
    --bg-elev:         #0F2429;
    --bg-elev-2:       #142C31;
    --surface:         rgba(255, 255, 255, 0.04);
    --surface-strong:  rgba(255, 255, 255, 0.07);
    --ink:             #E6EFF1;
    --ink-soft:        #B5C5CA;
    --ink-muted:       #7B8E94;
    --muted:           #5B6F76;
    --hairline:        rgba(255, 255, 255, 0.10);
    --hairline-soft:   rgba(255, 255, 255, 0.05);

    /* Apoio */
    --success:         #5EE6A0;
    --warning:         #F5C26B;
    --error:           #FF8585;

    /* Spacing rhythm */
    --container:       1280px;
    --gutter:          1.5rem;
    --radius-sm:       4px;
    --radius:          12px;
    --radius-lg:       20px;

    /* Shadows */
    --shadow-sm:       0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md:       0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow:     0 0 60px rgba(56, 228, 222, 0.25);
}

html.theme-light {
    --bg:              #F8F6F0;
    --bg-grade-1:      #FFFFFF;
    --bg-grade-2:      #F3EFE6;
    --bg-elev:         #FFFFFF;
    --bg-elev-2:       #F8F6F0;
    --surface:         rgba(0, 0, 0, 0.03);
    --surface-strong:  rgba(0, 0, 0, 0.05);
    --ink:             #0F1B1F;
    --ink-soft:        #2C3438;
    --ink-muted:       #6B6258;
    --muted:           #8A8474;
    --hairline:        rgba(15, 27, 31, 0.10);
    --hairline-soft:   rgba(15, 27, 31, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Tipografia */
.font-display {
    font-family: 'Newsreader', Georgia, serif;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.02em;
}
.font-mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── Container ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-wide { max-width: 1440px; }

/* ─── Background atmosfera ──────────────────────────────── */
.atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 75% 20%, rgba(10, 122, 127, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 80% at 15% 75%, rgba(56, 228, 222, 0.10), transparent 65%),
        linear-gradient(180deg, var(--bg-grade-1), var(--bg-grade-2));
}
html.theme-light .atmosphere {
    background:
        radial-gradient(ellipse 80% 60% at 75% 20%, rgba(5, 88, 93, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 80% at 15% 75%, rgba(56, 228, 222, 0.05), transparent 65%),
        linear-gradient(180deg, #FFFFFF, #F3EFE6);
}

.grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* ─── Header ────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
    background: rgba(8, 22, 26, 0.65);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 1px 0 var(--hairline), 0 12px 30px -10px rgba(0,0,0,0.4);
    padding: 0.7rem 0;
}
html.theme-light .site-header.is-scrolled {
    background: rgba(248, 246, 240, 0.75);
    box-shadow: 0 1px 0 var(--hairline), 0 12px 30px -10px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex; align-items: center; gap: 0.7rem;
    font-family: 'Newsreader', serif;
    font-variation-settings: "opsz" 36, "SOFT" 30;
    font-style: italic;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ink);
    position: relative;
}
.brand-mark {
    width: 32px; height: 32px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-mark::before {
    content: '';
    position: absolute; inset: -8px;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    filter: blur(8px);
    z-index: -1;
}
.brand-mark img,
.brand-mark svg {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-soft));
}

.nav-main {
    display: flex; align-items: center; gap: 0.3rem;
}
.nav-main a {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-main a:hover { color: var(--ink); background: var(--surface); }
.nav-main a.is-active { color: var(--accent); }

.nav-actions {
    display: flex; align-items: center; gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
}
.btn-ghost {
    color: var(--ink-soft);
    border-color: var(--hairline);
    background: transparent;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--hairline); background: var(--surface); }

.btn-primary {
    background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 100%);
    color: #fff;
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px rgba(56, 228, 222, 0.18),
        0 12px 30px -10px rgba(56, 228, 222, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px var(--accent-glow),
        0 18px 40px -10px rgba(56, 228, 222, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-accent {
    color: var(--accent);
    border-color: rgba(56, 228, 222, 0.4);
    background: rgba(56, 228, 222, 0.05);
}
.btn-outline-accent:hover {
    background: rgba(56, 228, 222, 0.1);
    border-color: var(--accent);
}

.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }

.btn-icon {
    background: transparent;
    border: 1px solid var(--hairline);
    width: 40px; height: 40px;
    padding: 0;
    color: var(--ink-soft);
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }

.hamburger { display: none; }

@media (max-width: 920px) {
    .nav-main { display: none; }
    .nav-actions .btn-ghost,
    .nav-actions .btn-primary span { display: none; }
    .nav-actions .btn-primary { padding: 0.7rem 0.9rem; }
    .nav-actions .btn-primary::before { content: '→'; }
    .hamburger {
        display: inline-flex;
        background: transparent;
        border: 1px solid var(--hairline);
        width: 40px; height: 40px;
        border-radius: 999px;
        align-items: center; justify-content: center;
        color: var(--ink);
        cursor: pointer;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .hamburger:hover,
    .hamburger[aria-expanded="true"] {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(56, 228, 222, 0.08);
    }
}

/* ─── Mobile menu (slide-in panel) ──────────────────────── */
.nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.3s;
}
body.menu-open { overflow: hidden; }
body.menu-open .nav-mobile {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

.nav-mobile__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 26, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.menu-open .nav-mobile__backdrop { opacity: 1; }

.nav-mobile__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    background: linear-gradient(180deg, var(--bg-grade-1), var(--bg-grade-2));
    border-left: 1px solid var(--hairline);
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
}
body.menu-open .nav-mobile__panel { transform: translateX(0); }

.nav-mobile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--hairline);
}
.nav-mobile__close {
    background: transparent;
    border: 1px solid var(--hairline);
    width: 40px; height: 40px;
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.nav-mobile__close:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(56, 228, 222, 0.08);
    transform: rotate(90deg);
}

.nav-mobile__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 0 auto;
}
.nav-mobile__list a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.nav-mobile__list a:hover { background: var(--surface); }
.nav-mobile__list a.is-active {
    color: var(--accent);
    background: rgba(56, 228, 222, 0.08);
}

.nav-mobile__cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.nav-mobile__cta .btn { width: 100%; justify-content: center; }

/* Em telas grandes nem renderiza */
@media (min-width: 921px) {
    .nav-mobile { display: none; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    z-index: 2;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(56, 228, 222, 0.08);
    border: 1px solid rgba(56, 228, 222, 0.25);
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(56, 228, 222, 0.18), 0 0 12px var(--accent-glow);
    animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.hero h1 {
    font-family: 'Newsreader', serif;
    font-variation-settings: "opsz" 144;
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
    text-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(56, 228, 222, 0.15);
}
.hero p.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2.25rem;
    max-width: 560px;
    line-height: 1.55;
}
.hero-cta {
    display: flex; flex-wrap: wrap; gap: 0.85rem;
    margin-bottom: 2.5rem;
}
.hero-microbar {
    display: flex; align-items: center; gap: 1.25rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.hero-microbar .dot { color: var(--accent); opacity: 0.6; }

/* Mockup do dashboard no hero */
.hero-mock {
    position: relative;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(56, 228, 222, 0.06), rgba(56, 228, 222, 0.02));
    border: 1px solid var(--hairline);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,228,222,0.06);
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
}
.hero-mock::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse, var(--accent-soft), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
}

.mock-window {
    background: var(--bg-elev);
    border-radius: 12px;
    border: 1px solid var(--hairline);
    overflow: hidden;
}
.mock-bar {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--hairline);
    background: var(--bg-elev-2);
}
.mock-bar i {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--muted);
    opacity: 0.5;
}
.mock-bar i:nth-child(1) { background: #ff5f57; opacity: 0.7; }
.mock-bar i:nth-child(2) { background: #febc2e; opacity: 0.7; }
.mock-bar i:nth-child(3) { background: #28c840; opacity: 0.7; }
.mock-bar .mock-url {
    margin-left: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.mock-content {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.mock-card {
    background: var(--bg-elev-2);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 0.85rem;
}
.mock-card .label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
}
.mock-card .value {
    font-size: 1.05rem;
    font-weight: 600;
}
.mock-card .delta { font-size: 0.7rem; color: var(--success); margin-left: 0.25rem; }
.mock-card.span-2 { grid-column: span 2; padding: 1rem; }
.mock-chart {
    margin-top: 0.6rem;
    height: 70px;
    position: relative;
}

@media (max-width: 920px) {
    .hero { padding: 6.5rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-mock { transform: none; }
}

/* ─── Seções ────────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
}
.section-head {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-head .eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.section-head h2 {
    font-family: 'Newsreader', serif;
    font-variation-settings: "opsz" 72;
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.55;
}

/* ─── Stats bar ─────────────────────────────────────────── */
.stats-bar {
    padding: 3rem 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: var(--surface);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}
.stat {
    text-align: center;
}
.stat-value {
    font-family: 'Newsreader', serif;
    font-variation-settings: "opsz" 72;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 24px var(--accent-glow);
}
.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    margin-top: 0.65rem;
}
@media (max-width: 920px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Cards de benefícios ───────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) {
    .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
    position: relative;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 228, 222, 0.3);
    background: var(--surface-strong);
}
.card:hover::before { opacity: 1; }
.card .card-icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(56, 228, 222, 0.1);
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.card h3 {
    font-family: 'Newsreader', serif;
    font-variation-settings: "opsz" 36;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}
.card-feature {
    padding: 1.25rem;
}
.card-feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card-feature p { font-size: 0.88rem; }

/* ─── Diferenciais (vs comparison) ──────────────────────── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    background: var(--surface);
}
.compare-card.is-best {
    border-color: rgba(56, 228, 222, 0.35);
    background: linear-gradient(180deg, rgba(56, 228, 222, 0.06), rgba(56, 228, 222, 0.02));
    position: relative;
    box-shadow: 0 0 0 1px rgba(56, 228, 222, 0.1), 0 24px 60px -20px rgba(56, 228, 222, 0.2);
}
.compare-card.is-best::before {
    content: 'Ágil Fiscal';
    position: absolute;
    top: -10px; left: 1.5rem;
    background: var(--brand-deep);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.compare-card h3 {
    font-family: 'Newsreader', serif;
    font-variation-settings: "opsz" 36;
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--ink-soft);
}
.compare-card.is-best h3 { color: var(--ink); }
.compare-list { list-style: none; padding: 0; }
.compare-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-soft);
    font-size: 0.95rem;
    display: flex; align-items: flex-start; gap: 0.75rem;
}
.compare-list li:last-child { border-bottom: none; }
.compare-list .icon {
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: 0.1rem;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.compare-list .icon.neg {
    background: rgba(255, 133, 133, 0.15);
    color: var(--error);
}
.compare-list .icon.pos {
    background: rgba(56, 228, 222, 0.18);
    color: var(--accent);
}

/* ─── Dashboard interativo ──────────────────────────────── */
.dashpanel {
    background: var(--bg-elev);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.4);
}
.dashpanel-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dashpanel-tabs {
    display: flex; gap: 0.25rem;
    background: var(--bg-elev-2);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 0.25rem;
}
.dashpanel-tabs button {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s;
}
.dashpanel-tabs button.active {
    background: rgba(56, 228, 222, 0.12);
    color: var(--accent);
}

.dashpanel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}
.dashpanel-chart {
    background: var(--bg-elev-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 1.25rem;
    min-height: 320px;
    position: relative;
}
.dashpanel-side {
    display: flex; flex-direction: column; gap: 1rem;
}
.dashpanel-mini {
    background: var(--bg-elev-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 1rem;
}
.dashpanel-mini h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}
.dashpanel-mini .val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
}
.dashpanel-mini canvas { margin-top: 0.5rem; height: 50px !important; }

@media (max-width: 920px) {
    .dashpanel-grid { grid-template-columns: 1fr; }
}

/* ─── Depoimentos ───────────────────────────────────────── */
.testimonials {
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    gap: 1.25rem;
    will-change: transform;
}
.testimonial {
    flex: 0 0 360px;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
}
.testimonial blockquote {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    font-family: 'Newsreader', serif;
    font-style: italic;
}
.testimonial-footer {
    display: flex; align-items: center; gap: 0.75rem;
}
.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-light), var(--accent));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 500;
}
.testimonial-author { font-size: 0.9rem; font-weight: 600; }
.testimonial-role { font-size: 0.78rem; color: var(--ink-muted); }
.testimonial-rating { color: var(--warning); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ─── CTA banner ────────────────────────────────────────── */
.cta-banner {
    position: relative;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    border: 1px solid var(--accent);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4), 0 0 80px var(--accent-soft);
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, var(--accent-glow), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56,228,222,0.2), transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}
.cta-banner h2 em { font-style: italic; color: var(--accent); }
.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    max-width: 540px;
    margin-left: auto; margin-right: auto;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-tag {
    color: var(--ink-muted);
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
    max-width: 320px;
}
.footer-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
}
.social {
    display: flex; gap: 0.5rem;
}
.social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    color: var(--ink-soft);
    transition: color 0.2s, border-color 0.2s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 920px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-top { grid-template-columns: 1fr; }
}

/* ─── Reveal animations ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
    .hero-mock { transform: none; }
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    margin-bottom: 0.55rem;
}
.form-label .req { color: var(--accent); margin-left: 0.2em; }
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(56, 228, 222, 0.04);
    box-shadow: 0 0 0 3px rgba(56, 228, 222, 0.12);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border-left: 3px solid;
    font-size: 0.9rem;
    display: none;
}
.form-msg.is-success {
    display: block;
    background: rgba(94, 230, 160, 0.1);
    border-color: var(--success);
    color: var(--success);
}
.form-msg.is-error {
    display: block;
    background: rgba(255, 133, 133, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* ─── Marquee de logos ──────────────────────────────────── */
.logos-strip {
    padding: 2.5rem 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    overflow: hidden;
    background: var(--surface);
}
.logos-track {
    display: flex; gap: 4rem;
    animation: marquee 35s linear infinite;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: var(--ink-muted);
    white-space: nowrap;
}
.logos-track span {
    display: inline-flex; align-items: center; gap: 0.5rem;
    flex-shrink: 0;
}
.logos-track span::after {
    content: '·';
    color: var(--accent);
    margin-left: 4rem;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Map ───────────────────────────────────────────────── */
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface);
    aspect-ratio: 16/9;
    position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(170deg); }
html.theme-light .map-wrap iframe { filter: none; }

/* ─── Contact info pills ────────────────────────────────── */
.contact-list {
    display: flex; flex-direction: column; gap: 0.85rem;
    margin-top: 1.5rem;
    list-style: none; padding: 0;
}
.contact-list li {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
}
.contact-list .icon {
    width: 36px; height: 36px;
    background: rgba(56, 228, 222, 0.12);
    color: var(--accent);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-list .label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
}
.contact-list .value { font-weight: 600; color: var(--ink); margin-top: 0.15rem; }
