/* ============================================
   SOLUTIONS PAGE STYLES
   Complete Voice AI Solutions Showcase
   ============================================ */

/* ---------- Hero Section ---------- */
.solutions-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.solutions-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.solutions-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.solutions-hero-title .title-line {
    display: block;
}

.solutions-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.solutions-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Hero Visual - Solutions Hub */
.solutions-hero-visual {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.solutions-hub {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
}

.hub-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.hub-top {
    justify-content: center;
}

.hub-middle {
    justify-content: center;
    gap: var(--space-2xl);
}

.hub-bottom {
    justify-content: center;
    gap: var(--space-lg);
}

.hub-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px var(--accent-glow);
    min-width: 160px;
    z-index: 10;
}

.hub-center svg {
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.hub-center-label {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.hub-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    min-width: 100px;
}

.hub-node:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.hub-icon {
    font-size: 1.5rem;
}

.hub-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Responsive adjustments for hub */
@media (max-width: 768px) {
    .solutions-hub {
        gap: var(--space-lg);
    }
    
    .hub-middle {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hub-bottom {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .hub-node {
        padding: var(--space-sm);
        min-width: 90px;
    }
    
    .hub-center {
        padding: var(--space-lg);
        min-width: 140px;
        order: -1;
    }
    
    .hub-center svg {
        width: 48px;
        height: 48px;
    }
    
    .hub-center-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hub-row {
        gap: var(--space-sm);
    }
    
    .hub-node {
        padding: var(--space-sm);
        min-width: 80px;
    }
    
    .hub-icon {
        font-size: 1.25rem;
    }
    
    .hub-label {
        font-size: 0.625rem;
    }
    
    .hub-bottom {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
}

.network-graphic {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px var(--accent-glow);
    min-width: 160px;
}

.network-center svg {
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.network-label {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.network-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    z-index: 5;
}

.network-node:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.node-icon {
    font-size: 1.5rem;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Position nodes in a hexagonal pattern around center - using calc for precise positioning */
.network-node.node-1 { 
    top: 5%; 
    left: 50%; 
    transform: translateX(-50%); 
}
.network-node.node-2 { 
    top: 25%; 
    right: 5%; 
}
.network-node.node-3 { 
    bottom: 25%; 
    right: 5%; 
}
.network-node.node-4 { 
    bottom: 5%; 
    left: 50%; 
    transform: translateX(-50%); 
}
.network-node.node-5 { 
    bottom: 25%; 
    left: 5%; 
}
.network-node.node-6 { 
    top: 25%; 
    left: 5%; 
}



/* Responsive adjustments for network graphic */
@media (max-width: 768px) {
    .network-graphic {
        height: 450px;
    }
    
    .network-node {
        padding: var(--space-sm);
    }
    
    .network-node.node-1 { top: 2%; }
    .network-node.node-4 { bottom: 2%; }
    .network-node.node-2,
    .network-node.node-3 { right: 2%; }
    .network-node.node-5,
    .network-node.node-6 { left: 2%; }
}

@media (max-width: 480px) {
    .network-graphic {
        height: 400px;
    }
    
    .network-center {
        padding: var(--space-md);
        min-width: 120px;
    }
    
    .network-center svg {
        width: 48px;
        height: 48px;
    }
    
    .network-label {
        font-size: 1rem;
    }
    
    .node-icon {
        font-size: 1.25rem;
    }
    
    .node-label {
        font-size: 0.625rem;
    }
}

/* ---------- Solutions Grid Section ---------- */
.solutions-grid-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

@media (max-width: 640px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* Solution Cards */
.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

[data-theme="light"] .solution-card {
    background: var(--bg-card-solid);
}

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

.solution-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
}

.solution-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.solution-card .solution-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.solution-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.solution-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.solution-benefits svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

/* Solution Visuals */
.solution-visual {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voice Agent Mockup */
.voice-agent-mockup {
    width: 100%;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.mockup-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.mockup-status.active {
    color: var(--success);
}

.mockup-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.mockup-transcript {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.transcript-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    max-width: 85%;
}

.transcript-bubble.agent {
    background: var(--bg-secondary);
    align-self: flex-start;
}

.transcript-bubble.customer {
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    align-self: flex-end;
}

.bubble-speaker {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.bubble-text {
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.mockup-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    padding: 0 var(--space-md) var(--space-md);
}

.waveform-bar {
    width: 3px;
    height: var(--height);
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(odd) {
    animation-delay: 0s;
}

.waveform-bar:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* CRM Mockup */
.crm-mockup {
    width: 100%;
}

.crm-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.crm-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.crm-info {
    display: flex;
    flex-direction: column;
}

.crm-name {
    font-weight: 600;
    color: var(--text-primary);
}

.crm-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.crm-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.timeline-date {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.timeline-event {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.crm-tags {
    display: flex;
    gap: var(--space-sm);
}

.crm-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(212, 165, 48, 0.15);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
}

/* Campaign Mockup */
.campaign-mockup {
    width: 100%;
}

.campaign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.campaign-title {
    font-weight: 600;
    color: var(--text-primary);
}

.campaign-status {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.campaign-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.campaign-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.c-stat {
    text-align: center;
    padding: var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.c-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.c-stat-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

.campaign-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Compliance Mockup */
.compliance-mockup {
    width: 100%;
}

.compliance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.compliance-title {
    font-weight: 600;
    color: var(--text-primary);
}

.compliance-score {
    padding: 0.25rem 0.5rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-radius: var(--radius-md);
}

.compliance-checks {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.check-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.check-item.passed {
    color: var(--success);
}

.check-item.passed svg {
    color: var(--success);
}

.check-item span:last-child {
    color: var(--text-secondary);
}

.compliance-recording {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.recording-indicator {
    color: var(--error);
    animation: pulse 2s ease-in-out infinite;
}

/* Marketing Mockup */
.marketing-mockup {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.marketing-message,
.marketing-reply {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    max-width: 90%;
}

.marketing-message {
    background: var(--bg-elevated);
    align-self: flex-start;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.message-type {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.message-time {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

.message-content {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.marketing-reply {
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    align-self: flex-end;
}

.reply-text {
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.marketing-automation {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xs);
}

.automation-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-radius: var(--radius-full);
}

/* Integration Mockup */
.integration-mockup {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-lg);
}

.center-icon {
    font-size: 1.5rem;
}

.center-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.integration-connections {
    position: absolute;
    inset: 0;
}

.integration-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
}

.integration-item:nth-child(1) { top: 0; left: 0; }
.integration-item:nth-child(2) { top: 0; right: 0; }
.integration-item:nth-child(3) { bottom: 0; left: 0; }
.integration-item:nth-child(4) { bottom: 0; right: 0; }

.int-logo {
    font-size: 1rem;
}

.int-name {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.integration-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.integration-lines line {
    stroke: var(--accent-primary);
    stroke-width: 1;
    opacity: 0.3;
}

/* Demo Button */
.solution-demo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.solution-demo-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: transparent;
    color: white;
}

.solution-demo-btn svg {
    transition: transform var(--transition-base);
}

.solution-demo-btn:hover svg {
    transform: scale(1.1);
}

/* ---------- How It Works Section ---------- */
.how-it-works {
    padding: var(--space-4xl) 0;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    width: 100%;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.workflow-step:nth-child(odd) {
    flex-direction: row;
}

.workflow-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-visual {
    flex-shrink: 0;
}

.step-icon {
    font-size: 2.5rem;
}

.workflow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    margin: var(--space-md) 0;
}

@media (max-width: 640px) {
    .workflow-step,
    .workflow-step:nth-child(odd),
    .workflow-step:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    
    .step-content {
        order: 2;
    }
    
    .step-visual {
        order: 1;
    }
}

/* ---------- Stats Banner ---------- */
.solutions-stats-banner {
    padding: var(--space-3xl) 0;
    background: linear-gradient(
        135deg,
        rgba(212, 165, 48, 0.08) 0%,
        rgba(212, 165, 48, 0.02) 50%,
        rgba(212, 165, 48, 0.06) 100%
    );
    border-top: 1px solid rgba(212, 165, 48, 0.15);
    border-bottom: 1px solid rgba(212, 165, 48, 0.15);
}

[data-theme="light"] .solutions-stats-banner {
    background: linear-gradient(
        135deg,
        rgba(184, 145, 42, 0.06) 0%,
        rgba(184, 145, 42, 0.02) 50%,
        rgba(184, 145, 42, 0.05) 100%
    );
}

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

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}