/* ================================================
   Enterprise Home Page Custom Styles
   ================================================ */

:root {
    --primary-blue: #305680;
    --primary-blue-light: #3b82f6;
    --primary-blue-lighter: #93c5fd;
    --accent-green: #22c55e;
    --accent-green-dark: #059669;
    --accent-orange: #f59e0b;
    --accent-purple: #a78bfa;
    --dark-bg: #0f172a;
    --dark-bg-secondary: #1e293b;
    --light-bg: #f8fafc;
    --light-border: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
}

/* ================================================
   Particle Background Animation
   ================================================ */

.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(2) { animation-delay: 2s; opacity: 0.5; }
.particle:nth-child(3) { animation-delay: 4s; opacity: 0.7; }
.particle:nth-child(4) { animation-delay: 6s; opacity: 0.3; }
.particle:nth-child(5) { animation-delay: 8s; opacity: 0.6; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-200px) translateX(-50px);
    }
    75% {
        transform: translateY(-100px) translateX(100px);
    }
}

/* ================================================
   Statistics Counter Section
   ================================================ */

.stats-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ================================================
   Trust Indicators Section
   ================================================ */

.trust-section {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.trust-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.trust-logo {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

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

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-badge i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* ================================================
   Interactive Demo Section
   ================================================ */

.demo-section {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-secondary));
    border-radius: 24px;
    padding: 60px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.demo-content {
    position: relative;
    z-index: 1;
}

.demo-header {
    text-align: center;
    margin-bottom: 48px;
}

.demo-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.demo-subtitle {
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

.demo-preview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    min-height: 300px;
    position: relative;
}

.chart-container {
    width: 100%;
    height: 250px;
}

/* ================================================
   Enhanced Module Cards
   ================================================ */

.module-card {
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-blue-light), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.module-card:hover::after {
    transform: translateX(100%);
}

.module-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-orange), #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.module-stat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.module-stat strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ================================================
   Use Cases / Testimonials Section
   ================================================ */

.use-cases-section {
    margin: 60px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.use-case-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-border);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.use-case-industry {
    display: inline-block;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.use-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.use-case-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.use-case-metrics {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--light-border);
}

.metric-item {
    flex: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ================================================
   Scroll Animations
   ================================================ */

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

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .demo-section {
        padding: 32px 24px;
    }
    
    .demo-title {
        font-size: 1.5rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-section {
        padding: 32px 24px;
    }
    
    .trust-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ================================================
   Button Enhancements
   ================================================ */

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

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

.btn-hero-primary,
.btn-hero-secondary {
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before,
.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before,
.btn-hero-secondary:hover::before {
    width: 300px;
    height: 300px;
}
