/* Home Page Styles - Lille Group */

/* ============================================
   TYPOGRAPHY - Using variables from typography.css
   ============================================ */
.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page h5,
.home-page h6 {
    font-family: var(--font-display);
    line-height: var(--leading-tight);
}

.home-page p,
.home-page span,
.home-page li {
    font-family: var(--font-primary);
}

.home-page .lead {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    line-height: var(--leading-relaxed);
}

/* Prevent horizontal overflow */
.home-page {
    overflow-x: hidden;
}

.home-page .main-container {
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    padding: 10vh 0 100px;
    z-index: 1;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    z-index: 2;
}

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

.home-hero-row {
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.home-hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Video Background Hero */
.home-hero-video {
    background: #0a0f1a;
}

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

.home-hero-video-bg video {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center top;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(10, 15, 26, 0.7);
}

.home-hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(10, 15, 26, 0.9) 100%);
}

.home-hero-eyebrow {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: 15px;
}

.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: var(--weight-extrabold);
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-tight);
}

.home-hero-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-regular);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: var(--leading-normal);
}

.home-hero-tagline {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-style: italic;
    line-height: var(--leading-relaxed);
}

/* Hero Buttons */
.home-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-btn-glow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border: none;
    padding: 18px 40px;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.home-btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    color: white !important;
}

.home-btn-glow:hover::before {
    left: 100%;
}

.home-btn-outline {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 18px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.home-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
    transform: translateY(-3px);
}

/* Hero Wave */
.home-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.home-hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ============================================
   WHO WE ARE SECTION
   ============================================ */
.home-about {
    padding: 100px 0;
    background: #f8f9fa;
}

.home-about-intro {
    margin-bottom: 60px;
}

.home-about-intro h2 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 20px;
}

.home-about-intro .lead {
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

.home-trust-item {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-trust-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.home-trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.home-trust-icon i {
    font-size: 32px;
    color: white;
}

.home-trust-item:hover .home-trust-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.home-trust-item h4 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: 10px;
    color: #1e293b;
}

.home-trust-item p {
    color: #64748b;
    margin-bottom: 0;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* Stats Banner */
.home-stats-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 50px 0;
    margin-top: 60px;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-stats-banner:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.home-stat-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.home-stat-number {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
}

.home-stat-highlight .number {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-tighter);
}

.home-stat-highlight .number-suffix {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
    font-weight: var(--weight-extrabold);
}

.home-stat-highlight .label {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    opacity: 0.9;
    margin-top: 0;
    padding: 0;
}

.home-stat-highlight .home-stat-desc {
    opacity: 0.8;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ============================================
   OFFERINGS SECTION
   ============================================ */
.home-offerings {
    padding: 100px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.home-offerings-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
}

.home-offerings h2 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-tight);
    color: white;
    margin-bottom: 60px;
}

.home-offerings-row-spacing {
    margin-top: 30px;
}

.home-offerings-row-spacing-lg {
    margin-top: 60px;
}

.home-offering-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.home-offering-footnote {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.home-offering-card-half {
    min-height: 590px;
}

.home-offering-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.home-offering-card .card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.8s;
}

.home-offering-card:hover .card-shine {
    left: 100%;
}

.home-offering-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.home-offering-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.home-offering-icon i {
    font-size: 28px;
    color: white;
}

.home-offering-card h3 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: white;
    margin-bottom: 20px;
}

.home-offering-card .lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.home-offering-subtitle {
    font-size: 1.35em;
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.home-offering-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.home-offering-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-offering-features li strong {
    display: block;
    color: white;
    font-weight: var(--weight-semibold);
    margin-bottom: 4px;
}

.home-offering-features li:last-child {
    border-bottom: none;
}

.home-offering-features li::before {
    content: "\e64c";
    font-family: 'themify';
    position: absolute;
    left: 0;
    color: #10b981;
}

/* Simplified features list for PCS */
.home-offering-features-simple li {
    padding: 8px 0 8px 30px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: none;
}

.home-offering-features-simple li strong {
    display: inline;
    margin-bottom: 0;
}

.home-offering-desc {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
    line-height: 1.7;
}

.home-offering-desc small {
    display: block;
    margin-top: 12px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

.home-offering-desc sup,
.home-trust-item sup {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
}

.home-trust-footnote {
    font-size: 0.8em;
    color: #888;
    margin-top: 20px;
    margin-bottom: 0;
}

.home-trust-footnote sup {
    font-size: 0.8em;
    color: #888;
}

.home-offering-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    background: transparent;
    border: 1px solid;
}

.home-offering-link:hover {
    color: #60a5fa;
    gap: 14px;
    background: rgba(59, 130, 246, 0.1);
    text-decoration: none;
}

.home-offering-link:focus {
    outline: none;
    text-decoration: none;
}

/* ============================================
   DIFFERENTIATORS SECTION
   ============================================ */
.home-differentiators {
    padding: 100px 0;
    background: #f8f9fa;
}

.home-diff-content {
    padding-right: 15px;
    text-align: center;
}

.home-diff-item-content {
    text-align: left;
}

.home-diff-content h2 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 20px;
}

.home-diff-content .lead {
    color: #64748b;
    margin-bottom: 30px;
}

.home-diff-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
}

.home-diff-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.home-diff-list li:last-child {
    border-bottom: none;
}

.home-diff-list .check-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-diff-list .check-icon i {
    color: white;
    font-size: 12px;
}

.home-diff-list span {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: #475569;
    line-height: var(--leading-relaxed);
}

.home-diff-grid {
    margin-top: 30px;
}

.home-diff-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
    min-height: 180px;
    height: 100%;
}

.home-diff-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.home-diff-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    transition: all 0.5s ease;
}

.home-diff-icon i {
    font-size: 24px;
    color: white;
}

.home-diff-item:hover .home-diff-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.home-diff-item-content h4 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: 10px;
    color: #1e293b;
}

.home-diff-item-content p {
    color: #64748b;
    margin-bottom: 0;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.home-diff-visual {
    position: relative;
}

.home-integration-logos {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.home-integration-logos span {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.home-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.home-cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.home-cta-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.home-cta-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.home-cta-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

.home-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-cta h2 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-tight);
    color: white;
    margin-bottom: 20px;
}

.home-cta .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
}

.home-cta-subtext {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.8);
    max-width: 567px;
    margin: 40px auto;
    line-height: var(--leading-relaxed);
}

.home-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #1e3a8a !important;
    border: none;
    padding: 18px 40px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.home-btn-cta:not(.home-btn-magnetic):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #1e3a8a !important;
}

.home-btn-magnetic {
    transition: transform 0.15s ease-out, box-shadow 0.4s ease;
}

.home-btn-magnetic:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #1e3a8a !important;
}

.home-btn-cta i {
    transition: transform 0.3s ease;
}

.home-btn-cta:hover i {
    transform: translateX(5px);
}

.home-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white !important;
    padding: 18px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .home-diff-item {
        min-height: 230px;
    }
    
    .home-trust-item {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    .home-diff-item {
        min-height: 260px;
        margin-top: 20px;
    }

    .home-diff-grid {
        margin-top: 0;
    }
    
    .home-offerings-row-spacing {
        margin-top: 0;
    }
    
    .home-hero {
        padding: 120px 0 140px;
    }

    .home-hero-row {
        min-height: 0;
    }
    
    .home-hero-content {
        text-align: center;
    }
    
    .home-hero-buttons {
        justify-content: center;
    }
    
    .home-trust-item {
        min-height: 340px;
    }
    
    .home-trust-item h4 {
        font-size: 18px;
        margin: 0 auto 10px;
    }

    .home-about-intro h2 {
        font-size: 30px;
    }
    
    .home-stats-banner {
        margin-top: 30px;
    }
    
    .home-offerings h2 {
        font-size: 30px;
    }
    
    .home-offering-features {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .home-offering-footnote {
        margin-top: 30px;
    }
    
    .home-offering-card.home-offering-card-half .home-offering-features {
        border-bottom: none;
    }
    
    .home-offering-card:not(.home-offering-card-half) .col-md-4:last-of-type .home-offering-features {
        border-bottom: none;
    }
    
    .home-diff-content h2 {
        font-size: 30px;
    }

    .home-diff-content {
        padding: 15px;
    }

    .home-offering-card {
        padding: 30px;
        min-height: 0;
        margin-bottom: 30px;
    }
    
    .home-cta h2 {
        font-size: 30px;
    }
    
    .home-about {
        padding: 70px 0;
    }
    
    .home-offerings {
        padding: 70px 0;
    }
    
    .home-differentiators {
        padding: 70px 0;
    }
    
    .home-cta {
        padding: 70px 0;
    }
}

@media (max-width: 767px) {
    .home-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .home-btn-glow,
    .home-btn-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .home-trust-item {
        min-height: 0;
        margin-bottom: 20px;
    }
    
    .home-diff-content {
        padding: 0 15px;
    }
    
    .home-diff-item {
        min-height: 0;
    }
}
