/* ============================================ */
/* SECTION 3: SOLUTION INTRODUCTION             */
/* Premium Bento Box Grid - Redesigned          */
/* ============================================ */

/* ===== SOLUTION SECTION ===== */
.solution-section {
    background: #E8E4E4;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.solution-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== BENTO GRID LAYOUT ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 160px;
    gap: 20px;
}

/* ===== CARD BASE STYLES ===== */
.bento-card {
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    /* Scroll reveal - start hidden */
    opacity: 0;
    transform: translateY(40px);
}

.bento-card.bento-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.bento-card.bento-visible:hover {
    transform: translateY(-6px);
}

/* Staggered reveal delays */
.bento-card:nth-child(1) { transition-delay: 0.05s; }
.bento-card:nth-child(2) { transition-delay: 0.12s; }
.bento-card:nth-child(3) { transition-delay: 0.18s; }
.bento-card:nth-child(4) { transition-delay: 0.24s; }
.bento-card:nth-child(5) { transition-delay: 0.30s; }
.bento-card:nth-child(6) { transition-delay: 0.36s; }
.bento-card:nth-child(7) { transition-delay: 0.42s; }
.bento-card:nth-child(8) { transition-delay: 0.48s; }

/* ===== LARGE IMAGE CARD (Top Left) ===== */
.large-image-card {
    grid-column: span 4;
    grid-row: span 3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.bento-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.large-image-card:hover .bento-card-image {
    transform: scale(1.06);
}

/* Image overlay tag */
.image-card-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
}

.image-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #1A1A1A;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.image-card-tag i {
    color: #667eea;
}

/* ===== ICON BADGE CARD (Top Middle) ===== */
.icon-badge-card {
    grid-column: span 3;
    grid-row: span 2;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.badge-icon-wrapper {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #1A1A1A, #333);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B4F461;
    font-size: 28px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.icon-badge-card:hover .badge-icon-wrapper {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(180, 244, 97, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: badgePulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes badgePulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -55%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -55%) scale(1.3); }
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.badge-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1A1A1A;
}

.badge-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: #B4F461;
    letter-spacing: 0.08em;
    background: rgba(180, 244, 97, 0.15);
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
}

/* ===== HEADLINE CARD (Top Right) ===== */
.headline-card {
    grid-column: span 5;
    grid-row: span 3;
    background: #FFFFFF;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    justify-content: center;
    padding: 40px;
    position: relative;
}

.headline-accent-line {
    position: absolute;
    top: 32px;
    left: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, #B4F461, #667eea);
    border-radius: 0 4px 4px 0;
}

.solution-headline {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.headline-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #B4F461);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.solution-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 28px;
}

.solution-description strong {
    color: #1A1A1A;
    font-weight: 700;
}

/* ===== CTA BUTTON ===== */
.solution-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #B4F461, #8ED839);
    color: #1A1A1A;
    padding: 17px 56px 15px;
    line-height: 1;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(180, 244, 97, 0.3);
    margin-bottom: 20px;
}

.solution-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(180, 244, 97, 0.45);
}

.cta-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    transform: translateY(1px);
}

.cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.solution-cta-button:hover .cta-arrow {
    transform: translateY(-50%) translateX(4px);
}

.cta-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ===== TRUST BADGES ===== */
.solution-trust-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.trust-badge i {
    font-size: 16px;
    color: #1A1A1A;
}

.trust-badge-separator {
    width: 1px;
    height: 16px;
    background: #ddd;
}

/* ===== CIRCULAR BADGE CARD (Middle Left) ===== */
.circular-badge-card {
    grid-column: span 3;
    grid-row: span 3;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.circular-badge {
    position: relative;
    width: 180px;
    height: 180px;
}

.circular-text {
    width: 100%;
    height: 100%;
    animation: rotate 25s linear infinite;
}

.circular-text text {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

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

.circular-badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #B4F461;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    font-size: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 30px rgba(180, 244, 97, 0.3);
}

.circular-badge-card:hover .circular-badge-center {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 50px rgba(180, 244, 97, 0.5);
}

/* ===== SAVINGS CARD (Middle) ===== */
.savings-card {
    grid-column: span 2;
    grid-row: span 2;
    background: #FFFFFF;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.savings-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
}

.savings-period {
    font-size: 15px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.savings-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.savings-amount {
    font-size: 38px;
    font-weight: 900;
    color: #B4F461;
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0px 2px 10px rgba(180, 244, 97, 0.4);
}

.savings-currency {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.savings-bar-wrapper {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 100px;
    margin-bottom: 12px;
    overflow: hidden;
}

.savings-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #8ED839, #B4F461);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.bento-visible .savings-bar {
    width: 75%;
}

.savings-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerSavings 2s infinite linear;
}

@keyframes shimmerSavings {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.savings-hint {
    font-size: 11px;
    font-weight: 500;
    color: #888;
}

/* ===== FEATURE HIGHLIGHT CARD (Middle Right) ===== */
.feature-highlight-card {
    grid-column: span 4;
    grid-row: span 2;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    justify-content: center;
    padding: 32px;
    position: relative;
}

.feature-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e65100;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-tag i {
    font-size: 12px;
}

.feature-headline {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.feature-amount {
    color: #B4F461;
    background: #1A1A1A;
    padding: 2px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 900;
    font-size: 1.1em;
}

.feature-subtext {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* ===== APP VISUAL CARD (Right) ===== */
.app-visual-card {
    grid-column: span 3;
    grid-row: span 2;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* Pulsing ring animation */
.app-visual-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(180, 244, 97, 0.2);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        border-color: rgba(180, 244, 97, 0.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
        border-color: rgba(180, 244, 97, 0.05);
    }
}

.app-visual-circle {
    width: 140px;
    height: 140px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.app-visual-card:hover .app-visual-circle {
    transform: scale(1.08) rotate(5deg);
}

.app-logo-visual {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== TIMELINE CARD (Bottom) ===== */
.timeline-card-bento {
    grid-column: span 7;
    grid-row: span 1;
    background: #FFFFFF;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px 32px;
}

.timeline-bento-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #B4F461, #8ED839);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.timeline-card-bento:hover .timeline-bento-icon {
    transform: rotate(12deg) scale(1.05);
}

.timeline-bento-content {
    flex: 1;
}

.timeline-bento-text {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.5;
}

.timeline-bento-text strong {
    color: #1A1A1A;
    font-weight: 700;
}

.timeline-bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.timeline-bento-cta:hover {
    background: #B4F461;
    color: #1A1A1A;
    transform: translateX(4px);
}

.timeline-bento-cta i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.timeline-bento-cta:hover i {
    transform: translateX(3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }

    .large-image-card {
        grid-column: span 4;
        grid-row: span 3;
    }

    .icon-badge-card {
        grid-column: span 4;
        grid-row: span 2;
    }

    .headline-card {
        grid-column: span 8;
        grid-row: span 3;
    }

    .circular-badge-card {
        grid-column: span 3;
        grid-row: span 3;
    }

    .savings-card {
        grid-column: span 2;
        grid-row: span 2;
    }

    .feature-highlight-card {
        grid-column: span 3;
        grid-row: span 2;
    }

    .app-visual-card {
        grid-column: span 3;
        grid-row: span 2;
    }

    .timeline-card-bento {
        grid-column: span 8;
    }
}

@media (max-width: 768px) {
    .solution-section {
        padding: 50px 0;
    }

    .solution-container {
        padding: 0 16px;
    }

    /* Creative 2-column mobile bento grid */
    .bento-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }

    .bento-card {
        border-radius: 20px;
        padding: 20px;
        min-height: auto;
    }

    /* === Card placement === */

    /* Headline card: full width, first */
    .headline-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 1;
        padding: 28px 24px;
        min-height: auto;
        background: linear-gradient(135deg, #FFFFFF 0%, #f8f8f5 100%);
    }

    .headline-accent-line {
        display: none;
    }

    .solution-headline {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .solution-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .solution-cta-button {
        width: auto;
        display: inline-flex;
        padding: 15px 48px 13px;
        line-height: 1;
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cta-arrow {
        width: 28px;
        height: 28px;
        right: 10px;
    }

    .solution-trust-badges {
        justify-content: flex-start;
        gap: 12px;
    }

    .trust-badge {
        font-size: 12px;
    }

    .trust-badge i {
        font-size: 14px;
    }

    /* Image card: full width */
    .large-image-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 2;
        min-height: 260px;
        padding: 10px;
        border-radius: 20px;
    }

    .image-card-overlay {
        bottom: 16px;
        left: 16px;
    }

    .image-card-tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    /* AI badge + Stats: side by side */
    .icon-badge-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 3;
        min-height: 160px;
        padding: 20px 16px;
        gap: 12px;
    }

    .badge-icon-wrapper {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 22px;
    }

    .badge-label {
        font-size: 12px;
    }

    .badge-sublabel {
        font-size: 10px;
        padding: 3px 10px;
    }

    .badge-glow {
        width: 70px;
        height: 70px;
    }

    .savings-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 4;
        min-height: 160px;
        padding: 24px 16px;
    }

    .savings-amount {
        font-size: 32px;
    }

    .savings-currency {
        font-size: 14px;
    }

    .savings-period {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .savings-hint {
        font-size: 10px;
    }

    /* Feature + App visual: side by side */
    .feature-highlight-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 5;
        min-height: 180px;
        padding: 20px 16px;
        background: linear-gradient(145deg, #1A1A1A, #2a2a2a);
    }

    .feature-highlight-card .feature-tag {
        color: #e65100;
        font-size: 10px;
    }

    .feature-highlight-card .feature-headline {
        color: #FFFFFF;
        font-size: 18px;
        line-height: 1.35;
    }

    .feature-highlight-card .feature-subtext {
        color: rgba(255, 255, 255, 0.5);
        font-size: 11px;
    }

    .feature-amount {
        background: #B4F461;
        color: #1A1A1A;
        font-size: 0.95em;
        padding: 1px 8px;
        border-radius: 6px;
    }

    .app-visual-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 6;
        min-height: 180px;
        padding: 20px;
    }

    .app-visual-circle {
        width: 100px;
        height: 100px;
        padding: 14px;
    }

    .app-visual-ring {
        width: 130px;
        height: 130px;
    }

    /* Hide circular badge on mobile — too tall */
    .circular-badge-card {
        display: none !important;
    }

    /* Timeline: full width at bottom */
    .timeline-card-bento {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 7;
        flex-direction: row;
        align-items: center;
        min-height: auto;
        padding: 16px 20px;
        gap: 12px;
        background: linear-gradient(135deg, #FFFFFF 0%, #f5fff0 100%);
        border: 1px solid rgba(180, 244, 97, 0.2);
    }

    .timeline-bento-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .timeline-bento-text {
        font-size: 12px;
    }

    .timeline-bento-cta {
        width: auto;
        padding: 8px 18px;
        font-size: 12px;
        flex-shrink: 0;
    }
}

@media (max-width: 380px) {
    .solution-headline {
        font-size: 24px;
    }

    .solution-description {
        font-size: 12px;
    }

    .solution-cta-button {
        width: 100%;
        justify-content: center;
        padding: 13px 48px 11px;
        line-height: 1;
        font-size: 12px;
    }

    .savings-amount {
        font-size: 28px;
    }

    .feature-highlight-card .feature-headline {
        font-size: 16px;
    }

    .timeline-card-bento {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-bento-cta {
        width: 100%;
        justify-content: center;
    }
}
