/**
 * MiCalls Solutions Page Styles
 */

/* ========================================
   Solutions Hero
======================================== */
.solutions-hero {
    background: var(--gradient-hero);
    padding: var(--space-24) 0 var(--space-16);
    color: var(--white);
    overflow: hidden;
}

.solutions-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.solutions-hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.solutions-hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.hero-outcomes {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.hero-outcomes li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.hero-outcomes li i {
    color: #7dd3fc;
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 1.1em;
}

/* Hero Selector */
.hero-selector {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-selector label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-2);
}

.solution-dropdown {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.solution-dropdown:hover,
.solution-dropdown:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.solution-dropdown option {
    color: var(--gray-900);
    background: var(--white);
    padding: var(--space-2);
}

/* Solution Flow Visual */
.solutions-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-4);
}

.solutions-hero-visual .hero-selector {
    margin-bottom: 0;
}

.solutions-hero-visual .hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.solution-flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flow-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
    padding: var(--space-2);
}

.flow-stage .flow-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition);
    color: var(--white);
}

.flow-stage.active .flow-icon {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.05);
}

.flow-stage span {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.95);
    font-weight: var(--font-medium);
    max-width: 100px;
    line-height: 1.3;
}

.flow-connector {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* ========================================
   Solutions Navigator
======================================== */
.solutions-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px;
    z-index: var(--z-sticky);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
}

.solutions-nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.solutions-nav-inner {
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    padding: var(--space-3) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.solutions-nav-inner::-webkit-scrollbar {
    display: none;
}

.solutions-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    color: var(--gray-600);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    white-space: nowrap;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.solutions-nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.solutions-nav-link.active {
    color: var(--white);
    background: var(--primary);
}

/* ========================================
   Solutions Cards Grid
======================================== */
.solutions-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.solution-card:hover .solution-hover-preview {
    opacity: 1;
    transform: translateY(0);
}

.solution-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.solution-channels {
    display: flex;
    gap: var(--space-1);
}

.solution-channels span {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-500);
}

.solution-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.solution-pain {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

.solution-outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.outcome-chip {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
}

.solution-hover-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    padding: var(--space-4);
    color: var(--white);
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition);
}

.preview-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-xs);
}

.preview-steps span {
    opacity: 0.9;
}

.solution-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* ========================================
   Pillars Module
======================================== */
#how-we-solve {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
}

.pillars-module {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.pillars-tabs {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-2);
    gap: var(--space-2);
}

.pillar-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-4);
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-lg);
    position: relative;
}

.pillar-tab:hover {
    color: var(--primary);
    background: var(--white);
}

.pillar-tab.active {
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.pillar-tab i {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.pillar-tab:hover i,
.pillar-tab.active i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.pillars-content {
    padding: var(--space-8);
}

.pillar-content {
    display: none;
}

.pillar-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.pillar-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.pillar-info > p {
    color: var(--gray-600);
    margin-bottom: var(--space-5);
    font-size: var(--text-base);
    line-height: 1.6;
}

.pillar-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pillar-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-700);
    background: var(--gray-50);
    border-radius: var(--radius);
    line-height: 1.5;
}

.pillar-features li i {
    color: var(--success);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pillar-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-radius: var(--radius-xl);
    position: relative;
}

.pillar-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.pillar-icon-large {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--white);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

/* ========================================
   Workflows Interactive
======================================== */
#workflows {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    padding-top: var(--space-10);
}

.workflows-interactive {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-100);
}

.workflow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
}

.workflow-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 4px;
}

.workflow-toggle .toggle-btn {
    padding: var(--space-2) var(--space-5);
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.workflow-toggle .toggle-btn.active {
    background: var(--primary);
    color: var(--white);
}

.workflow-filter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-chip {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.workflow-panel {
    display: none;
}

.workflow-panel.active {
    display: block;
}

.workflow-animation {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-bottom: var(--space-8);
    overflow-x: auto;
    padding: var(--space-8) var(--space-6);
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

/* Workflow steps container for proper alignment */
.workflow-step {
    flex: 1;
    min-width: 130px;
    max-width: 160px;
    text-align: center;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.workflow-step:hover {
    background: var(--white);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-6px);
}

.workflow-step .step-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin: 0 auto var(--space-3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    position: relative;
    z-index: 2;
}

.workflow-step:hover .step-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Pulse animation on hover */
.workflow-step:hover .step-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 1s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.step-content {
    text-align: center;
}

.step-content h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
    transition: color 0.3s ease;
}

.workflow-step:hover .step-content h4 {
    color: var(--primary);
}

.step-content p {
    font-size: var(--text-xs);
    color: var(--gray-500);
    line-height: 1.4;
    transition: color 0.3s ease;
    margin: 0;
}

.workflow-step:hover .step-content p {
    color: var(--gray-700);
}

/* Connector line - positioned between steps */
.workflow-connector {
    width: 32px;
    height: 2px;
    background: var(--gray-300);
    align-self: center;
    flex-shrink: 0;
    border-radius: 2px;
    position: relative;
    margin-top: -40px;
    transition: all 0.3s ease;
}

.workflow-connector::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.workflow-animation:hover .workflow-connector::before {
    transform: scaleX(1);
}

.workflow-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid transparent;
    border-left-color: var(--gray-300);
    transition: border-color 0.3s ease;
}

.workflow-animation:hover .workflow-connector::after {
    border-left-color: var(--secondary);
}

/* CRM Panel - Improved */
.workflow-crm-panel {
    background: linear-gradient(135deg, var(--gray-50) 0%, #f0f4ff 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
}

.workflow-crm-panel h4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-4);
}

.workflow-crm-panel h4 i {
    color: var(--primary);
    font-size: 18px;
}

.crm-log-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.crm-log-items span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--white);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--gray-700);
    border: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.crm-log-items span:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

.crm-log-items span i {
    color: var(--primary);
    font-size: 14px;
}

.play-workflow-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.play-workflow-btn:hover {
    transform: scale(1.05);
}

.play-workflow-btn i {
    transition: transform 0.3s ease;
}

.play-workflow-btn:hover i {
    transform: scale(1.2);
}

/* ========================================
   Mid-page CTA Section
======================================== */
.section-cta-mid {
    background: var(--gradient-hero);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.section-cta-mid::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section-cta-mid::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-mid-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-mid-content h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-mid-content p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
}

.cta-mid-content .btn-white {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: var(--space-3) var(--space-8);
    font-weight: var(--font-semibold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cta-mid-content .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Industries Matrix
======================================== */
#industries-matrix {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.industry-matrix {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    align-items: start;
}

.matrix-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.matrix-header,
.matrix-row {
    display: grid;
    grid-template-columns: 110px repeat(5, 1fr);
}

.matrix-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.matrix-header .header-cell {
    color: var(--white);
    font-weight: var(--font-semibold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: var(--space-4) var(--space-3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-header .header-cell:first-child {
    background: rgba(0, 0, 0, 0.1);
}

.matrix-header .header-cell:last-child {
    border-right: none;
}

.matrix-cell {
    padding: var(--space-3);
    text-align: center;
    border-right: 1px solid var(--gray-100);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.matrix-cell:last-child {
    border-right: none;
}

.header-cell {
    cursor: default;
}

.row-header {
    text-align: left;
    font-weight: var(--font-medium);
    font-size: var(--text-xs);
    color: var(--gray-700);
    background: var(--gray-50);
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.matrix-row {
    border-bottom: 1px solid var(--gray-100);
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-row:hover {
    background: rgba(99, 102, 241, 0.02);
}

.matrix-cell:not(.header-cell):not(.row-header):hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.matrix-cell.active {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

.matrix-cell i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.matrix-cell:hover i {
    transform: scale(1.1);
}

.matrix-cell i.bi-dash {
    opacity: 0.25;
    font-size: 14px;
}

.matrix-cell i.bi-check-lg {
    color: var(--success);
}

.matrix-cell.active i.bi-check-lg {
    color: var(--white);
}

/* Detail Panel */
.matrix-detail-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 120px;
    transition: all 0.3s ease;
}

.matrix-detail-panel.updated {
    animation: panel-pulse 0.3s ease;
}

@keyframes panel-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.matrix-detail-panel h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.matrix-detail-panel h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.detail-section {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
}

.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h5 {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
    padding-left: var(--space-5);
    position: relative;
    line-height: 1.4;
}

.detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-2);
    width: 16px;
    height: 16px;
    font-size: 10px;
    color: var(--white);
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-section p {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.5;
    background: var(--gray-50);
    padding: var(--space-3);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.impact-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--success);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.impact-chip::before {
    content: '📈';
    font-size: 16px;
}

/* ========================================
   Integrations Compact
======================================== */
#integrations-section {
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f4ff 100%);
    padding: var(--space-12) 0;
}

.integrations-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-8);
}

.integrations-text {
    max-width: 500px;
}

.integrations-text h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.integrations-text p {
    color: var(--gray-600);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.integrations-text .btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: var(--font-semibold);
}

.integrations-text .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.integrations-logos-compact {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    justify-content: center;
}

.integration-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
}

.integration-logo-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.integration-logo-item span {
    font-size: var(--text-xs);
    color: var(--gray-600);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
}

.integration-logo-item:hover {
    transform: translateY(-6px);
}

.integration-logo-item:hover img {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.integration-logo-item:hover span {
    color: var(--primary);
}

/* ========================================
   Case Studies Section
======================================== */
#case-studies {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-16) 0;
}

#case-studies .section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

#case-studies .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

#case-studies .section-title {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.case-study-filters {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

#case-studies .filter-chip {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

#case-studies .filter-chip:hover {
    border-color: var(--white);
    color: var(--white);
}

#case-studies .filter-chip.active {
    background: var(--white);
    border-color: var(--white);
    color: var(--gray-900);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.case-study-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--gray-900);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-study-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    width: fit-content;
}

.case-study-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.case-study-challenge {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.case-study-challenge::before {
    content: "Challenge: ";
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

.case-study-solution {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.case-study-solution::before {
    content: "Solution: ";
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

.case-study-results {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.result-chip {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--success-light, #dcfce7);
    color: var(--success, #16a34a);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    margin-top: auto;
}

.case-study-link:hover {
    text-decoration: underline;
}

.case-study-link i {
    transition: transform var(--transition);
}

.case-study-link:hover i {
    transform: translateX(4px);
}

.case-study-card.hidden {
    display: none;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.slider-prev,
.slider-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: var(--text-lg);
}

.slider-prev:hover,
.slider-next:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--gray-900);
}

.slider-dots {
    display: flex;
    gap: var(--space-2);
}

/* ========================================
   Implementation Steps
======================================== */
#implementation {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.implementation-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-10);
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.impl-step {
    flex: 1;
    text-align: center;
    padding: var(--space-6);
    max-width: 280px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: var(--white);
    position: relative;
}

.impl-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, var(--white) 100%);
}

.impl-step-number {
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary);
    margin: 0 auto var(--space-4);
    transition: all 0.3s ease;
}

.impl-step:hover .impl-step-number {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.impl-step h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
}

.impl-step:hover h4 {
    color: var(--primary);
}

.impl-step p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* Connector arrows pointing down to center */
.impl-connector {
    width: 24px;
    margin: 0 var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.impl-connector::before {
    content: '';
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.impl-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--secondary);
}

.what-we-need {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
}

.what-we-need h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-6);
}

.needs-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.needs-grid span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--gray-50) 0%, #f0f4ff 100%);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-700);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.needs-grid span:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.needs-grid span i {
    color: var(--primary);
    font-size: var(--text-lg);
}

/* ========================================
   FAQ Container
======================================== */
#faq {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    border: none;
    border-radius: var(--radius-xl);
    overflow: visible;
    background: transparent;
}

.faq-accordion .accordion-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.faq-accordion .accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.faq-accordion .accordion-header {
    padding: var(--space-4) var(--space-5);
    gap: var(--space-4);
    background: var(--white);
}

.faq-accordion .accordion-header:hover {
    background: var(--white);
}

.faq-accordion .faq-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover .faq-icon,
.faq-accordion .accordion-item.active .faq-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.faq-accordion .accordion-header span {
    flex: 1;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--gray-800);
    transition: color 0.3s ease;
}

.faq-accordion .accordion-item:hover .accordion-header span,
.faq-accordion .accordion-item.active .accordion-header span {
    color: var(--primary);
}

.faq-accordion .accordion-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-500);
    font-size: 14px;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item.active .accordion-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-accordion .accordion-content {
    padding: 0 var(--space-5) var(--space-5);
    padding-left: calc(var(--space-5) + 40px + var(--space-4));
}

.faq-accordion .accordion-content p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Solution Drawer Styles
======================================== */
.solution-drawer {
    width: 50%;
    max-width: 600px;
    min-width: 400px;
}

.solution-drawer .drawer-header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
}

.solution-drawer .drawer-content {
    padding: var(--space-5);
    overflow-y: auto;
}

.drawer-title-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
}

.drawer-title-group h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.drawer-title-group .drawer-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
}

.drawer-section {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--gray-100);
}

.drawer-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.drawer-section h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Summary Section - Compact Grid Layout */
.drawer-section.summary {
    background: var(--gray-50);
    margin: calc(-1 * var(--space-5));
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border-radius: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.summary-item {
    margin-bottom: 0;
}

.summary-item:last-child {
    grid-column: span 2;
}

.summary-label {
    display: block;
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.summary-value {
    font-size: var(--text-sm);
    color: var(--gray-800);
    line-height: 1.4;
}

.channel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.channel-badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px var(--space-2);
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--gray-700);
}

.channel-badges span i {
    font-size: 12px;
}

.outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outcomes-list li {
    padding: 2px 0;
    font-size: var(--text-xs);
    color: var(--gray-700);
    padding-left: var(--space-4);
    position: relative;
    line-height: 1.4;
}

.outcomes-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* Automates List - Two Column Grid */
.automates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1) var(--space-3);
}

.automates-list li {
    padding: var(--space-1) 0;
    font-size: var(--text-xs);
    color: var(--gray-700);
    padding-left: var(--space-4);
    position: relative;
    line-height: 1.4;
}

.automates-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

/* Example Requests - Two Column Grid */
.example-requests {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.request-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--gray-700);
}

.request-item i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Handoff Rules - Horizontal Layout */
.handoff-rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.rule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius);
}

.rule-item.resolved {
    background: rgba(16, 185, 129, 0.08);
}

.rule-item.resolved i {
    color: var(--success);
}

.rule-item.escalate {
    background: rgba(245, 158, 11, 0.08);
}

.rule-item.escalate i {
    color: var(--warning);
}

.rule-item.context {
    background: rgba(59, 130, 246, 0.08);
}

.rule-item.context i {
    color: var(--info);
}

.rule-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.rule-item strong {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: 2px;
}

.rule-item span {
    font-size: 10px;
    color: var(--gray-600);
    line-height: 1.3;
}

.rule-item > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Metrics Grid - Three Columns */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.metric-item {
    padding: var(--space-2);
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: center;
}

.metric-name {
    font-size: var(--text-xs);
    color: var(--gray-700);
}

/* Drawer CTA - Compact */
.drawer-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.demo-preview {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
}

.demo-preview:hover {
    background: var(--gray-200);
}

.demo-preview i {
    font-size: 16px;
    color: var(--primary);
}

/* Button Block */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.drawer-cta .btn-block {
    padding: var(--space-3) var(--space-4);
}

/* ========================================
   Sticky Demo CTA
======================================== */
.sticky-demo-cta {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-fixed);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    pointer-events: none;
}

.sticky-demo-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========================================
   Responsive Styles
======================================== */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .solutions-hero-title {
        font-size: var(--text-6xl);
    }

    .workflow-step {
        max-width: 180px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .matrix-header,
    .matrix-row {
        grid-template-columns: 100px repeat(5, 1fr);
    }

    .matrix-header .header-cell,
    .matrix-cell {
        padding: var(--space-3) var(--space-2);
        font-size: var(--text-xs);
    }
}

@media (max-width: 1200px) {
    .solutions-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .industry-matrix {
        grid-template-columns: 1fr;
    }

    .matrix-detail-panel {
        position: static;
        margin-top: var(--space-4);
    }

    .integrations-logos-compact {
        gap: var(--space-4);
    }

    .integration-logo-item img {
        width: 64px;
        height: 64px;
        padding: var(--space-3);
    }
}

@media (max-width: 992px) {
    .solutions-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .solutions-hero-title {
        font-size: var(--text-4xl);
    }

    .solutions-hero-content {
        text-align: center;
    }

    .hero-outcomes {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .solutions-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .pillar-visual {
        order: -1;
        padding: var(--space-5);
    }

    .pillar-icon-large {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }

    .pillars-content {
        padding: var(--space-6);
    }

    .workflows-interactive {
        padding: var(--space-6);
    }

    .workflow-step {
        min-width: 110px;
        max-width: 140px;
    }

    .workflow-step .step-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .integrations-compact {
        flex-direction: column;
        text-align: center;
    }

    .integrations-logos-compact {
        justify-content: center;
    }

    .integrations-text h3 {
        font-size: var(--text-2xl);
    }

    /* Matrix table improvements */
    .matrix-header,
    .matrix-row {
        grid-template-columns: 90px repeat(5, 1fr);
    }

    .matrix-header .header-cell {
        font-size: 10px;
        padding: var(--space-3) var(--space-2);
    }

    .row-header {
        font-size: 10px;
    }

    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-filters {
        justify-content: center;
    }

    .implementation-steps {
        flex-wrap: wrap;
        gap: var(--space-4);
        padding: var(--space-5);
    }

    .impl-step {
        flex: 0 0 calc(50% - var(--space-2));
        max-width: none;
        border: 1px solid var(--gray-200);
    }

    .impl-step:hover {
        border-color: var(--primary);
    }

    .impl-connector {
        display: none;
    }

    .impl-step-number {
        width: 56px;
        height: 56px;
        font-size: var(--text-xl);
    }

    /* What we need grid */
    .what-we-need .needs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    /* FAQ adjustments */
    .faq-container {
        max-width: 100%;
    }

    /* Drawer at tablet size */
    .solution-drawer {
        width: 60%;
        min-width: 380px;
    }

    /* Mid-page CTA */
    .cta-mid-content h2 {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 768px) {
    .solutions-hero {
        padding: var(--space-16) 0 var(--space-8);
    }

    .solutions-hero-title {
        font-size: var(--text-3xl);
    }

    .solutions-hero-subtitle {
        font-size: var(--text-base);
    }

    .solutions-hero-visual .hero-actions {
        flex-direction: column;
    }

    .solutions-hero-visual .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .solution-flow-visual {
        flex-direction: column;
        padding: var(--space-3);
    }

    .flow-stage {
        padding: var(--space-2);
    }

    .flow-stage .flow-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .flow-stage span {
        font-size: 10px;
        max-width: 80px;
    }

    .flow-connector {
        transform: rotate(90deg);
    }

    .solutions-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Pillars section mobile */
    .pillars-tabs {
        flex-direction: column;
        padding: var(--space-2);
        gap: var(--space-1);
    }

    .pillar-tab {
        flex-direction: row;
        justify-content: flex-start;
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .pillar-tab i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .pillars-content {
        padding: var(--space-5);
    }

    .pillar-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .pillar-visual {
        order: -1;
        padding: var(--space-4);
    }

    .pillar-icon-large {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .pillar-info h3 {
        font-size: var(--text-xl);
    }

    .pillar-features li {
        padding: var(--space-2);
        font-size: var(--text-xs);
    }

    /* Workflows mobile */
    .workflows-interactive {
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }

    .workflow-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
    }

    .workflow-toggle .toggle-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .workflow-animation {
        flex-direction: column;
        align-items: center;
        padding: var(--space-4);
        gap: 0;
    }

    .workflow-step {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--space-4);
        padding: var(--space-3);
    }

    .workflow-step .step-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .workflow-step:hover .step-icon {
        transform: scale(1.1) rotate(5deg);
    }

    .step-content {
        text-align: left;
    }

    .step-content h4 {
        font-size: var(--text-sm);
    }

    .workflow-connector {
        width: 2px;
        height: 24px;
        margin: 0;
        margin-left: 23px;
        margin-top: 0;
    }

    .workflow-connector::after {
        display: none;
    }

    .workflow-crm-panel {
        padding: var(--space-4);
    }

    .workflow-crm-panel h4 {
        font-size: var(--text-xs);
    }

    .crm-log-items {
        gap: var(--space-2);
    }

    .crm-log-items span {
        flex: 1 1 calc(50% - var(--space-1));
        font-size: 10px;
        padding: var(--space-1) var(--space-2);
    }

    /* Mid-page CTA mobile */
    .section-cta-mid {
        padding: var(--space-10) 0;
    }

    .cta-mid-content h2 {
        font-size: var(--text-xl);
    }

    .cta-mid-content p {
        font-size: var(--text-base);
    }

    /* Industries Matrix mobile */
    .matrix-table {
        overflow-x: auto;
        border-radius: var(--radius-lg);
    }

    .matrix-header,
    .matrix-row {
        min-width: 550px;
    }

    .matrix-header .header-cell {
        font-size: 9px;
        padding: var(--space-2);
    }

    .matrix-cell {
        padding: var(--space-2);
    }

    .row-header {
        font-size: 9px;
    }

    .matrix-detail-panel {
        padding: var(--space-4);
    }

    .matrix-detail-panel h4 {
        font-size: var(--text-base);
    }

    /* Integrations mobile */
    .integrations-text h3 {
        font-size: var(--text-xl);
    }

    .integrations-text p {
        font-size: var(--text-base);
    }

    .integrations-logos-compact {
        gap: var(--space-3);
    }

    .integration-logo-item img {
        width: 56px;
        height: 56px;
        padding: var(--space-2);
    }

    .integration-logo-item span {
        font-size: 10px;
    }

    /* Case Studies mobile */
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .case-study-card {
        padding: var(--space-5);
    }

    .case-study-card h3 {
        font-size: var(--text-base);
    }

    /* Implementation mobile */
    .implementation-steps {
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .impl-step {
        flex: 0 0 100%;
        border: 1px solid var(--gray-200);
        padding: var(--space-4);
    }

    .impl-step:hover {
        border-color: var(--primary);
    }

    .impl-step-number {
        width: 48px;
        height: 48px;
        font-size: var(--text-lg);
    }

    .impl-step h4 {
        font-size: var(--text-sm);
    }

    /* What we need mobile */
    .what-we-need {
        padding: var(--space-5);
    }

    .what-we-need h4 {
        font-size: var(--text-lg);
    }

    .what-we-need .needs-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .what-we-need .need-item {
        padding: var(--space-4);
    }

    /* FAQ mobile */
    .faq-accordion .accordion-header {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }

    .faq-accordion .faq-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .faq-accordion .accordion-header span {
        font-size: var(--text-sm);
    }

    .faq-accordion .accordion-content {
        padding: 0 var(--space-4) var(--space-4);
        padding-left: calc(var(--space-4) + 36px + var(--space-3));
    }

    .faq-accordion .accordion-content p {
        font-size: var(--text-xs);
    }

    /* Drawer mobile */
    .solution-drawer {
        width: 100%;
        min-width: unset;
    }

    .solution-drawer .drawer-content {
        padding: var(--space-4);
    }

    .solution-drawer .drawer-header {
        padding: var(--space-3) var(--space-4);
    }

    .drawer-title-group h3 {
        font-size: var(--text-base);
    }

    .drawer-title-group .drawer-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .drawer-section.summary {
        margin: calc(-1 * var(--space-4));
        margin-bottom: var(--space-4);
        padding: var(--space-3);
        grid-template-columns: 1fr;
    }

    .summary-item:last-child {
        grid-column: span 1;
    }

    .automates-list {
        grid-template-columns: 1fr;
    }

    .example-requests {
        grid-template-columns: 1fr;
    }

    .handoff-rules {
        grid-template-columns: 1fr;
    }

    .rule-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .rule-item > div {
        align-items: flex-start;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sticky CTA mobile */
    .sticky-demo-cta {
        bottom: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
    }

    .sticky-demo-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Hero small mobile */
    .solutions-hero {
        padding: var(--space-12) 0 var(--space-6);
    }

    .solutions-hero-title {
        font-size: var(--text-2xl);
        line-height: 1.2;
    }

    .solutions-hero-subtitle {
        font-size: var(--text-sm);
    }

    .hero-outcomes li {
        font-size: var(--text-sm);
        gap: var(--space-2);
    }

    .hero-outcomes li i {
        font-size: 14px;
    }

    .hero-selector {
        padding: var(--space-3);
    }

    .solution-dropdown {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    /* Flow visual small mobile */
    .solution-flow-visual {
        padding: var(--space-2);
        gap: var(--space-1);
    }

    .flow-stage .flow-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .flow-stage span {
        font-size: 9px;
        max-width: 60px;
    }

    /* Pillars small mobile */
    .pillars-module {
        border-radius: var(--radius-lg);
    }

    .pillar-tab {
        padding: var(--space-2);
    }

    .pillar-tab i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .pillar-tab span {
        font-size: var(--text-xs);
    }

    .pillars-content {
        padding: var(--space-4);
    }

    .pillar-icon-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .pillar-info h3 {
        font-size: var(--text-lg);
    }

    .pillar-info > p {
        font-size: var(--text-sm);
    }

    /* Workflows small mobile */
    .workflows-interactive {
        padding: var(--space-4);
        border-radius: var(--radius);
    }

    .workflow-toggle {
        width: 100%;
    }

    .workflow-toggle .toggle-btn {
        flex: 1;
        padding: var(--space-2);
        font-size: 11px;
    }

    .workflow-step {
        padding: var(--space-2);
        gap: var(--space-3);
    }

    .workflow-step .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-content h4 {
        font-size: var(--text-xs);
    }

    .step-content p {
        font-size: 10px;
    }

    .workflow-crm-panel {
        padding: var(--space-3);
    }

    .crm-log-items span {
        flex: 1 1 100%;
        font-size: 10px;
    }

    /* CTA small mobile */
    .section-cta-mid {
        padding: var(--space-8) 0;
    }

    .cta-mid-content h2 {
        font-size: var(--text-lg);
    }

    .cta-mid-content p {
        font-size: var(--text-sm);
    }

    .cta-mid-content .btn-white {
        padding: var(--space-2) var(--space-6);
        font-size: var(--text-sm);
    }

    /* Industries Matrix small mobile */
    .matrix-header,
    .matrix-row {
        min-width: 480px;
        grid-template-columns: 70px repeat(5, 1fr);
    }

    .matrix-header .header-cell {
        font-size: 8px;
        padding: var(--space-2) var(--space-1);
    }

    .row-header {
        font-size: 8px;
        padding: var(--space-2);
    }

    .matrix-cell {
        padding: var(--space-1);
    }

    .matrix-cell i {
        font-size: 14px;
    }

    .matrix-detail-panel {
        padding: var(--space-3);
    }

    .matrix-detail-panel h4 {
        font-size: var(--text-sm);
        padding-bottom: var(--space-3);
        margin-bottom: var(--space-3);
    }

    .detail-section h5 {
        font-size: 10px;
    }

    .detail-section li,
    .detail-section p {
        font-size: var(--text-xs);
    }

    .impact-chip {
        font-size: var(--text-sm);
        padding: var(--space-1) var(--space-3);
    }

    /* Integrations small mobile */
    #integrations-section {
        padding: var(--space-8) 0;
    }

    .integrations-text h3 {
        font-size: var(--text-lg);
    }

    .integrations-text p {
        font-size: var(--text-sm);
    }

    .integrations-logos-compact {
        gap: var(--space-2);
    }

    .integration-logo-item img {
        width: 48px;
        height: 48px;
        padding: var(--space-2);
    }

    .integration-logo-item span {
        font-size: 9px;
    }

    /* Case Studies small mobile */
    #case-studies {
        padding: var(--space-10) 0;
    }

    #case-studies .section-title {
        font-size: var(--text-xl);
    }

    .case-study-card {
        padding: var(--space-4);
    }

    .case-study-tag {
        font-size: 10px;
        padding: 2px var(--space-2);
    }

    .case-study-card h3 {
        font-size: var(--text-sm);
    }

    .case-study-challenge,
    .case-study-solution {
        font-size: var(--text-xs);
    }

    .result-chip {
        font-size: 10px;
        padding: 2px var(--space-2);
    }

    /* Implementation small mobile */
    .implementation-steps {
        padding: var(--space-3);
        gap: var(--space-2);
    }

    .impl-step {
        padding: var(--space-3);
    }

    .impl-step-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
        border-width: 2px;
    }

    .impl-step h4 {
        font-size: var(--text-xs);
    }

    .impl-step p {
        font-size: 11px;
    }

    /* What we need small mobile */
    .what-we-need {
        padding: var(--space-4);
    }

    .what-we-need h4 {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }

    .what-we-need .need-item {
        padding: var(--space-3);
    }

    .what-we-need .need-item i {
        font-size: var(--text-lg);
        width: 40px;
        height: 40px;
    }

    .what-we-need .need-item strong {
        font-size: var(--text-sm);
    }

    .what-we-need .need-item p {
        font-size: var(--text-xs);
    }

    /* FAQ small mobile */
    .faq-accordion .accordion-item {
        margin-bottom: var(--space-2);
    }

    .faq-accordion .accordion-header {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
    }

    .faq-accordion .faq-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
    }

    .faq-accordion .accordion-header span {
        font-size: var(--text-xs);
    }

    .faq-accordion .accordion-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 12px;
    }

    .faq-accordion .accordion-content {
        padding: 0 var(--space-3) var(--space-3);
        padding-left: calc(var(--space-3) + 32px + var(--space-2));
    }

    .faq-accordion .accordion-content p {
        font-size: 11px;
        line-height: 1.6;
    }

    /* Metrics small mobile */
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    /* Drawer small mobile */
    .drawer-section h4 {
        font-size: var(--text-xs);
    }

    .drawer-section.summary {
        padding: var(--space-2);
        gap: var(--space-2);
    }

    .summary-label {
        font-size: 9px;
    }

    .summary-value {
        font-size: var(--text-xs);
    }

    .request-item {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
    }

    .request-item i {
        font-size: 12px;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .solutions-hero-title {
        font-size: var(--text-xl);
    }

    .solutions-hero-subtitle {
        font-size: var(--text-xs);
    }

    .hero-outcomes li {
        font-size: var(--text-xs);
    }

    .flow-stage {
        padding: var(--space-1);
    }

    .flow-stage .flow-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .flow-stage span {
        font-size: 8px;
        max-width: 50px;
    }

    .workflow-step .step-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .matrix-header,
    .matrix-row {
        min-width: 420px;
        grid-template-columns: 60px repeat(5, 1fr);
    }

    .integration-logo-item img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .faq-accordion .faq-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }

    .faq-accordion .accordion-content {
        padding-left: calc(var(--space-3) + 28px + var(--space-2));
    }
}

/* ========================================
   Additional Styles for Updated Content
======================================== */

/* Section Helper Text */
.section-helper-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-2);
}

/* What We Need - Enhanced */
.what-we-need .needs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.what-we-need .need-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    cursor: default;
}

.what-we-need .need-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.what-we-need .need-item i {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-3);
    display: block;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.what-we-need .need-item:hover i {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.what-we-need .need-item strong {
    display: block;
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
}

.what-we-need .need-item:hover strong {
    color: var(--primary);
}

.what-we-need .need-item p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
    .what-we-need .needs-grid {
        grid-template-columns: 1fr;
    }
}

/* Implementation Steps Enhanced */
.implementation-steps .impl-step p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* Hero Section Label */
.solutions-hero .section-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   Touch Device Optimizations
======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .workflow-step,
    .pillar-tab,
    .filter-chip,
    .toggle-btn,
    .matrix-cell:not(.header-cell):not(.row-header) {
        min-height: 44px;
    }

    /* Remove hover animations on touch devices for better performance */
    .workflow-step:hover,
    .impl-step:hover,
    .integration-logo-item:hover,
    .what-we-need .need-item:hover {
        transform: none;
    }

    .workflow-step:hover .step-icon {
        transform: none;
    }

    /* Keep active states for touch feedback */
    .workflow-step:active .step-icon,
    .impl-step:active .impl-step-number,
    .integration-logo-item:active img {
        transform: scale(0.95);
    }
}

/* ========================================
   Landscape Orientation Adjustments
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .solutions-hero {
        padding: var(--space-8) 0 var(--space-4);
    }

    .solutions-hero-title {
        font-size: var(--text-2xl);
    }

    .hero-outcomes {
        display: none;
    }

    .solution-flow-visual {
        max-height: 150px;
    }

    .pillars-content {
        max-height: 300px;
        overflow-y: auto;
    }

    .section-cta-mid {
        padding: var(--space-6) 0;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .solutions-nav,
    .sticky-demo-cta,
    .hero-actions,
    .workflow-toggle,
    .filter-chip,
    .play-workflow-btn {
        display: none !important;
    }

    .solutions-hero {
        background: none;
        color: #000;
        padding: 1rem 0;
    }

    .solutions-hero-title,
    .solutions-hero-subtitle {
        color: #000;
    }

    .workflow-animation,
    .pillars-module,
    .matrix-table,
    .case-study-card,
    .impl-step {
        break-inside: avoid;
    }
}

/* ========================================
   Reduced Motion Preferences
======================================== */
@media (prefers-reduced-motion: reduce) {
    .workflow-step,
    .workflow-step .step-icon,
    .impl-step,
    .impl-step-number,
    .integration-logo-item,
    .matrix-cell,
    .faq-accordion .accordion-item,
    .what-we-need .need-item {
        transition: none !important;
    }

    .workflow-step:hover .step-icon::after {
        animation: none;
    }

    .workflow-connector::before {
        transition: none !important;
    }
}

/* ========================================
   High Contrast Mode
======================================== */
@media (prefers-contrast: high) {
    .solution-card,
    .pillars-module,
    .workflows-interactive,
    .matrix-table,
    .case-study-card,
    .impl-step,
    .what-we-need,
    .faq-accordion .accordion-item {
        border-width: 2px;
    }

    .workflow-step .step-icon,
    .impl-step-number {
        border-width: 3px;
    }
}
