/* css/blocks/multilang-stats.css */

.sp-multilang-section {
    padding: 80px 24px 100px 24px;
    background-color: var(--bg-global);
}

/* --- Top Heading --- */
.multilang-header {
    text-align: center;
    margin-bottom: 80px; /* Space for the protruding images */
}

.multilang-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.multilang-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Split Cards Grid --- */
.multilang-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* The Half-Gradient Card */
.lang-card {
    /* Transparent top half, fading into solid siren red on the bottom */
    background: linear-gradient(180deg, transparent 35%, var(--siren-red) 100%);
    border-radius: 32px;
    padding: 0 32px 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.lang-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--siren-red);
}

/* Protruding Image */
.lang-img-wrapper {
    margin-top: -60px; /* Pulls the image up and out of the box */
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.lang-mockup {
    height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.lang-card:hover .lang-mockup {
    transform: translateY(-8px); /* Image floats up slightly on hover */
}

/* Text Content Over the Gradient */
.lang-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1A202C; /* Keep dark for readability or change to white if preferred */
    margin-bottom: 8px;
}

.lang-content p {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.5;
    font-weight: 500;
}

/* --- Animated Stats Grid --- */
.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 100px;
}

.stat-card {
    background: var(--bg-surface);
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--text-border);
}

.stat-number-wrapper {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--siren-red);
    margin-bottom: 8px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .multilang-cards-grid {
        grid-template-columns: 1fr;
        gap: 80px; /* Needs more gap because images protrude */
    }
    
    .multilang-header h2 {
        font-size: 2.5rem;
    }
    
    .sp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .lang-mockup {
        height: 300px;
    }
}




/* --- Animated Data Funnel Lines --- */
.stats-connector-area {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.funnel-lines {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.draw-line {
    fill: none;
    stroke: var(--siren-red);
    stroke-width: 2px;
    stroke-dasharray: 500; /* Gives the line plenty of length to reach the end */
    stroke-dashoffset: 500;
    opacity: 0;
    transition: stroke-dashoffset 1.5s ease-out, opacity 0.5s ease-in;
}

/* Added via JS when scrolled into view */
.stats-connector-area.animate .draw-line {
    stroke-dashoffset: 0;
    opacity: 0.5; /* Subtle opacity so it doesn't overpower the layout */
}

.mobile-connector-line {
    display: none;
}

/* --- Product Core Showcase --- */
.product-core-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: -20px; /* Pulls slightly up to meet the lines */
}

/* The Center Image */
.center-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.core-mockup {
    width: 100%;
    max-width: 320px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Side Info Cards */
.side-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.core-info-card {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--text-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.core-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--siren-red);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.core-info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.core-info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}


@media (max-width: 1024px) {
    /* Inside your @media (max-width: 1024px) */
    .product-core-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .center-image-wrapper {
        order: -1; /* Puts the phone image on top of the cards */
        margin-bottom: 24px;
    }

    .funnel-lines {
        display: none; /* Hide the 4-line SVG on tablet/mobile */
    }

    /* Show simple straight line for mobile flow */
    .mobile-connector-line {
        display: block;
        width: 2px;
        height: 100%;
        background-color: var(--siren-red);
        opacity: 0;
        transition: opacity 0.5s ease-in, height 1s ease-out;
    }

    .stats-connector-area.animate .mobile-connector-line {
        opacity: 0.5;
    }

}