/**
 * VGSYS Funcionalidades - Ultra Modern Design
 * Design System Consistente | Performance First | Mobile Optimized
 * Arquivo: funcionalidades-style.css
 */

/* ===== HERO SECTION FUNCIONALIDADES ===== */
.funcionalidades-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-dark);
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    z-index: 2;
}

.hero-animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-green);
    animation: heroFloat 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes heroFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(360deg); }
}

.hero-particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(72, 187, 120, 0.1), transparent);
    background-repeat: repeat;
    background-size: 120px 120px;
    animation: particles 25s infinite linear;
    z-index: 4;
}

@keyframes particles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-120px); }
}

.hero-container {
    position: relative;
    z-index: 5;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShimmer 3s infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.title-line-1, .title-line-3 {
    display: block;
}

.title-line-2 {
    display: block;
    background: linear-gradient(45deg, #48bb78, #38a169);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.3rem;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== OVERVIEW SECTION ===== */
.overview-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.overview-content {
    padding-right: 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-medium);
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 2rem;
}

.overview-highlights {
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--primary-medium);
}

.highlight-item i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.overview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-modern, .btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(72, 187, 120, 0.5);
    color: white;
}

.btn-secondary-modern {
    background: transparent;
    color: var(--primary-medium);
    border: 2px solid #e5e7eb;
}

.btn-secondary-modern:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ===== OVERVIEW VISUAL ===== */
.overview-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.frame-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.frame-title {
    font-weight: 600;
    color: var(--primary-medium);
}

.software-preview {
    position: relative;
    padding: 2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-card {
    background: var(--gradient-green);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.preview-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.preview-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.preview-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

.preview-center {
    text-align: center;
}

.center-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
}

/* ===== FUNCIONALIDADES SECTION ===== */
.funcionalidades-section {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.funcionalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.funcionalidade-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 2px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.funcionalidade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.gradient-blue { background: linear-gradient(45deg, #3b82f6, #1d4ed8); }
.gradient-green { background: var(--gradient-green); }
.gradient-purple { background: linear-gradient(45deg, #8b5cf6, #7c3aed); }
.gradient-orange { background: linear-gradient(45deg, #f59e0b, #d97706); }
.gradient-teal { background: linear-gradient(45deg, #14b8a6, #0d9488); }
.gradient-red { background: linear-gradient(45deg, #ef4444, #dc2626); }

.card-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.05) 0%, transparent 70%);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.card-icon {
    background: var(--gradient-green);
}

.funcionalidade-card:nth-child(1) .card-icon { background: linear-gradient(45deg, #3b82f6, #1d4ed8); }
.funcionalidade-card:nth-child(2) .card-icon { background: var(--gradient-green); }
.funcionalidade-card:nth-child(3) .card-icon { background: linear-gradient(45deg, #8b5cf6, #7c3aed); }
.funcionalidade-card:nth-child(4) .card-icon { background: linear-gradient(45deg, #f59e0b, #d97706); }
.funcionalidade-card:nth-child(5) .card-icon { background: linear-gradient(45deg, #14b8a6, #0d9488); }
.funcionalidade-card:nth-child(6) .card-icon { background: linear-gradient(45deg, #ef4444, #dc2626); }

.icon-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 20px;
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glow-blue { background: linear-gradient(45deg, #3b82f6, #1d4ed8); }
.glow-green { background: var(--gradient-green); }
.glow-purple { background: linear-gradient(45deg, #8b5cf6, #7c3aed); }
.glow-orange { background: linear-gradient(45deg, #f59e0b, #d97706); }
.glow-teal { background: linear-gradient(45deg, #14b8a6, #0d9488); }
.glow-red { background: linear-gradient(45deg, #ef4444, #dc2626); }

.funcionalidade-card:hover .icon-glow {
    opacity: 0.7;
}

.card-content {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 1rem;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(72, 187, 120, 0.1);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.funcionalidade-card:hover .card-glow {
    opacity: 0.2;
}

/* ===== DIFERENCIAIS SECTION ===== */
.diferenciais-section {
    position: relative;
    padding: 6rem 0;
    background: var(--primary-dark);
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    z-index: 2;
}

.background-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 30px 50px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 80px 30px, rgba(72, 187, 120, 0.1), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: particles 30s infinite linear;
    z-index: 3;
}

.diferenciais-section .container {
    position: relative;
    z-index: 4;
}

.section-title-white {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.gradient-text-light {
    background: linear-gradient(45deg, #ffffff, #f7fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-white {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.diferencial-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
    margin-bottom: 2rem;
}

.diferencial-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: var(--accent-green);
}

.diferencial-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.diferencial-content {
    flex: 1;
}

.diferencial-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.diferencial-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.funcionalidades-cta-section {
    position: relative;
    padding: 6rem 0;
    background: var(--primary-dark);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    z-index: 2;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.1;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-green);
    animation: ctaFloat 15s infinite ease-in-out;
}

.cta-shape.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.cta-shape.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation-delay: -7s;
}

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.funcionalidades-cta-section .container {
    position: relative;
    z-index: 4;
}

.cta-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(72, 187, 120, 0.4);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-cta-primary, .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 8px 30px rgba(72, 187, 120, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(72, 187, 120, 0.6);
    color: white;
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-cta-primary:hover .btn-glow {
    transform: translateX(100%);
}

.cta-guarantee {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.guarantee-item i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .funcionalidades-hero-section {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .hero-stat-card {
        padding: 1.5rem;
    }
    
    .overview-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .overview-actions {
        justify-content: center;
    }
    
    .funcionalidades-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .funcionalidade-card {
        padding: 2rem;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .diferencial-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .diferencial-item:hover {
        transform: translateY(-5px);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-guarantee {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .funcionalidades-grid {
        grid-template-columns: 1fr;
    }
    
    .funcionalidade-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .diferencial-item {
        flex-direction: column;
        text-align: center;
    }
    
    .diferencial-icon {
        margin: 0 auto 1rem;
    }
    
    .cta-guarantee {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.funcionalidade-card,
.diferencial-item,
.hero-stat-card {
    will-change: transform;
}

.btn-cta-primary,
.btn-cta-secondary,
.btn-primary-modern,
.btn-secondary-modern {
    will-change: transform;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-animated-shapes,
    .hero-particle-system,
    .background-particles,
    .cta-shapes {
        animation: none;
    }
    
    .floating-shape,
    .cta-shape {
        opacity: 0.05;
    }
}