/* ══════════════════════════════════════════════════════════════════════
   SOLUTIONS PAGE - WORLD CLASS SAAS STYLING
   ══════════════════════════════════════════════════════════════════════ */

.solutions-page-root {
    position: relative;
    overflow: hidden;
}

/* Solutions Hero */
.solutions-hero {
    position: relative;
    padding: 130px 0 70px;
    background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.18) 0%, rgba(11, 15, 25, 0.98) 75%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.solutions-hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(59, 130, 246, 0.1) 45%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.pulse-dot-indigo {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 10px #818cf8;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* Filter Bar */
.solutions-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 35px 0 10px;
}

.sol-filter-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.sol-filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.sol-filter-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
}

/* Solutions Card Grid */
.solutions-grid-section {
    padding: 80px 0;
    background: var(--ks-bg-canvas, #0b0f19);
    position: relative;
}

.solution-ultra-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.solution-ultra-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.solution-ultra-card:hover {
    transform: translateY(-7px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.2);
}

.solution-ultra-card:hover::before {
    opacity: 1;
}

.sol-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.sol-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-ultra-card:hover .sol-img {
    transform: scale(1.06);
}

.sol-img-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.95) 100%);
    pointer-events: none;
}

.sol-icon-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.sol-badge-online {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.sol-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sol-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.35;
}

.sol-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.68;
    margin-bottom: 22px;
    flex-grow: 1;
}

.sol-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sol-feature-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    color: #cbd5e1;
}

.sol-feature-item i {
    color: #818cf8;
    font-size: 0.85rem;
}

.sol-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.btn-sol-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: 1px solid #818cf8;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-sol-detail:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-sol-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-sol-live:hover {
    color: #0f172a;
    background: #fbbf24;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.sol-badge-live {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 999px;
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.sol-slug-badge {
    color: #64748b;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Architecture Ecosystem Section */
.solutions-ecosystem-section {
    padding: 90px 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, rgba(11, 15, 25, 1) 75%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eco-hub-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(14px);
    height: 100%;
    transition: all 0.3s ease;
}

.eco-hub-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.eco-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

/* Capabilities Matrix Table */
.matrix-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(14px);
}

.table-saas-matrix {
    width: 100%;
    color: #cbd5e1;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-saas-matrix th {
    padding: 14px 18px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.table-saas-matrix td {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
}

.table-saas-matrix tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    color: #ffffff;
    font-weight: 600;
}

.table-saas-matrix tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.table-saas-matrix tr:hover td {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Call to Action Banner */
.solutions-cta {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.22) 0%, rgba(11, 15, 25, 0.98) 75%);
    overflow: hidden;
}

.btn-cta-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: 1px solid #a5b4fc;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.45);
    transition: all 0.3s ease;
}

.btn-cta-glow:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 38px rgba(79, 70, 229, 0.6);
}

/* Light Theme Overrides */
[data-theme="light"] .solutions-hero {
    background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.12) 0%, #f8fafc 80%);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .solutions-grid-section,
[data-theme="light"] .solutions-ecosystem-section {
    background: #ffffff;
}

[data-theme="light"] .solution-ultra-card,
[data-theme="light"] .eco-hub-card,
[data-theme="light"] .matrix-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sol-title,
[data-theme="light"] .matrix-card h3,
[data-theme="light"] .table-saas-matrix tr td:first-child {
    color: #0f172a !important;
}

[data-theme="light"] .sol-desc,
[data-theme="light"] .sol-feature-item {
    color: #475569 !important;
}

[data-theme="light"] .sol-filter-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

[data-theme="light"] .sol-filter-btn.active {
    background: #4f46e5;
    color: #ffffff;
}

[data-theme="light"] .table-saas-matrix td {
    background: #f8fafc;
    border-color: #e2e8f0;
}
