/* ========== Millennium CRM – Design futurista (refatorado) ========== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Variáveis – modo escuro (padrão): preto + branco + #00ffff */
:root {
    --accent: #00ffff;
    --bg: #0a0a0f;
    --bg-secondary: rgba(0, 0, 0, 0.3);
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-inverse: #0a0a0f;
    --accent-secondary: #ffffff;
    --border: rgba(0, 255, 255, 0.1);
    --border-accent: rgba(0, 255, 255, 0.2);
    --shadow-accent: rgba(0, 255, 255, 0.3);
    --shadow-accent-strong: rgba(0, 255, 255, 0.5);
    --header-bg: rgba(10, 10, 15, 0.8);
    --input-bg: rgba(0, 0, 0, 0.3);
}

/* Modo claro */
[data-theme="light"] {
    --accent: #00a8b5;
    --bg: #e7edf0;
    --bg-secondary: rgba(15, 23, 42, 0.045);
    --bg-card: rgba(15, 23, 42, 0.04);
    --bg-card-hover: rgba(15, 23, 42, 0.075);
    --text: #111827;
    --text-muted: #4b5563;
    --text-inverse: #ffffff;
    --accent-secondary: #0f172a;
    --border: rgba(0, 168, 181, 0.24);
    --border-accent: rgba(0, 168, 181, 0.34);
    --shadow-accent: rgba(0, 168, 181, 0.18);
    --shadow-accent-strong: rgba(0, 168, 181, 0.28);
    --header-bg: rgba(231, 237, 240, 0.92);
    --input-bg: rgba(248, 250, 252, 0.94);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

h1:focus {
    outline: none;
}

/* Efeito de fundo com partículas */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

[data-theme="light"] .floating-card-inner {
    background: linear-gradient(135deg, rgba(0,168,181,0.14), rgba(15,23,42,0.05));
}

[data-theme="light"] .dashboard-mock {
    background: linear-gradient(135deg, rgba(0,168,181,0.12), rgba(15,23,42,0.05));
}

[data-theme="light"] .floating-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .plan-card,
[data-theme="light"] .tech-item,
[data-theme="light"] .contato-form,
[data-theme="light"] .dashboard-kpi {
    background: rgba(238, 243, 246, 0.88);
    border-color: var(--border-accent);
    box-shadow: 0 12px 40px rgba(0, 168, 181, 0.08);
}

[data-theme="light"] .hero-screen-panel {
    background: transparent;
}

[data-theme="light"] .feature-icon,
[data-theme="light"] .popular-tag,
[data-theme="light"] .btn-primary {
    box-shadow: 0 0 18px var(--shadow-accent);
}

[data-theme="light"] .contato-form input,
[data-theme="light"] .contato-form textarea {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(0, 168, 181, 0.28);
    color: var(--text);
}

[data-theme="light"] .contato-form input::placeholder,
[data-theme="light"] .contato-form textarea::placeholder {
    color: rgba(75, 85, 99, 0.7);
}

[data-theme="light"] footer,
[data-theme="light"] .landing-bottom-bar {
    background: rgba(231, 237, 240, 0.92);
    border-color: var(--border-accent);
}

[data-theme="light"] .footer-col p,
[data-theme="light"] .footer-col ul li a,
[data-theme="light"] .bar-links a,
[data-theme="light"] .dashboard-kpi-label,
[data-theme="light"] .dashboard-activity-item,
[data-theme="light"] .feature-desc,
[data-theme="light"] .plan-period,
[data-theme="light"] .plan-features li,
[data-theme="light"] .about-crm-lead,
[data-theme="light"] .tech-lead,
[data-theme="light"] .tech-content p,
[data-theme="light"] .section-lead,
[data-theme="light"] .contato-canais p {
    color: var(--text-muted);
}

/* Container principal */
.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/*
 * Topo da landing: UMA imagem contínua para header + hero (sem segunda camada no .hero).
 * Full-bleed na largura da viewport; cover + no-repeat (sem mosaico).
 *
 * Estrutura em duas camadas para troca com fade conforme o tema:
 *   ::before -> imagem do modo escuro (imagemcachoeiro.png)
 *   ::after  -> imagem do modo claro  (imagemcachoeiro2.png)
 * Apenas uma fica visível por vez (opacity 0/1 com transition).
 */
.container::before,
.container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    top: 0;
    min-height: calc(90vh + 260px);
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease;
}

.container::before {
    opacity: 1;
    background-color: #080c12;
    background-image:
        linear-gradient(
            105deg,
            rgba(8, 12, 18, 0.9) 0%,
            rgba(8, 12, 18, 0.62) 48%,
            rgba(8, 12, 18, 0.4) 100%
        ),
        url('../img/imagemcachoeiro.png');
}

.container::after {
    opacity: 0;
    background-color: #f5f9fb;
    background-image: url('../img/imagemcachoeiro2.png');
    filter: saturate(0.7) brightness(0.82) contrast(0.95);
}

[data-theme="light"] .container::before {
    opacity: 0;
}

[data-theme="light"] .container::after {
    opacity: 1;
}

main {
    position: relative;
    z-index: 1;
}

footer#contato-footer {
    position: relative;
    z-index: 1;
}

/* Header — transparente sobre o fundo único do .container::before */
header {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 18, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.08);
    transition: box-shadow 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

header.header-faded {
    pointer-events: none;
    box-shadow: none;
    border-bottom-color: transparent;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
    transition: opacity 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
}

.header-brand {
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(10, 10, 15, 0.35);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-nav-toggle:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent);
}

.header-nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.header-nav-toggle .fa {
    font-size: 1.15rem;
    line-height: 1;
}

[data-theme="light"] .header-nav-toggle {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(0, 255, 255, 0.35);
    color: #eaf8ff;
}

[data-theme="light"] .header-nav-toggle:hover {
    background: rgba(0, 168, 181, 0.2);
    border-color: rgba(0, 255, 255, 0.55);
    color: #ffffff;
}

.header-nav-panel {
    display: block;
    min-width: 0;
}

/* Desktop: navegação sempre visível; botão ⋮ oculto */
@media (min-width: 901px) {
    .header-nav-toggle {
        display: none !important;
    }

    .header-nav-panel {
        display: block !important;
    }

    .header-nav-row {
        flex-wrap: wrap;
    }

    /* Mesma "pílula" da versão mobile, só nos links do topo */
    .header-nav-panel nav {
        gap: 14px;
    }

    .header-nav-panel nav a {
        padding: 10px 18px;
        border-radius: 999px;
        line-height: 1.2;
        background: rgba(0, 255, 255, 0.07);
        border: 1px solid rgba(0, 255, 255, 0.16);
        transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease;
    }

    .header-nav-panel nav a:hover {
        background: rgba(0, 255, 255, 0.14);
        border-color: rgba(0, 255, 255, 0.4);
    }

    /* Sublinhado animado do desktop não combina com a pílula: desativa só aqui */
    .header-nav-panel nav a::before {
        display: none;
    }

    [data-theme="light"] .header-nav-panel nav a {
        background: rgba(0, 168, 181, 0.08);
        border-color: rgba(0, 168, 181, 0.25);
    }

    [data-theme="light"] .header-nav-panel nav a:hover {
        background: rgba(0, 168, 181, 0.16);
        border-color: rgba(0, 168, 181, 0.45);
    }
}

/* Logo wrap: imagem + texto */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-wrap-top {
    gap: 16px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: none;
    background: transparent;
    padding: 0;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.logo-wrap-top .logo-img {
    width: 45px;
    height: 45px;
}

.logo-img:hover {
    transform: translateY(-3px) scale(1.05);
}

.logo-wrap-footer .logo-img {
    width: 64px;
    height: 64px;
}

.logo-wrap-footer .logo {
    font-size: 22px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.logo-wrap-top .logo {
    font-size: 26px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.22));
}

.logo span {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-pulse {
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px var(--shadow-accent)); }
    50% { opacity: 0.85; filter: drop-shadow(0 0 20px var(--shadow-accent)); }
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    color: #eaf8ff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.22);
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: 0.3s;
}

nav a:hover {
    color: #4af7ff;
    text-shadow: 0 0 14px rgba(0, 255, 255, 0.4);
}

nav a:hover::before {
    width: 100%;
}

[data-theme="light"] nav a {
    color: var(--text);
    text-shadow: none;
}

[data-theme="light"] nav a:hover {
    color: var(--accent);
    text-shadow: none;
}

/* Topo: modo claro mantém links da navegação principal como no escuro (contraste no fundo da hero). */
[data-theme="light"] .header-nav-panel nav a {
    color: #eaf8ff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.22);
}

[data-theme="light"] .header-nav-panel nav a:hover {
    color: #4af7ff;
    text-shadow: 0 0 14px rgba(0, 255, 255, 0.4);
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--text-inverse);
    box-shadow: 0 0 20px var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--shadow-accent-strong);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--shadow-accent);
}

.btn-outline:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Toggle tema escuro/claro */
.theme-toggle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px var(--shadow-accent);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}
.theme-toggle .fa {
    font-size: 1.0rem;
}

/* Hero — fundo vem do .container::before (imagem única); só conteúdo + carrossel aqui */
.hero {
    min-height: 90vh;
    position: relative;
    padding: 30px 0 52px;
    z-index: 1;
    background: transparent;
}

/* Largura do fluxo normal da coluna (.container); evita deslocar slides ao centro da coluna com 100vw */
.hero-carousel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    outline: none;
    overflow: visible;
}

.hero-carousel-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
}

.hero-carousel-viewport:active {
    cursor: grabbing;
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-carousel-pane {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

.hero-pane-inner {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 40px);
    min-height: min(82vh, 800px);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-carousel-pane:not(.is-active) .hero-notebook,
.hero-carousel-pane:not(.is-active) .hero-phone {
    animation-play-state: paused;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
    padding: 8px 12px;
}

.hero-carousel-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.28);
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.hero-carousel-dot:hover {
    opacity: 0.95;
    transform: scaleY(1.15);
}

.hero-carousel-dot.is-active {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    opacity: 1;
}

/* Controles anterior / próximo (estilo Bootstrap — ícones centrados no botão; botões centralizados na altura do hero) */
.hero-carousel-control {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
    color: var(--accent);
    background: rgba(10, 10, 15, 0.35);
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hero-carousel-control:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent);
}

.hero-carousel-control-prev:hover,
.hero-carousel-control-next:hover {
    transform: translateY(-50%) scale(1.06);
}

.hero-carousel-control:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Fora da coluna de texto: encaixa na margem visual do .container (padding lateral ~50px) */
.hero-carousel-control-prev {
    top: 50%;
    left: calc(env(safe-area-inset-left, 0px) - 52px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.hero-carousel-control-next {
    top: 50%;
    right: calc(env(safe-area-inset-right, 0px) - 52px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.carousel-control-prev-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.carousel-control-next-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

[data-theme="light"] .hero-carousel-control {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 168, 181, 0.35);
}

[data-theme="light"] .hero-carousel-control:hover {
    background: rgba(255, 255, 255, 0.92);
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-title {
/*    font-size: 80px;*/
    font-size: 59px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    position: relative;
}

.hero-title-line {
    display: block;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* Notebook mockup: imagem + overlay na área da tela (calibrado para img/notebook-mockup.png 1536×1024) */
.hero-notebook {
    --notebook-screen-top: 9%;
    --notebook-screen-left: 14.5%;
    --notebook-screen-w: 71%;
    --notebook-screen-h: 66%;
    position: relative;
    width: 100%;
    max-width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
    animation: float 6s ease-in-out infinite;
}

.hero-notebook-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.hero-notebook-screen {
    position: absolute;
    z-index: 1;
    top: var(--notebook-screen-top);
    left: var(--notebook-screen-left);
    width: var(--notebook-screen-w);
    height: var(--notebook-screen-h);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: #1f5f66;
}

.floating-card {
    position: relative;
    background: var(--bg-card-hover);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 50px var(--shadow-accent);
    animation: float 6s ease-in-out infinite;
    min-width: min(360px, 100%);
    max-width: 520px;
    width: 100%;
}

/* Painel dentro da tela — só estrutura (sem card / vidro) */
.hero-screen-panel {
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1.2%, 8px);
    box-sizing: border-box;
    background: linear-gradient(180deg, #2a7279 0%, #4b7075 100%);
}

.dashboard-mock.dashboard-mock--notebook {
    flex: 0 1 auto;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(8px, 1.8%, 12px);
    border-radius: 0;
}

/* Conteúdo do mock: alinhado ao restante da landing (texto + linhas leves, sem caixas) */
.hero-notebook-screen .dashboard-mock--hero-plain {
    background: linear-gradient(180deg, rgba(44, 122, 130, 0.96) 0%, rgba(72, 112, 118, 0.96) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    justify-content: flex-start;
}

.hero-notebook-screen .dashboard-mock--hero-plain .dashboard-mock-header {
    border-bottom-color: rgba(0, 255, 255, 0.12);
}

.hero-notebook-screen .dashboard-mock--hero-plain .dashboard-kpi {
    background: rgba(23, 92, 99, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.18);
    box-shadow: none;
}

.hero-notebook-screen .dashboard-mock--hero-plain .dashboard-kpi:hover {
    transform: none;
    border-color: rgba(0, 255, 255, 0.26);
    box-shadow: none;
}

.hero-notebook-screen .dashboard-mock--hero-plain .dashboard-activity-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: none;
}

[data-theme="light"] .hero-notebook-screen .dashboard-kpi {
    background: rgba(23, 92, 99, 0.4);
    border-color: rgba(0, 255, 255, 0.18);
    box-shadow: none;
}

.hero-notebook-screen .dashboard-mock-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.hero-notebook-screen .dashboard-mock-title {
    font-size: clamp(10px, 2.2vw, 13px);
}

.hero-notebook-screen .dashboard-mock-badge {
    font-size: clamp(9px, 1.8vw, 11px);
}

.hero-notebook-screen .dashboard-mock-kpis {
    gap: 5px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.hero-notebook-screen .dashboard-kpi {
    padding: 5px 4px;
}

.hero-notebook-screen .dashboard-kpi-value {
    font-size: clamp(13px, 3.2vw, 18px);
}

.hero-notebook-screen .dashboard-kpi-label {
    font-size: clamp(8px, 1.6vw, 10px);
}

.hero-notebook-screen .dashboard-mock-chart {
    height: clamp(26px, 8vw, 40px);
    margin-bottom: 6px;
    gap: 4px;
    flex-shrink: 0;
}

.hero-notebook-screen .dashboard-mock-activity {
    padding-top: 6px;
    margin-top: 4px;
    flex-shrink: 0;
}

.hero-notebook-screen .dashboard-activity-item {
    font-size: clamp(8px, 1.8vw, 11px);
    padding: 3px 6px;
    margin: 0 -6px;
}

/* Texto do slide IA (classes reutilizadas — sem faixa com fundo próprio) */
.ai-strip-copy {
    flex: 1 1 320px;
    max-width: 640px;
}

.ai-strip-title {
    font-size: clamp(26px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: clamp(18px, 3vw, 28px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-strip-title .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-strip-title-line {
    display: block;
}

.ai-strip-lead {
    font-size: clamp(15px, 1.35vw, 17px);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 52ch;
}

.ai-strip-lead strong {
    color: var(--accent);
    font-weight: 600;
}

.ai-strip-list {
    list-style: none;
    margin: 0 0 26px 0;
    padding: 0;
}

.ai-strip-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-size: clamp(14px, 1.25vw, 16px);
    color: var(--text);
    line-height: 1.45;
    border-bottom: 1px solid rgba(0, 255, 255, 0.06);
}

.ai-strip-list li:last-child {
    border-bottom: none;
}

.ai-strip-list .fa {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 14px;
    opacity: 0.95;
}

/* Lista do slide IA no hero: sem “faixas” tipo card — só espaçamento */
.hero .ai-strip-list li {
    border-bottom: none;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ai-strip-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.ai-strip-device {
    flex: 1 1 280px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 260px;
}

/* Mockup smartphone — hover troca imagem com fade */
.hero-phone {
    position: relative;
    width: 100%;
    max-width: min(320px, 100%);
    margin-left: auto;
    margin-right: 0;
    animation: float 7s ease-in-out infinite;
    animation-delay: -1.5s;
    cursor: pointer;
}

/* Imagem base: sempre visível no estado normal */
.hero-phone-img--default {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: rotate(0deg);
    position: relative;
    z-index: 1;
}

/* Imagem hover: empilhada exatamente em cima, invisível por padrão */
.hero-phone-img--hover {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: rotate(-4deg) scale(0.97);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

/* Ao passar o mouse: esconde a base, mostra a hover */
@media (hover: hover) {
    .hero-phone:hover .hero-phone-img--default {
        opacity: 0;
        transform: rotate(4deg) scale(0.97);
    }

    .hero-phone:hover .hero-phone-img--hover {
        opacity: 1;
        transform: rotate(0deg) scale(1.07);
        pointer-events: auto;
    }
}

/* Em dispositivos touch (sem hover real): mantém só imagem base visível */
@media (hover: none) {
    .hero-phone-img--hover {
        display: none;
    }
}

[data-theme="light"] .ai-strip-list li {
    border-bottom-color: rgba(0, 168, 181, 0.12);
}

/*
 * Tema claro — mantém as cores originais do carrossel (mesmas do escuro)
 * e adiciona apenas uma sombra escura sutil para garantir leitura sobre a foto.
 */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-title-line,
[data-theme="light"] .ai-strip-title,
[data-theme="light"] .ai-strip-title-line {
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .hero-title .gradient-text,
[data-theme="light"] .ai-strip-title .gradient-text {
    background: linear-gradient(135deg, #b8f0ff 0%, #66d6ff 45%, #3aa8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .ai-strip-lead,
[data-theme="light"] .ai-strip-list li {
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-carousel-dot {
    background: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .hero-carousel-dot.is-active {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

@media (max-width: 768px) {
    .hero-notebook {
        max-width: min(420px, 100%);
    }

    .hero-pane-inner {
        flex-direction: column;
        text-align: center;
        gap: 48px;
        min-height: 0;
    }

    .ai-strip-copy {
        text-align: center;
        max-width: none;
    }

    .ai-strip-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .ai-strip-list li {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .ai-strip-cta {
        justify-content: center;
    }

    .ai-strip-device {
        justify-content: center;
        width: 100%;
    }

    .hero-phone {
        margin-left: auto;
        margin-right: auto;
        max-width: min(280px, 88vw);
    }

    .hero-carousel-viewport {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .hero-carousel {
        overflow: hidden;
        max-width: 100%;
    }

    .hero-carousel-control-prev,
    .hero-carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(8, 12, 18, 0.65);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Em coluna única: não usar offset negativo — faixa livre via padding do viewport */
    .hero-carousel-control-prev {
        left: max(6px, env(safe-area-inset-left, 0px));
    }

    .hero-carousel-control-next {
        right: max(6px, env(safe-area-inset-right, 0px));
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
}

/* Dashboard mock – conteúdo do card */
.dashboard-mock {
    background: linear-gradient(135deg, rgba(0,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    color: var(--text);
}

.dashboard-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.dashboard-mock-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.dashboard-mock-title .fa {
    margin-right: 8px;
    opacity: 0.9;
}

.dashboard-mock-badge {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dashboard-live-dot {
    font-size: 6px;
    color: #0f0;
    animation: dashboard-pulse 1.5s ease-in-out infinite;
}

@keyframes dashboard-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dashboard-mock-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.dashboard-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.dashboard-kpi:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--shadow-accent);
}

.dashboard-kpi:hover .dashboard-kpi-value {
    color: var(--accent-secondary);
}

.dashboard-kpi-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.dashboard-kpi-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 56px;
    margin-bottom: 14px;
    padding: 8px 0;
}

.dashboard-chart-bar {
    flex: 1;
    min-width: 0;
    height: var(--h, 50%);
    max-height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
    border-radius: 6px 6px 0 0;
    opacity: 0.85;
    transition: height 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
    cursor: default;
}

.dashboard-chart-bar:hover {
    transform: scaleY(1.08);
    transform-origin: bottom;
    opacity: 1;
}

.dashboard-mock-activity {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.dashboard-activity-item {
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    cursor: default;
}

.dashboard-activity-item:hover {
    background: rgba(0, 255, 255, 0.08);
    color: var(--text);
    transform: translateX(4px);
}

.dashboard-activity-item .fa {
    color: var(--accent);
    font-size: 10px;
    flex-shrink: 0;
}

.dashboard-activity-item .fa-check-circle { color: #0f0; }
.dashboard-activity-item .fa-clock-o { color: var(--accent); }
.dashboard-activity-item .fa-plus-circle { color: var(--accent-secondary); }

.floating-card-inner {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
}

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

.floating-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 100px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--shadow-accent);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.3s;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 60px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    position: relative;
}

.stat-label {
    font-size: 18px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Features Section */
.features {
   padding: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 50px;
    margin-bottom: 80px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s, filter 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.features-grid:hover .feature-card {
    filter: blur(4px);
}
.features-grid .feature-card:hover {
    filter: none;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0,255,255,0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.08);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 50px var(--shadow-accent), 0 0 40px rgba(0, 255, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0,255,255,0.15), rgba(255,255,255,0.1));
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 30px;
    position: relative;
    transition: 0.3s;
}
.feature-icon .fa {
    color: var(--accent);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    border-color: #ff00ff;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-tag {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 15px;
    background: rgba(0,255,255,0.1);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-size: 12px;
    color: var(--accent);
}

/* Plans / Benefícios em destaque */
.plans {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-radius: 30px;
    margin: 50px 0;
}

.plans .section-lead {
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin: 16px auto 0;
    line-height: 1.6;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 50px var(--shadow-accent);
}

.plan-card.popular {
    border: 2px solid var(--accent-secondary);
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--text-inverse);
    padding: 5px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
}

.plan-name {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.plan-period {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* O que é o Millennium CRM (acima de Soluções) */
.about-crm {
    padding: 30px 0;
    text-align: center;
}

.about-crm-lead {
    max-width: 720px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.about-crm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .about-crm-grid {
        grid-template-columns: 1fr;
    }
}

/* Controle e Tecnologia (seção única, centralizada) */
.tech-section {
    padding: 100px 0;
    display: block;
}

.tech-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.tech-content--center {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.tech-content--center .section-title {
    margin-bottom: 20px;
}

.tech-lead {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.tech-content h2 {
    font-size: 39px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 30px;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tech-grid--center {
    max-width: 900px;
    margin: 0 auto;
    gap: 24px;
}
@media (max-width: 600px) {
    .tech-grid--center {
        grid-template-columns: 1fr;
    }
}

.tech-item {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.3s;
}

.tech-section .tech-item,
.about-crm .tech-item {
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tech-item:hover {
    border-color: var(--accent);
}

.tech-section .tech-item:hover,
.about-crm .tech-item:hover {
    box-shadow: 0 8px 30px var(--shadow-accent);
    border-color: var(--accent);
}

.tech-item h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 18px;
}
.tech-item h4 .fa {
    margin-right: 8px;
}

.tech-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 8px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 30px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-title {
    font-size: 50px;
    margin-bottom: 20px;
    position: relative;
}

.cta-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
}

/* Contato - formulário */
.contato-section {
    padding: 30px 0;
}

.contato-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contato-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contato-info .section-title::after {
    left: 0;
    transform: none;
}

.contato-info .section-lead {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contato-canais p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.contato-form label {
    color: var(--text-muted);
    font-size: 14px;
}

.contato-form input,
.contato-form textarea {
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
}

.contato-form input::placeholder,
.contato-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--shadow-accent);
}

.contato-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
/*    margin-top: 100px;*/
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 20px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.social-link .fa {
    font-size: 1.1rem;
}
.social-link:hover {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 0;
}

/* Reveal no scroll (mantido) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Barra inferior fixa (opcional – estilo novo) */
.landing-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: 52px;
    background: var(--header-bg);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.landing-bottom-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.landing-bottom-bar-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bar-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.bar-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: none;
    background: transparent;
    opacity: 1;
}

.landing-bottom-bar .bar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.landing-bottom-bar .bar-links {
    display: flex;
    gap: 24px;
}

.landing-bottom-bar .bar-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
}

.landing-bottom-bar .bar-links a:hover {
    color: var(--accent);
}

.landing-bottom-bar .bar-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--text-inverse);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.landing-bottom-bar .bar-cta .fa {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Animações */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--shadow-accent-strong); }
    50% { box-shadow: 0 0 40px var(--shadow-accent-strong); }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}

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

    .header-nav-row {
        justify-content: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contato-inner {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    .landing-bottom-bar .bar-links {
        display: none;
    }

    .landing-bottom-bar-inner {
        padding: 0 20px;
    }
}

/* ==========================================================================
   RESPONSIVIDADE GERAL  trata o site como app mobile sem quebrar desktop
   ========================================================================== */

/* Tablet / Mobile largo */
@media (max-width: 900px) {
    .container {
        padding-left: max(18px, env(safe-area-inset-left, 0px));
        padding-right: max(18px, env(safe-area-inset-right, 0px));
    }

    header {
        padding-top: max(16px, env(safe-area-inset-top, 0px));
        padding-bottom: 14px;
        padding-left: 0;
        padding-right: 0;
    }

    /*
     * Imagens dedicadas ao mobile (ja recortadas/formatadas para vertical).
     * Substituem imagemcachoeiro.png (dark) e imagemcachoeiro2.png (claro).
     * Em desktop continuam as imagens originais.
     */
    .container::before {
        background-image:
            linear-gradient(
                105deg,
                rgba(8, 12, 18, 0.9) 0%,
                rgba(8, 12, 18, 0.62) 48%,
                rgba(8, 12, 18, 0.4) 100%
            ),
            url('../img/cachoeirocelulardark.png');
    }

    .container::after {
        background-image: url('../img/cachoeirocelularclaro.png');
    }

    /* Header se ajusta para 1 linha (logo + a\u00e7\u00f5es) */
    .header-inner {
        gap: 12px;
        align-items: stretch;
    }

    .header-brand {
        justify-content: space-between;
        gap: 8px;
    }

    .header-brand .logo-wrap-top {
        flex-shrink: 0;
    }

    /* Botão ⋮ ao lado do logo (só visível ≤900px via regra base + abaixo) */
    .header-brand .header-nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin-right: 2px;
    }

    .header-brand .logo.logo-pulse {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        font-size: clamp(16px, 4.6vw, 22px);
    }

    .logo-wrap-top .logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-wrap-top .logo {
        font-size: 22px;
        letter-spacing: 1px;
    }

    /*
     * Navegação no mobile: botão ⋮ abre painel com a mesma fila em uma linha + scroll horizontal.
     */
    .header-nav-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        padding: 0 0 8px;
        gap: 0;
        box-sizing: border-box;
    }

    .header-nav-panel:not(.is-open) {
        display: none;
    }

    .header-nav-panel.is-open {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-padding-inline: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .header-nav-panel.is-open::-webkit-scrollbar {
        display: none;
    }

    .header-nav-panel nav {
        display: flex;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        gap: 10px;
        justify-content: flex-start;
        align-items: center;
        margin: 0;
        padding: 0 10px 0 2px;
        white-space: nowrap;
        width: max-content;
        max-width: none;
        box-sizing: border-box;
    }

    .header-nav-panel nav a {
        flex: 0 0 auto;
        font-size: clamp(12px, 3.35vw, 14px);
        font-weight: 600;
        padding: 8px 11px;
        text-align: center;
        border-radius: 999px;
        line-height: 1.2;
        background: rgba(0, 255, 255, 0.07);
        border: 1px solid rgba(0, 255, 255, 0.16);
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .header-nav-panel nav a:hover {
        background: rgba(0, 255, 255, 0.14);
        border-color: rgba(0, 255, 255, 0.35);
    }

    [data-theme="light"] .header-nav-panel nav a {
        background: rgba(0, 255, 255, 0.07);
        border-color: rgba(0, 255, 255, 0.16);
    }

    [data-theme="light"] .header-nav-panel nav a:hover {
        background: rgba(0, 255, 255, 0.14);
        border-color: rgba(0, 255, 255, 0.35);
    }

    /* Barra animada do desktop: no mobile usamos só o fundo da pílula */
    .header-nav-panel nav a::before {
        display: none;
    }

    /* Texto do hero: evita cortes nas bordas em telas estreitas */
    .hero-pane-inner {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
        min-height: auto;
        gap: 28px;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-content,
    .ai-strip-copy {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Tipografia fluida */
    .hero-title {
        font-size: clamp(32px, 7.2vw, 48px);
    }

    .hero-subtitle {
        font-size: clamp(15px, 2.4vw, 17px);
    }

    .section-title {
        font-size: clamp(28px, 5.4vw, 38px);
    }

    /* Espa\u00e7amento das se\u00e7\u00f5es comprimido */
    section,
    .features,
    .plans,
    .about-crm,
    .tech-section,
    .cta-section,
    .contato-section {
        padding-top: clamp(48px, 9vw, 72px);
        padding-bottom: clamp(48px, 9vw, 72px);
    }

    /* Hero: topo do título na linha dos ombros (≈33–34vh no ecrã − altura real do header) */
    .hero {
        min-height: auto;
        --hero-mobile-header-offset: calc(152px + env(safe-area-inset-top, 0px));
        padding-top: clamp(56px, calc(33.5vh - var(--hero-mobile-header-offset)), 280px);
        padding-bottom: clamp(28px, 7vw, 48px);
    }

    .hero-notebook {
        max-width: min(420px, 92vw);
    }

    .hero-phone {
        max-width: min(260px, 70vw);
    }

    /* Grids: 2 colunas onde fizer sentido */
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-crm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-grid,
    .tech-grid--center {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contato-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Carrossel: tira efeito hover-blur que prejudica em mobile */
    .features-grid:hover .feature-card,
    .features-grid .feature-card {
        filter: none;
    }

    .feature-card:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }

    /* Bottom bar simplificada */
    .landing-bottom-bar {
        height: 56px;
    }

    /* Reserva espa\u00e7o no fim do site para a bottom bar fixa n\u00e3o cobrir conte\u00fado */
    .landing-bottom-bar.is-visible ~ * { /* nada */ }

    body {
        scroll-padding-bottom: 72px;
    }
}

/* Mobile padr\u00e3o */
@media (max-width: 600px) {
    .container {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    /* Ecrã estreito: mesmo alinhamento, header um pouco mais alto */
    .hero {
        --hero-mobile-header-offset: calc(158px + env(safe-area-inset-top, 0px));
        padding-top: clamp(60px, calc(34vh - var(--hero-mobile-header-offset)), 290px);
    }

    .hero-buttons,
    .ai-strip-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn,
    .ai-strip-cta .btn,
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid,
    .about-crm-grid,
    .tech-grid,
    .tech-grid--center {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Notebook + iPhone ainda menores e centrais */
    .hero-notebook {
        max-width: min(360px, 88vw);
    }

    .hero-phone {
        max-width: min(220px, 70vw);
    }

    /* Carrossel controles: dentro da \u00e1rea \u00fatil, menores */
    .hero-carousel-control-prev,
    .hero-carousel-control-next {
        width: 36px;
        height: 36px;
    }

    .hero-carousel-control-prev {
        left: max(2px, env(safe-area-inset-left, 0px));
    }

    .hero-carousel-control-next {
        right: max(2px, env(safe-area-inset-right, 0px));
    }

    .hero-carousel-viewport {
        padding-left: 0;
        padding-right: 0;
    }

    /* Footer mais compacto */
    footer {
        padding: 48px 0 24px;
    }

    .footer-col h4 {
        font-size: 18px;
    }

    /* Logo do header sem corte */
    .logo-wrap-top .logo {
        font-size: 18px;
    }
}

/* Mobile pequeno (Galaxy Fold etc.) */
@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(26px, 8vw, 36px);
    }

    .section-title {
        font-size: clamp(24px, 6.5vw, 30px);
    }

    .logo-wrap-top .logo {
        font-size: 16px;
    }

    .logo-wrap-top .logo-img {
        width: 32px;
        height: 32px;
    }

    .header-brand .logo.logo-pulse {
        font-size: clamp(14px, 4.2vw, 17px);
    }

    .header-brand .header-nav-toggle {
        width: 36px;
        height: 36px;
    }

    .header-nav-panel nav {
        gap: 8px;
    }

    .header-nav-panel nav a {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Garantir que nada estoure horizontalmente */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}
