:root {
    --primary-color: #1e40af;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --shadow-primary: 0 25px 50px -12px rgba(30, 64, 175, 0.25);
    --shadow-secondary: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* ====
        BASE STYLES
        ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ====
        UTILITY CLASSES
        ==== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.text-gradient {
    color: var(--primary-color);

}

.section-padding {
    padding: 6rem 1rem;
}

/* ====
        ENHANCED ANIMATIONS
        ==== */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.rotate-animation {
    animation: rotate 20s linear infinite;
}

@keyframes floating {

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

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

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* ====
        COMPONENT STYLES
        ==== */
.glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-secondary);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
}

/* Statistics Counter */
.stats-counter {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step Number */
.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-primary);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

/* Feature Icon */
.feature-icon {
    background: var(--gradient-secondary);
    width: 100px;
    height: 100px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-secondary);
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-primary);
}

/* ====
        ENHANCED BUTTON STYLES
        ==== */
.btn-modern {
    padding: 1.25rem 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-primary);
}

/* ====
        ENHANCED CARD STYLES
        ==== */
.pricing-card {
    position: relative;
    background: white;
    border-radius: 25px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-secondary);
    border: 2px solid var(--secondary-color);
    transition: all 0.4s ease;
    overflow: visible;
    /* Mudança aqui */
    margin-top: 30px;
    /* Adiciona espaço para o badge */
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pricing-card:hover::before {
    opacity: 0.05;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.pricing-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
    z-index: 10;
    /* Garante que fique na frente */
}

/* ====
        ENHANCED TESTIMONIAL STYLES
        ==== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-secondary);
    transition: all 0.4s ease;
    border-left: 5px solid var(--secondary-color);
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

/* ====
        ENHANCED FAQ STYLES
        ==== */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-secondary);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.faq-question {
    background: var(--gradient-secondary);
    padding: 2rem;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-secondary);
}

.faq-answer.active {
    padding: 2rem;
    max-height: 600px;
}

/* ====
        ENHANCED BACKGROUND STYLES
        ==== */
#home {
    position: relative;
    background: var(--gradient-primary);
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
    z-index: 1;
}

#home>* {
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ====
        RESPONSIVE IMPROVEMENTS
        ==== */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 1rem;
    }

    .btn-modern {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .stats-counter {
        font-size: 2.5rem;
    }

    .faq-question {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    #view-toggle-buttons {
        display: none !important;
    }

    #desktop-window.mobile-force-hide {
        display: none !important;
    }

    #mobile-window.mobile-force-show {
        display: block !important;
    }

    #demo-background.mobile-style {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* ====
        LOADING ANIMATION
        ==== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ====
        SCROLL INDICATOR
        ==== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform-origin: 0%;
    z-index: 9998;
    transition: transform 0.1s ease;
}