/* =============================================================================
   LANDING PAGE STYLES - Meu Lucro Financeiro
   ============================================================================= */

:root {
    /* Cores do Sistema - Meu Lucro Financeiro */
    --primary-medium: #5a6fb7;
    --primary-light: #818fdb;
    --primary-dark: #344e92;
    --primary-very-dark: #0e2e6e;
    --secondary-color: #55C1A7;
    --secondary-light: #70CDB7;
    --secondary-dark: #41A68F;
    --success-color: #4CAF50;
    --light-bg: #F4F6F8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-very-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-medium);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
}

.btn-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-very-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 111, 183, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing Cards */
.pricing-card {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 3px solid var(--primary-medium);
    transform: scale(1.05);
}

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

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero Image Animation */
.hero-image {
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

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

/* Charts Container */
.charts-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Chart */
.main-chart {
    position: relative;
    z-index: 2;
}

.chart-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeInArea 2s ease-in-out 1.5s forwards;
}

.data-point {
    opacity: 0;
    animation: showPoints 0.5s ease-in-out forwards;
}

.data-point:nth-child(1) { animation-delay: 0.5s; }
.data-point:nth-child(2) { animation-delay: 0.7s; }
.data-point:nth-child(3) { animation-delay: 0.9s; }
.data-point:nth-child(4) { animation-delay: 1.1s; }
.data-point:nth-child(5) { animation-delay: 1.3s; }
.data-point:nth-child(6) { animation-delay: 1.5s; }
.data-point:nth-child(7) { animation-delay: 1.7s; }

/* Mini Charts */
.mini-charts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mini-chart {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.pie-chart {
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    animation-delay: -1s;
}

.bar-chart {
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 60px;
    animation-delay: -2s;
}

.line-chart {
    top: 60%;
    right: 20%;
    width: 80px;
    height: 60px;
    animation-delay: -3s;
}

.mini-svg {
    width: 100%;
    height: 100%;
}

/* Bar Chart Animation */
.bar-1, .bar-2, .bar-3, .bar-4, .bar-5 {
    transform-origin: bottom;
    transform: scaleY(0);
    animation: growBar 1s ease-in-out forwards;
}

.bar-1 { animation-delay: 2s; }
.bar-2 { animation-delay: 2.2s; }
.bar-3 { animation-delay: 2.4s; }
.bar-4 { animation-delay: 2.6s; }
.bar-5 { animation-delay: 2.8s; }

/* Pie Chart Animation */
.pie-slice-1, .pie-slice-2, .pie-slice-3 {
    transform-origin: center;
    transform: scale(0);
    animation: growPie 1s ease-in-out forwards;
}

.pie-slice-1 { animation-delay: 2.5s; }
.pie-slice-2 { animation-delay: 2.7s; }
.pie-slice-3 { animation-delay: 2.9s; }

/* Line Chart Animation */
.mini-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawMiniLine 2s ease-in-out 3s forwards;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-1 {
    top: 20%;
    left: 20%;
    animation-delay: -0.5s;
}

.floating-2 {
    top: 70%;
    right: 15%;
    animation-delay: -1.5s;
}

.floating-3 {
    bottom: 30%;
    left: 30%;
    animation-delay: -2.5s;
}

.floating-4 {
    top: 40%;
    right: 40%;
    animation-delay: -3.5s;
}

/* Animations */
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
    to { opacity: 1; }
}

@keyframes showPoints {
    to { opacity: 1; }
}

@keyframes growBar {
    to { transform: scaleY(1); }
}

@keyframes growPie {
    to { transform: scale(1); }
}

@keyframes drawMiniLine {
    to { stroke-dashoffset: 0; }
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    /* Charts responsive */
    .charts-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .chart-svg {
        max-width: 300px;
    }
    
    .mini-chart {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .pie-chart {
        width: 60px;
        height: 60px;
    }
    
    .bar-chart, .line-chart {
        width: 60px;
        height: 50px;
    }
    
    .floating-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .floating-1 { top: 15%; left: 15%; }
    .floating-2 { top: 75%; right: 10%; }
    .floating-3 { bottom: 25%; left: 25%; }
    .floating-4 { top: 35%; right: 35%; }
}

@media (max-width: 480px) {
    .charts-container {
        height: 250px;
    }
    
    .chart-svg {
        max-width: 250px;
    }
    
    .mini-chart {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
    
    .pie-chart {
        width: 50px;
        height: 50px;
    }
    
    .bar-chart, .line-chart {
        width: 50px;
        height: 40px;
    }
    
    .floating-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

/* Charts Section */
.chart-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.progress-modern {
    height: 8px;
    border-radius: 50px;
    background: #e9ecef;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-modern .progress-bar {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--secondary-color) 100%);
    border-radius: 50px;
    transition: width 1.5s ease-in-out;
}

.stat-item {
    padding: 1rem;
    border-radius: 15px;
    background: rgba(90, 111, 183, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(90, 111, 183, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Animated counters */
.counter {
    font-weight: 700;
    color: var(--primary-medium);
}

/* Chart animations */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chart-container .stat-number {
    animation: countUp 0.8s ease-out;
}

/* Progress bar animations */
.progress-bar {
    animation: progressFill 2s ease-in-out;
}

@keyframes progressFill {
    from { width: 0%; }
}

/* Footer Styles */
footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-very-dark) 100%) !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.footer-brand h4 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer Links */
footer a {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

footer a:hover {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

footer h6 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

footer small {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer Buttons */
footer .btn-light {
    background: white !important;
    color: var(--primary-dark) !important;
    border: 2px solid white;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

footer .btn-light:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-very-dark) !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

footer .btn-outline-light {
    border: 2px solid white;
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

footer .btn-outline-light:hover {
    background: white !important;
    color: var(--primary-dark) !important;
    border-color: white;
    text-shadow: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Social Links */
.social-links .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background: white !important;
    color: var(--primary-dark) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Security Badge */
.security-badge {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.security-badge i {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.security-badge .text-success {
    color: #28a745 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.security-badge .text-warning {
    color: #ffc107 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Legal Links */
.legal-links a {
    position: relative;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.legal-links a:hover {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.legal-links a:hover::after {
    width: 100%;
}

/* Footer HR */
footer hr {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Footer List Items */
footer li {
    margin-bottom: 0.5rem;
}

footer li a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer li a:hover {
    color: white !important;
    transform: translateX(5px);
}

footer li a i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer Responsive */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 !important;
    }
    
    footer .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .social-links .btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0.25rem;
    }
    
    .security-badge {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .legal-links {
        text-align: center !important;
        margin-top: 1.5rem;
    }
    
    .legal-links a {
        display: inline-block;
        margin: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer li a {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2.5rem 0 !important;
    }
    
    .footer-brand h4 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links .btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .security-badge {
        padding: 0.8rem;
    }
    
    .security-badge small {
        font-size: 0.85rem;
    }
    
    footer .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .legal-links a {
        font-size: 0.8rem;
        margin: 0.3rem 0.5rem;
    }
}

/* Force Footer Visibility */
footer.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-very-dark) 100%) !important;
}

footer * {
    position: relative;
    z-index: 2;
}

/* Utility Classes */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.bg-primary-opacity-10 {
    background: rgba(102, 126, 234, 0.1);
}
