:root {
    --rosa: #F36AAF;
    --magenta: #A844A1;
    --roxo: #5C53A4;
    --azul: #4E9DD6;
    --verde-limao: #C3D941;
    --amarelo: #F4D44D;
    --degrade-principal: linear-gradient(90deg, var(--azul), var(--verde-limao));
    --cor-texto: #343a40;
    --cor-fundo: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-texto);
    background-color: #fff;
}

.navbar {
    transition: background-color 0.3s ease-in-out;
    background-color: rgba(255, 255, 255);
}

.navbar-scrolled {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
}

.btn-cta {
    background-color: var(--verde-limao);
    border-color: var(--verde-limao);
    color: var(--cor-texto);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(195, 217, 65, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 217, 65, 0.6);
    color: var(--cor-texto);
}

.btn-cta-gradient {
    background-image: linear-gradient(90deg, var(--rosa), var(--magenta), var(--roxo));
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-cta-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 83, 164, 0.4);
}

#hero {
    padding: 10rem 0;
    background-color: var(--cor-fundo);
}

#hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
}

#hero .subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Modifier para páginas legais (Terms and Privacy) */
.legal-content h3 {
    margin-top: 2rem;
}
.legal-content p,
.legal-content li {
    color: #6c757d;
    font-weight: 500;
}

#hero .hero-clients {
    margin-top: 3rem;
    gap: 1.5rem;
}

#hero .hero-clients img {
    max-height: 45px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#hero .hero-clients img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    #hero {
        padding: 8rem 0 6rem 0;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero .hero-clients {
        gap: 1rem;
    }
    #hero .hero-clients img {
        max-height: 35px;
    }
    #hero .subtitle {
        max-width: 100%;
    }
}

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    color: #6c757d;
}

.service-card {
    border: none;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-card .card-icon {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--rosa), var(--magenta), var(--roxo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

#stats {
    background-color: var(--cor-fundo);
}

.stat-item h3 {
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--roxo);
}

#clients .client-logo {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#clients .client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

#pricing .card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#pricing .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

#pricing .card-popular {
    border-color: var(--roxo);
    border-width: 2px;
    transform: scale(1.05);
}

#pricing .card-popular:hover {
    transform: scale(1.07);
}

#pricing .badge-popular {
    background-color: var(--roxo);
}

#pricing .price {
    font-size: 2.5rem;
    font-weight: 700;
}

#pricing .price-period {
    font-size: 1rem;
    color: #6c757d;
}

#pricing .price-subtext{
    font-size: 0.9rem;
    color: #6c757d;
}

#pricing .feature-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

#pricing .feature-list li {
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

#pricing .feature-list i {
    color: var(--verde-limao);
    margin-right: 0.5rem;
}

#onboarding .timeline {
    position: relative;
    padding: 2rem 0;
}

#onboarding .timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--cor-fundo);
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
}

#onboarding .timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}

#onboarding .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

#onboarding .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

#onboarding .timeline-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

#onboarding .timeline-dot {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--roxo);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--roxo);
}

#onboarding .timeline-item:nth-child(odd) .timeline-dot {
    right: -12.5px;
}

#onboarding .timeline-item:nth-child(even) .timeline-dot {
    left: -12.5px;
}

@media (max-width: 768px) {
    #onboarding .timeline::before {
        left: 12.5px;
    }
    #onboarding .timeline-item, #onboarding .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 3rem;
        padding-right: 1rem;
        text-align: left;
    }
    #onboarding .timeline-item:nth-child(odd) {
        padding-right: 1rem;
        text-align: left;
    }
    #onboarding .timeline-item .timeline-dot, #onboarding .timeline-item:nth-child(odd) .timeline-dot, #onboarding .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
    }
}

#faq .accordion-button:not(.collapsed) {
    background-color: var(--roxo);
    color: white;
}

#faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(92, 83, 164, 0.3);
}

footer {
    background-color: #343a40;
    color: #adb5bd;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--verde-limao);
}

footer .social-icon {
    font-size: 1.5rem;
}

/* Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    .fade-in-section {
        transition: none !important;
        transform: none !important;
    }
}

/* Browser Mockup Hero Section */
.browser-mockup {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transform: perspective(1000px) rotateX(4deg) scale(0.98);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1);
    box-shadow: 0 35px 65px rgba(0,0,0,0.3);
}

.browser-header {
    background-color: #f1f3f4;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.close { background-color: #ff5f56; }
.dot.minimize { background-color: #ffbd2e; }
.dot.maximize { background-color: #27c93f; }

.browser-address {
    background-color: #ffffff;
    border-radius: 6px;
    flex-grow: 1;
    margin-left: 20px;
    padding: 6px 15px;
    font-size: 0.85rem;
    color: #6c757d;
    max-width: 350px;
    margin-right: auto;
    font-weight: 500;
    text-align: left;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.browser-content {
    display: block;
    width: 100%;
    height: auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media (max-width: 768px) {
    .browser-address {
        display: none;
    }
    .browser-mockup {
        transform: none;
    }
}

/* Hub Flow Section Styles */
.hub-flow .flow-step {
    background-color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.hub-flow .flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hub-flow .flow-step .icon {
    margin-bottom: 1rem;
    display: inline-block;
}

.hub-flow .flow-step .icon i {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--rosa), var(--magenta), var(--roxo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hub-flow .flow-step h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--cor-texto);
    font-size: 1.15rem;
}

.hub-flow .flow-step p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 83, 164, 0.85); /* var(--roxo) with opacity */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
    position: relative;
}

.lightbox-content img {
    max-height: 80vh;
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--verde-limao);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Vue Fade Transition */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* Ecosystem Hub Styles */
.ecosystem-wrapper {
    position: relative;
    max-width: 1050px;
    margin: 4rem auto;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecosystem-core {
    position: relative;
    z-index: 10;
}

.core-dashboard {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.core-pulse, .core-pulse-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--degrade-principal);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-ring 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    opacity: 0;
}

.core-pulse-2 {
    animation-delay: -2s;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

.eco-node {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    width: 250px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 10;
    cursor: default;
}

.eco-node:hover {
    animation-play-state: paused;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    filter: brightness(1.02);
}

.node-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bg-gradient-1 { background: linear-gradient(135deg, var(--rosa), var(--magenta)); }
.bg-gradient-2 { background: linear-gradient(135deg, var(--azul), var(--roxo)); }
.bg-gradient-3 { background: linear-gradient(135deg, var(--verde-limao), #2ecc71); }
.bg-gradient-4 { background: linear-gradient(135deg, var(--amarelo), #f39c12); }

.node-content h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--roxo);
}

.node-content p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Position and Animate nodes */
@keyframes floatY {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.eco-node-1 { top: -20px; left: -20px; animation: floatY 6s ease-in-out infinite; }
.eco-node-2 { top: -20px; right: -20px; animation: floatY 6s ease-in-out infinite 1.5s; }
.eco-node-3 { bottom: -20px; left: -20px; animation: floatY 6s ease-in-out infinite 3s; }
.eco-node-4 { bottom: -20px; right: -20px; animation: floatY 6s ease-in-out infinite 4.5s; }

/* Connecting lines */
.ecosystem-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px dashed rgba(92, 83, 164, 0.2);
    border-radius: 50%;
    z-index: 1;
}

/* Mobile responsive for ecosystem */
@media (max-width: 991.98px) {
    .ecosystem-wrapper {
        flex-direction: column;
        height: auto;
        gap: 2rem;
        margin: 2rem auto;
    }
    .ecosystem-wrapper::before { display: none; }
    .eco-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        max-width: 500px;
        flex-direction: row;
        align-items: center;
        animation: none;
    }
    .node-icon {
        margin-bottom: 0;
        margin-right: 1.5rem;
        flex-shrink: 0;
    }
    .core-pulse, .core-pulse-2 { display: none; }
    .core-dashboard { margin: 2rem 0; }
}

/* Vue Cloak (Hide uncompiled elements) */
[v-cloak] {
    display: none !important;
}
