/*
===============================================================================
                            INDEX PAGE STYLES
===============================================================================
*/

/* Lazy Loading Styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

.bg-loaded {
    transition: background-image 0.3s ease-in-out;
}

.bg-error {
    background-color: #f0f0f0;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section - Index Page */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16rem;
    padding: 2rem 10% 100px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #000000;
    color: #fff;
    min-height: 100vh;
}

.content {
    max-width: 500px;
}

/* Animações de entrada fade-right */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Animação fade-up para botão */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Animação fade-left para chatbot */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

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

/* Animação staggered para contact cards */
@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

/* Animações para seção de contato - Index Page */
/* Estados iniciais - elementos ocultos */
.contact-header,
.chatbot-main-container,
.contact-info-grid,
.contact-card {
    opacity: 0;
    transform: translateY(40px);
}

/* Animações aplicadas quando visível */
.contact-header.animate {
    animation: fadeInUp 1s ease-out 0.1s both;
}

.chatbot-main-container.animate {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.contact-info-grid.animate {
    animation: fadeInRight 1s ease-out 0.5s both;
}

.contact-card.animate:nth-child(1) {
    animation: fadeInStagger 0.8s ease-out 0.7s both;
}

.contact-card.animate:nth-child(2) {
    animation: fadeInStagger 0.8s ease-out 0.9s both;
}

.contact-card.animate:nth-child(3) {
    animation: fadeInStagger 0.8s ease-out 1.1s both;
}

.contact-card.animate:nth-child(4) {
    animation: fadeInStagger 0.8s ease-out 1.3s both;
}

/* Aplicar animações aos elementos do hero */
.content h1 {
    animation: fadeInRight 1s ease-out 0.2s both;
}

.content p {
    animation: fadeInRight 1s ease-out 0.4s both;
}

.content .btn-hero-fill {
    animation: fadeInUp 1s ease-out 0.6s both;
}

h1 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Hero title variants */
.hero-title-mobile {
    display: none;
}

.hero-title-desktop {
    display: inline;
}

p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- Contêiner da Animação JS --- */
.animation-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.center-logo {
    width: 153px !important;
    height: auto;
    z-index: 10;
    opacity: 0;
}

.center-logo.animate {
    animation: fade-up-logo 0.8s ease-out forwards;
}

#ring-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
    z-index: 2;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#ring-outer.animate {
    animation: intro-outer 1.5s ease-out forwards, orbit-horizontal 12s linear infinite 1.5s;
}

@keyframes orbit-horizontal {
    0% {
        transform: translate(-50%, -50%) rotateY(-90deg) rotateZ(0deg);
    }

    25% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateZ(90deg);
    }

    50% {
        transform: translate(-50%, -50%) rotateY(90deg) rotateZ(180deg);
    }

    75% {
        transform: translate(-50%, -50%) rotateY(180deg) rotateZ(270deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateY(270deg) rotateZ(360deg);
    }
}

#ring-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#ring-inner.animate {
    animation: intro-inner 1.5s ease-out forwards, orbit-diagonal-fixed 15s linear infinite 1.5s;
}

@keyframes orbit-diagonal-fixed {
    0% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
    }

    25% {
        transform: translate(-50%, -50%) rotateX(90deg) rotateY(0deg) rotateZ(90deg);
    }

    50% {
        transform: translate(-50%, -50%) rotateX(135deg) rotateY(45deg) rotateZ(180deg);
    }

    75% {
        transform: translate(-50%, -50%) rotateX(270deg) rotateY(0deg) rotateZ(270deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(405deg) rotateY(-45deg) rotateZ(360deg);
    }
}

#ring-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
    z-index: 4;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#ring-middle.animate {
    animation: intro-middle 1.5s ease-out forwards, orbit-vertical 7s linear infinite 1.5s;
}

@keyframes orbit-vertical {
    from {
        transform: translate(-50%, -50%) rotateX(0deg) rotateZ(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(360deg) rotateZ(360deg);
    }
}

/* Keyframes para as animações de introdução */
@keyframes fade-up-logo {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes intro-outer {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotateY(0deg);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotateY(-90deg) rotateZ(0deg);
    }
}

@keyframes intro-inner {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotateY(0deg);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
    }
}

@keyframes intro-middle {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotateY(0deg);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotateX(0deg) rotateZ(0deg);
    }
}

/* Mobile responsive adjustments for animation */
@media (max-width: 768px) {
    .animation-container {
        width: 56vw !important;
        height: 56vw !important;
        max-width: 420px;
        max-height: 420px;
        margin-bottom: -40vw;
        margin-top: -50vw;
    }

    #ring-outer {
        width: 85vw !important;
        height: 85vw !important;
        max-width: 400px !important;
        max-height: 400px !important;
    }

    #ring-middle {
        width: 75vw !important;
        height: 75vw !important;
        max-width: 350px !important;
        max-height: 350px !important;
    }

    #ring-inner {
        width: 65vw !important;
        height: 65vw !important;
        max-width: 300px !important;
        max-height: 300px !important;
    }

    .hero-section {
        overflow: hidden;
        padding: 60px 15px;
    }
}

/* --- Estilos para o Letreiro Dinâmico (Efeito Push) --- */
.dynamic-text-container {
    height: 40px;
    margin-bottom: 10px;
    position: relative;
    animation: fadeInRight 1s ease-out 0.1s both;
}

.dynamic-text-item {
    position: absolute;
    width: 100%;
    text-align: left;
    color: #00ffff;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .dynamic-text-container {
        width: 100%;
        max-width: 90vw;
        margin: 0 auto;
        text-align: left;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .dynamic-text-item {
        position: absolute;
        text-align: left;
        font-size: 8vw;
        left: 0;
        transform: translateY(100%);
        width: max-content;
        white-space: nowrap;
        max-width: 90vw;
    }

    .dynamic-text-item.current {
        transform: translateY(0);
        opacity: 1;
    }

    .dynamic-text-item.go-up {
        animation: go-up-mobile 0.35s ease-in-out forwards;
    }

    .dynamic-text-item.come-in {
        animation: come-in-mobile 0.35s ease-in-out forwards;
    }

    /* Hero title mobile adjustments */
    .hero-title-mobile {
        display: inline !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
        font-size: 8.5vw;
    }

    .hero-title-desktop {
        display: none !important;
    }

    p {
        font-size: 4.2vw;
        line-height: 1.55;
        margin-bottom: 6vw;
    }

    .btn-hero-fill {
        padding: 2.8vw 5.4vw;
        font-size: 3.8vw;
        border-width: 0.5vw;
        border-radius: 2vw;
        margin-bottom: 5vw;
    }
}

.dynamic-text-item.current {
    transform: translateY(0);
    opacity: 1;
}

.dynamic-text-item.go-up {
    animation: go-up 0.35s ease-in-out forwards;
}

.dynamic-text-item.come-in {
    animation: come-in 0.35s ease-in-out forwards;
}

@keyframes go-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes come-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile-specific animations */
@keyframes go-up-mobile {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes come-in-mobile {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Carousel Section - moved to style.css for global access */

/* Hero Section Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 60px 20px;
        min-height: 100vh;
        overflow: hidden;
        padding: 60px 15px;
    }

    .hero-content h1,
    .hero-content p,
    .hero-content .cta-button {
        animation-duration: 0.8s;
    }

    .content h1,
    .content p,
    .content .btn-hero-fill {
        animation-duration: 0.8s;
    }

    .content {
        max-width: 92vw !important;
    }

    h1 {
        font-size: 8.2vw;
        line-height: 1.15;
        margin-top: 0;
        margin-bottom: 3.8vw;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 20px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* Canvas para partículas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.contact-layout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: 40px;
}

.chatbot-main-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
    z-index: 3;
}

.contact-container-modern {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-grid {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 3;
}

.contact-card {
    background: linear-gradient(135deg, rgba(20, 20, 21, 0.8) 0%, rgba(30, 30, 31, 0.6) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Clickable cards */
.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.clickable-card:hover::before {
    left: 100%;
}

.contact-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.2));
    transform: scale(1.1);
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-card-content a,
.contact-card-content .saiba-mais-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.saiba-mais-link:hover {
    color: #00ffff;
}

.whatsapp-contact-link {
    background: none;
    border: none;
    color: #00ffff;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
}

.whatsapp-contact-link:hover {
    color: #7ffcff;
}

.contact-aside {
    display: none;
}

#n8n-chat-container {
    height: 650px;
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(15, 15, 16, 0.95) 0%, rgba(25, 25, 26, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.1), 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

#n8n-chat-container .n8n-chat {
    height: 100%;
    border-radius: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Enhanced chatbot container for index page */
#n8n-chat-container {
    height: 650px;
    width: 100%;
    max-width: 700px;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.9) 0%, rgba(20, 25, 35, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

#n8n-chat-container .chat-layout {
    height: 100%;
    background: transparent;
}

#n8n-chat-container .chat-layout .chat-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(12, 12, 12, 0.95));
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px 20px 0 0;
}

#n8n-chat-container .chat-layout .chat-header h1 {
    background: linear-gradient(135deg, #00ffff, #7ffcff);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    color: #7ffcff !important;
}

#n8n-chat-container .chat-layout .chat-body {
    background: var(--chat--body--background, #000);
}

#n8n-chat-container .chat-layout .chat-footer {
    background: var(--chat--footer--background, #000);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

#n8n-chat-container .chat-message.chat-message-from-bot {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Plans Section */
.plans-section {
    padding: 80px 20px;
    background-color: #111;
    text-align: center;
    overflow: hidden;
    /* Evita scroll horizontal */
}

.plans-section .section-title {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.plans-section .section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.plans-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 100px !important;
    /* Aumentado para acomodar botões externos */
    box-sizing: border-box;
    overflow: visible !important;
    /* Garante que botões externos sejam visíveis */
}

.plans-carousel-track-container {
    position: relative;
    overflow: hidden;
    /* Voltado para hidden para controlar visualização */
    width: 1000px;
    /* Reduzido para forçar o corte do 4º card */
    margin: 0 auto;
    padding: 20px 0;
    /* Removido padding lateral que pode estar interferindo */
}

.plans-carousel-track {
    padding: 0 20px;
    /* Adicionado padding para evitar corte do primeiro card no hover */
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
}

.plan-card {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 580px;
    /* Altura aumentada para acomodar conteúdo */
    min-height: 580px;
    /* Garante altura mínima */
    max-height: 580px;
    /* Limita altura máxima */
    overflow: hidden;
    /* Evita conteúdo vazando */
    position: relative;
    /* Para posicionamento da badge */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.plan-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.plan-card:hover {
    transform: scale(1.01);
    /* Reduzido para evitar corte */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Sombra menor */
    z-index: 5;
    /* Garante que fique na frente */
}

.plan-card h3 {
    color: #fff;
    font-size: 1.6rem;
    /* Reduzido para evitar corte */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
    /* Melhor espaçamento entre linhas */
    word-wrap: break-word;
    /* Quebra palavras longas se necessário */
    height: 40px;
    /* Altura fixa para alinhamento */
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card .price {
    color: #00ffff;
    font-size: 2.5rem;
    /* Reduzido para evitar quebra de linha */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    white-space: nowrap;
    /* Evita quebra de linha */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adiciona ... se necessário */
    height: 60px;
    /* Altura fixa para alinhamento */
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card .price .period {
    font-size: 1rem;
    color: #ccc;
    font-weight: normal;
    margin-left: 5px;
}

.plan-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plan-description {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
}

.plan-description p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.plan-card .features li {
    margin-bottom: 1rem;
    color: #ccc;
    display: flex;
    align-items: center;
}

.plan-card .features i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.features .fa-check {
    color: #00ffff;
}

.features .fa-times {
    color: #555;
}

.plan-button {
    padding: 12px 20px;
    background-color: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    width: calc(100% - 20px);
    /* Reduz largura para evitar overflow */
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    text-align: center;
    margin: auto 10px 0 10px;
    /* Centraliza com margem lateral */
    flex-shrink: 0;
    /* Evita encolhimento */
}

.plan-button:hover {
    background-color: #00ffff;
    color: #000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===============================
Contact Section Header
=============================== */

.contact-header {
    text-align: center;
    padding: 0 20px 20px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #eaffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    margin: 0 0 16px 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: #00ffff;
    bottom: -10px;
    left: 20%;
    box-shadow: 0 0 10px #00ffff;
}

.contact-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #b8e6e6;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===============================
KPIs e Tools - Movidos de nossa-empresa.css
=============================== */

/* KPIs */
.kpis {
    max-width: 1100px;
    margin: 10px auto 24px;
    padding: 10px 20px 0;
}

.kpi-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.kpi-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.kpi-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.kpi-card {
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.28), 0 0 40px rgba(37, 211, 102, 0.22);
    transform: translateY(-2px);
}

.kpi-value {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: #7ffcff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
}

.kpi-label {
    display: block;
    margin-top: 6px;
    color: #cfe7e7;
    font-size: 0.95rem;
}

/* Contact Section Mobile Styles */
@media (max-width: 768px) {
    .contact-layout-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
        margin: 0 auto;
        max-width: 100%;
    }

    .chatbot-main-container {
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .contact-info-grid {
        flex: none;
        width: 100%;
        max-width: 500px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .contact-card-icon {
        width: 50px;
        height: 50px;
    }

    .contact-card-icon i {
        font-size: 1.5rem;
    }

    #n8n-chat-container {
        height: 550px;
        max-width: 100%;
        border-radius: 20px;
    }

    .kpi-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .kpi-cards {
        grid-template-columns: 1fr;
    }
}

/* Hide Figma tool on mobile */
@media (max-width: 768px) {
    .tool.hide-mobile {
        display: none;
    }
}

/* Tools */
.tools {
    max-width: 1100px;
    margin: 10px auto 0px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.tools.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tool {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.tool.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tool {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid #1b2a2a;
    border-radius: 10px;
    padding: 12px 14px;
    color: #eaffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool i {
    color: #7ffcff;
}

.tool:hover {
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.16);
    transform: translateY(-2px);
}

/* Interactivity for tools */
.tools .tool {
    cursor: pointer;
}

.tools .tool:focus {
    outline: 2px solid rgba(0, 255, 255, 0.45);
    outline-offset: 2px;
}

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

/* Tools Modal (scoped) */
.tools-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
}

.tools-modal {
    width: min(560px, calc(100% - 40px));
    margin: 10vh auto;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.18);
    color: #eaffff;
}

.tools-modal__wrapper {
    padding: 20px;
}

.tools-modal__header {
    margin-bottom: 8px;
}

.tools-modal__title {
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.tools-modal__body {
    color: #cfe7e7;
    line-height: 1.6;
}

.tools-modal__close {
    position: absolute;
    right: 18px;
    top: 10px;
    cursor: pointer;
    font-size: 26px;
    color: #7ffcff;
}

/* Section Title - Index Page */
.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: #00ffff;
    bottom: -10px;
    left: 20%;
    box-shadow: 0 0 10px #00ffff;
}

/* Estilos do lab-visual para section-title */
.lab-visual .section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin: 10px auto 24px;
    color: #eaffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
}

/* ===============================
Modal Disclaimer Styling
=============================== */
.modal-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(127, 252, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-left: 4px solid #7ffcff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-disclaimer p {
    margin: 0;
    color: #e0e0e0;
}

.modal-disclaimer strong {
    color: #7ffcff;
}

.modal-disclaimer a {
    color: #7ffcff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-disclaimer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===============================
Circuit Divider - Index Page Only
=============================== */
.carousel-section {
    position: relative;
    overflow: visible;
    background-color: #111;
    padding-bottom: 6vh;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.carousel-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.carousel-container {
    position: relative;
    z-index: 2;
}

.circuit-divider {
    position: absolute;
    top: 80%;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: -1;
    overflow: visible;
    transform: translateY(-50%);
}

.circuit-divider svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffff, 0 0 12px #00ffff;
    opacity: 0;
    pointer-events: none;
}

/* ===============================
Button Styles - Index Page
=============================== */
.btn-hero-fill {
    display: inline-block;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: #00ffff;
    background-color: transparent;
    border: 2px solid #00ffff;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    z-index: 1;
}

.btn-hero-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00ffff;
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
}

.btn-hero-fill:hover {
    color: #000;
}

.btn-hero-fill:hover::before {
    transform: translateX(0);
}

/* ===============================
CTA Button - Index Page
=============================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    transition: 0.5s;
    z-index: 0;
}

.cta-button:hover {
    color: #000;
    background-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 4px 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    border-color: #00ffff;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button .whatsapp-icon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===============================
Pipeline Section - Index Page
=============================== */
.pipeline {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 20px;
    background: #101010;
}

.pipeline-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
    gap: 12px;
    position: relative;
}

.pipeline .connector {
    display: none;
}

.pipeline-step {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.pipeline-step.animate {
    animation: fadeInDown 0.5s ease-out forwards;
}

.pipeline-step.animate[data-step="1"] {
    animation-delay: 0.05s;
}

.pipeline-step.animate[data-step="2"] {
    animation-delay: 0.15s;
}

.pipeline-step.animate[data-step="3"] {
    animation-delay: 0.25s;
}

.pipeline-step.animate[data-step="4"] {
    animation-delay: 0.35s;
}

.pipeline-step.animate[data-step="5"] {
    animation-delay: 0.45s;
}

.pipeline-step.animate[data-step="6"] {
    animation-delay: 0.55s;
}

.pipeline-step::before {
    content: attr(data-step);
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    color: rgba(127, 252, 255, 0.7);
}

.pipeline-step .step-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.pipeline-step h3 {
    margin: 4px 0 6px;
    font-size: 1.04rem;
}

.pipeline-step p {
    margin: 0;
    color: #cfe7e7;
    font-size: 0.94rem;
    line-height: 1.5;
}

.pipeline-step.active {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.18), 0 0 30px rgba(37, 211, 102, 0.14);
    transform: translateY(-3px);
}

.pipeline-step:hover {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.28), 0 0 40px rgba(37, 211, 102, 0.22);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .pipeline-track {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .pipeline-track {
        grid-template-columns: 1fr;
    }
}

/* fadeInDown animation for pipeline steps */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* ===============================
CTA Section - Index Page
=============================== */
.cta-section {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size:
        24px 24px,
        24px 24px;
    background-position:
        top left,
        top left;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.cta-content {
    opacity: 0;
    transform: scale(0.9) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content.animate {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.cta-content.animate .cta-button {
    transform: translateY(0);
    opacity: 1;
}

/* Particle animation for CTA section */
.particle-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -30px;
    animation: abstract-float 20s linear infinite;
    background-color: #2f81f7;
    border-radius: 0;
}

@keyframes abstract-float {
    0% {
        bottom: -30px;
        transform: translateX(0) scale(0.5);
        opacity: 0;
    }

    25% {
        transform: translateX(3vw) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateX(-3vw) scale(0.8);
        opacity: 0.5;
    }

    75% {
        transform: translateX(2vw) scale(1.2);
        opacity: 0.7;
    }

    100% {
        bottom: 100%;
        transform: translateX(0) scale(0.5);
        opacity: 0;
    }
}

/* Particle variations */
.particle:nth-child(1) {
    left: 5%;
    width: 6px;
    height: 6px;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 10%;
    width: 8px;
    height: 8px;
    animation-delay: 1.2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    left: 15%;
    width: 5px;
    height: 5px;
    animation-delay: 2.5s;
    animation-duration: 10s;
}

.particle:nth-child(4) {
    left: 20%;
    width: 7px;
    height: 7px;
    animation-delay: 3.1s;
    animation-duration: 18s;
}

.particle:nth-child(5) {
    left: 25%;
    width: 9px;
    height: 9px;
    animation-delay: 4.8s;
    animation-duration: 13s;
}

/* CTA Section Mobile Styles */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}