/* SOLUTION LOOP SECTION (The Bridge) */

.solution-loop-section {
    position: relative;
    padding: 0 0 160px; /* Remove top padding to close the gap */
    background: transparent; /* Maintains global void */
    overflow: hidden;
    z-index: 10;
}

/* Connecting Thread from Keystone - DISABLED here, handled in keystone.css */
.solution-loop-section::before {
    display: none; 
}

.solution-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* HEADER */
.solution-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

.solution-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #00FFCC; /* Start with Teal as the "New Solution" color */
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.solution-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.solution-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #B0B0B0;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* CARDS GRID */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

/* CONNECTING LINES BEHIND CARDS (The "Loop" Visual) */
.solution-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 204, 0.3) 20%, 
        rgba(138, 43, 226, 0.3) 50%, 
        rgba(255, 69, 0, 0.3) 80%, 
        transparent 100%
    );
    z-index: -1;
    transform: translateY(-50%);
    filter: blur(1px);
}

/* CARD STYLES */
.loop-card {
    background: rgba(10, 10, 12, 0.6); /* Obsidian Glass */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.loop-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 15, 20, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Product Icon */
.loop-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 32px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.03);
}

/* Titles */
.loop-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 8px;
}

.loop-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.8;
}

.loop-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #CCC;
    margin-bottom: 32px;
    flex-grow: 1; /* Pushes bottom content down */
}

/* ROI Section inside Card */
.loop-roi {
    font-size: 13px;
    line-height: 1.5;
    color: #AAA;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loop-roi strong {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Stat Box */
.loop-stat-box {
    border: 1px solid;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.loop-card:hover .loop-stat-box {
    transform: scale(1.02);
}

.loop-stat-val {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #FFF;
}

.loop-stat-lbl {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Human Badge */
.loop-human-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #888;
    font-family: 'Inter', sans-serif;
    padding: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.loop-human-badge i {
    font-size: 12px;
}

/* THEME: TEAL (Annotate) */
.theme-teal { border-color: rgba(0, 255, 204, 0.2); }
.theme-teal:hover { border-color: #00FFCC; }
.theme-teal .loop-icon-box { color: #00FFCC; border-color: rgba(0, 255, 204, 0.3); box-shadow: 0 0 15px rgba(0, 255, 204, 0.1); }
.theme-teal .loop-tagline { color: #00FFCC; }
.theme-teal .loop-roi strong { color: #00FFCC; }
.theme-teal .loop-stat-box { border-color: rgba(0, 255, 204, 0.3); }
.theme-teal .loop-stat-val { text-shadow: 0 0 15px rgba(0, 255, 204, 0.4); }
.theme-teal .loop-human-badge i { color: #00FFCC; }

/* THEME: PURPLE (Intel) */
.theme-purple { border-color: rgba(138, 43, 226, 0.2); }
.theme-purple:hover { border-color: #8A2BE2; }
.theme-purple .loop-icon-box { color: #8A2BE2; border-color: rgba(138, 43, 226, 0.3); box-shadow: 0 0 15px rgba(138, 43, 226, 0.1); }
.theme-purple .loop-tagline { color: #8A2BE2; }
.theme-purple .loop-roi strong { color: #8A2BE2; }
.theme-purple .loop-stat-box { border-color: rgba(138, 43, 226, 0.3); }
.theme-purple .loop-stat-val { text-shadow: 0 0 15px rgba(138, 43, 226, 0.4); }
.theme-purple .loop-human-badge i { color: #8A2BE2; }

/* THEME: ORANGE (Operate) */
.theme-orange { border-color: rgba(255, 69, 0, 0.2); }
.theme-orange:hover { border-color: #FF4500; }
.theme-orange .loop-icon-box { color: #FF4500; border-color: rgba(255, 69, 0, 0.3); box-shadow: 0 0 15px rgba(255, 69, 0, 0.1); }
.theme-orange .loop-tagline { color: #FF4500; }
.theme-orange .loop-roi strong { color: #FF4500; }
.theme-orange .loop-stat-box { border-color: rgba(255, 69, 0, 0.3); }
.theme-orange .loop-stat-val { text-shadow: 0 0 15px rgba(255, 69, 0, 0.4); }
.theme-orange .loop-human-badge i { color: #FF4500; }

/* Mobile Button (Hidden on Desktop) */
.loop-mobile-btn {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .solution-grid::before {
        display: none; /* Hide horizontal connecting line on vertical stack */
    }
    
    .solution-container {
        padding: 0 20px;
    }
    
    .solution-title {
        font-size: 32px;
    }
}
