/* Suavizar a transição das modais */
.bg-gradient {
    background: linear-gradient(135deg, var(--color-terciary) 0%, var(--color-accent) 50%);
}

.modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.modal-visible {
    opacity: 1;
    transform: translateY(0);
}

.plan-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px var(--color-gray);
}

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

.feature-icon {
    color: #091235;
}

.extra-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.extra-info.open {
    max-height: 1000px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--color-accent);
    color: var(--color-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px var(--color-gray);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

.hero-gradient {
    position: relative;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-circle);
    backdrop-filter: blur(2px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 1200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.15' fill='%23ffffff'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff' opacity='.1'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: bottom center;
    transform: scaleY(1.5) scaleX(1.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-light);
    border-radius: 15px;
    cursor: pointer;
    z-index: 10;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: var(--color-light);
    border-radius: 100%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }

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

.btn-primary-hero {
    background-color: var(--color-light);
    color: var(--color-accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--color-gray-dark);
}

.btn-primary-hero:hover {
    background-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-accent);
}

.btn-secondary-hero {
    background-color: transparent;
    border: 2px solid var(--color-light);
    color: var(--color-light);
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background-color: var(--color-primary);
    border-color: var(--color-light);
    transform: translateY(-2px);
}

.btn-primary-hero:hover,
.btn-secondary-hero:hover {
    transform: translateY(-2px) scale(1.02);
}

.content-container {
    position: relative;
    z-index: 10;
}

.scroll-down {
    z-index: 20;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid var(--color-light);
    box-shadow: 0 15px 20px -5px var(--color-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px var(--color-accent);
    border-color: rgba(165, 180, 252, 0.5);
}

.infra-card {
    transition: all 0.3s ease;
    background: var(--color-light);
    backdrop-filter: blur(10px);
}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px var(--color-accent);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px;
}

.glass-card {
    background: var(--color-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--color-light);
    box-shadow: 0 8px 32px 0 var(--color-gray);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px var(--color-accent);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.tooltip {
    position: relative;
    z-index: 99;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    width: 12.5rem;
    max-width: 90vw;
    background: var(--color-accent);
    color: var(--color-light);
    text-align: center;
    border-radius: .375rem;
    padding: .5rem;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
    font-size: .875rem;
    z-index: 10;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: .3125rem solid transparent;
    border-top-color: var(--color-accent);
}

@media (max-width: 1023px) {
    .tooltip-text {
        width: 10rem;
        left: -5vw;
    }

    .tooltip-text::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .tooltip {
        transform: translateX(-1.25rem);
    }

    .tooltip-text {
        left: -23vw;
        transform: none;
        width: auto;
        max-width: 80vw;
        text-align: left;
        bottom: 110%;
        padding: .625rem .75rem;
    }

    .tooltip-text::after {
        display: none;
    }

    .persona-card {
        margin-bottom: 20px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.persona-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.persona-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.persona-card:hover::before {
    transform: scaleX(1);
}

.persona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icon-container {
    animation: float 4s ease-in-out infinite;
}

.tag {
    transition: all 0.3s ease;
}

.persona-card:hover .tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(67, 56, 202, 0.03) 100%);
    z-index: -1;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.before-card {
    border-left: 4px solid #EF4444;
}

.after-card {
    border-left: 4px solid #109010;
}

.benefit-item {
    position: relative;
    padding-left: 40px;
}

.benefit-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

/* FAQ accordion animation */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Article card hover effect */
.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 102, 204, 0.1);
}