/* Twisthand Labs v6 - Split-Screen WhatsApp Demo with Unified Aesthetic */

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-subtle) 100%);
}

.hero-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SPLIT-SCREEN WHATSAPP DEMO
   ============================================ */

.whatsapp-demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Fixed viewport - NO SCROLLING */
.demo-flow.split-screen {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--bg-subtle);
    padding: 0;
    height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--navy);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-title {
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--green);
    border-radius: 20px;
    font-weight: 500;
}

/* SPLIT CONTENT AREA */
.split-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

/* LEFT SIDE: Conversation Thread */
.conversation-thread {
    position: relative;
    background: #f8f9fa;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* RIGHT SIDE: Process Display - SAME AESTHETIC */
.process-panel {
    position: relative;
    background: #f8f9fa; /* Same as left */
    padding: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-display {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LEFT SIDE: Messages stack up */
.flow-item {
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translateY(10px);
}

.flow-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RIGHT SIDE: Processes fade in/out (centered) */
.process-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.process-item.visible {
    opacity: 1;
    pointer-events: auto;
}

.process-item.exiting {
    opacity: 0;
}

/* Chat messages with emphasis hierarchy */
.chat-message {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 85%;
    line-height: 1.7;
}

.chat-message.tenant {
    margin-left: auto;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--blue);
    font-size: 1.05rem;
    font-weight: 500;
}

.chat-message.agent {
    margin-right: auto;
    background: white;
    border-left: 4px solid var(--green);
    font-size: 0.95rem;
}

.chat-message.landlord {
    background: #fff3e0;
    margin-left: auto;
    border-left: 4px solid #ff9800;
    font-size: 0.9rem;
}

.chat-message.engineer {
    background: #f3e5f5;
    margin-left: auto;
    border-left: 4px solid #9c27b0;
    font-size: 0.9rem;
}

.message-label {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Process blocks - SAME STYLING AS BEFORE */
.process-inline {
    padding: 1.25rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border-left: 4px solid var(--navy);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.process-inline.processing {
    border-color: var(--gold);
    animation: processGlow 2s ease-in-out infinite;
}

@keyframes processGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(214, 158, 46, 0); }
    50% { box-shadow: 0 0 20px rgba(214, 158, 46, 0.2); }
}

.process-inline.complete {
    border-color: var(--green);
    background: rgba(56, 161, 105, 0.05);
}

.process-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.process-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.process-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.process-details {
    margin-left: 2.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.process-result {
    margin-top: 0.75rem;
    margin-left: 2.25rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    font-family: 'Monaco', 'Consolas', monospace;
}

.result-item.success {
    color: var(--green);
    font-weight: 600;
}

.result-item.warning {
    color: var(--gold);
    font-weight: 600;
}

.loading-animation {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

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

/* Typing indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--green);
    max-width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-dots {
    display: flex;
    gap: 6px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* ============================================
   VIDEO-STYLE TIMELINE FOOTER
   ============================================ */

.timeline-footer {
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
}

.timeline-context {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.current-step {
    font-size: 0.875rem;
    color: var(--navy);
    font-weight: 600;
}

.time-remaining {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: 'Monaco', monospace;
}

.timeline-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green));
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.timeline-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--green);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.timeline-milestones {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 100px;
}

.milestone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-bottom: 0.35rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.milestone.complete .milestone-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.milestone.active .milestone-dot {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.milestone-label {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-light);
    line-height: 1.2;
    max-width: 80px;
}

.milestone.active .milestone-label {
    color: var(--text);
    font-weight: 600;
}

.milestone.complete .milestone-label {
    color: var(--text);
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 968px) {
    .split-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .conversation-thread {
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .demo-flow.split-screen {
        height: 900px;
    }
}

@media (max-width: 768px) {
    .whatsapp-demo-container {
        padding: 0;
    }
    
    .demo-flow.split-screen {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .conversation-thread,
    .process-panel {
        padding: 1rem;
    }
    
    .flow-item,
    .process-item {
        width: 95%;
    }
    
    .chat-message {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .chat-message.tenant {
        font-size: 1.1rem;
    }
    
    .timeline-footer {
        padding: 0.75rem 1rem;
    }
    
    .milestone-label {
        font-size: 0.55rem;
        max-width: 60px;
    }
    
    .current-step {
        font-size: 0.75rem;
    }
    
    .time-remaining {
        font-size: 0.65rem;
    }
}

/* ============================================
   VOICE DEMO
   ============================================ */

/* ============================================
   VOICE DEMO - AUDIO PLAYER & TRANSCRIPT
   ============================================ */

.voice-demo-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   AUDIO PLAYER
   ============================================ */

.voice-player {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--bg-subtle);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-subtle);
}

.call-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.call-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.call-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.caller-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.125rem;
}

.call-status {
    font-size: 0.875rem;
    color: var(--text-light);
}

.call-duration {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* ============================================
   WAVEFORM VISUALIZATION
   ============================================ */

.waveform-container {
    position: relative;
    height: 120px;
    background: var(--bg-subtle);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.waveform-visual {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
    gap: 4px;
}

.wave-bar {
    flex: 1;
    background: var(--navy);
    border-radius: 2px;
    opacity: 0.3;
    transition: all 0.3s ease;
    min-height: 4px;
}

.waveform-visual.playing .wave-bar {
    animation: waveAnimation 1.5s ease-in-out infinite;
}

.waveform-visual.playing .wave-bar:nth-child(odd) {
    animation-delay: 0.1s;
}

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

@keyframes waveAnimation {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(37, 99, 235, 0.2);
    pointer-events: none;
    transition: width 0.1s linear;
}

/* ============================================
   PLAYER CONTROLS
   ============================================ */

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    background: #1a2a3d;
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.play-pause-btn {
    width: 56px;
    height: 56px;
}

.play-pause-btn svg {
    width: 24px;
    height: 24px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.playhead {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--blue);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    left: 0%;
    transition: left 0.1s linear;
    cursor: grab;
}

.playhead:active {
    cursor: grabbing;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--text-light);
    min-width: 80px;
}

.time-separator {
    color: var(--text-light);
}

/* ============================================
   TRANSCRIPT
   ============================================ */

.transcript-container {
    grid-column: 1;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--bg-subtle);
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.transcript-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-subtle);
}

.transcript-header h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.transcript-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.transcript-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transcript-line {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.transcript-line:hover {
    background: var(--bg-subtle);
    opacity: 1;
}

.transcript-line.active {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--blue);
    padding-left: calc(1rem - 4px);
    opacity: 1;
}

.speaker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    color: white;
}

.sarah-avatar {
    background: var(--blue);
}

.john-avatar {
    background: var(--text-light);
}

.message-content {
    flex: 1;
}

.speaker-label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.message-text {
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   METRICS SIDEBAR
   ============================================ */

.metrics-sidebar {
    grid-column: 2;
    grid-row: 1 / 3;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--bg-subtle);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.metrics-sidebar h4 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-subtle);
}

.metric-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
}

.metric-value.large {
    font-size: 1.5rem;
    font-weight: 700;
}

.sentiment-gauge {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.sentiment-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    width: 50%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Sentiment states */
.sentiment-fill.negative { width: 20%; background: #ef4444; }
.sentiment-fill.neutral { width: 50%; background: #f59e0b; }
.sentiment-fill.positive { width: 80%; background: #10b981; }
.sentiment-fill.very-positive { width: 100%; background: #10b981; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .voice-demo-container {
        grid-template-columns: 1fr;
    }
    
    .metrics-sidebar {
        grid-column: 1;
        grid-row: auto;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .metrics-sidebar h4 {
        grid-column: 1 / -1;
    }
    
    .metric-item {
        border-bottom: none;
        border-right: 1px solid var(--bg-subtle);
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .metric-item:nth-child(even) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .voice-player {
        padding: 1.5rem 1rem;
    }
    
    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .waveform-container {
        height: 80px;
    }
    
    .player-controls {
        flex-wrap: wrap;
    }
    
    .progress-bar {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-pause-btn {
        width: 48px;
        height: 48px;
    }
    
    .transcript-container {
        padding: 1.5rem 1rem;
        max-height: 500px;
    }
    
    .transcript-line {
        padding: 0.75rem;
    }
    
    .speaker-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .metrics-sidebar {
        grid-template-columns: 1fr;
    }
    
    .metric-item {
        border-right: none;
        border-bottom: 1px solid var(--bg-subtle);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.control-btn:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.transcript-line:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .wave-bar,
    .progress-fill,
    .playhead,
    .transcript-line,
    .control-btn {
        transition: none !important;
        animation: none !important;
    }
}


   /* ============================================
   OTHER DEMOS & SOLUTION CARDS
   ============================================ */

.interactive-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.interactive-solution {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-solution:hover {
    box-shadow: 0 8px 24px rgba(15, 31, 51, 0.12);
}

.solution-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.solution-rank {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    flex-shrink: 0;
}

.solution-info {
    flex: 1;
}

.solution-info h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.solution-info p {
    color: var(--text);
    margin-bottom: 1rem;
}

.solution-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-subtle);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-trigger {
    padding: 0.75rem 1.5rem;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.demo-trigger:hover {
    background: #1a2a3d;
    transform: translateY(-2px);
}

.demo-container {
    display: none;
    padding: 2rem;
    background: var(--bg-subtle);
    border-top: 1px solid #e2e8f0;
}

.demo-container.active {
    display: block;
}

/* Whisper animations */
.whisper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.whisper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements */
.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.demo-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    font-weight: 500;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* Solutions grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 31, 51, 0.12);
    border-color: var(--blue);
}

/* ============================================
   INTEGRATION CAROUSEL
   ============================================ */

.integrations-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
    overflow: hidden;
}

.integrations-header {
    text-align: center;
    margin-bottom: 3rem;
}

.integrations-header h2 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.integrations-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.integrations-carousel {
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.integrations-carousel::before,
.integrations-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.integrations-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-subtle) 0%, transparent 100%);
}

.integrations-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-subtle) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 3rem;
    animation: scrollRight 40s linear infinite;
    will-change: transform;
}

.integrations-carousel-reverse .carousel-track {
    animation: scrollLeft 40s linear infinite;
}

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

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

.carousel-track:hover {
    animation-play-state: paused;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.integration-logo:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.integration-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.integration-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.logo-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.integrations-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.integrations-footer p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.integrations-footer a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
}

.integrations-footer a:hover {
    color: var(--navy);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .integrations-section {
        padding: 3rem 0;
    }

    .integrations-header h2 {
        font-size: 1.5rem;
    }

    .integrations-header p {
        font-size: 1rem;
    }

    .carousel-track {
        gap: 2rem;
    }

    .integration-logo {
        min-width: 120px;
        padding: 1rem;
    }

    .integration-logo img {
        width: 48px;
        height: 48px;
    }

    .integrations-carousel::before,
    .integrations-carousel::after {
        width: 50px;
    }
}