/* Modern macOS demo styles - Big Sur aesthetic */

#demo-section {
    padding: 120px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    margin-bottom: 60px;
}

.demo-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

#demo-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

.demo-step {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Demo container */
#demo-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 680px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#macos-demo {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Ambient backdrop */
.demo-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Modern window styling */
.app-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 560px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 10;
}

/* Window titlebar */
.window-titlebar {
    height: 52px;
    background: linear-gradient(to bottom, rgba(246, 246, 246, 1) 0%, rgba(240, 240, 240, 1) 100%);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    z-index: 10;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 0.5px 1px rgba(0, 0, 0, 0.2);
}

.traffic-light.red {
    background: linear-gradient(135deg, #ff6159 0%, #ff5549 100%);
}

.traffic-light.yellow {
    background: linear-gradient(135deg, #ffbd30 0%, #ffaa00 100%);
}

.traffic-light.green {
    background: linear-gradient(135deg, #29ca44 0%, #00c134 100%);
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #000;
    opacity: 0.85;
    letter-spacing: -0.01em;
}

.window-body {
    height: calc(100% - 52px);
    background: #fff;
}

/* Slack layout */
.slack-layout {
    display: flex;
    height: 100%;
}

.slack-sidebar {
    width: 240px;
    background: #3f0e40;
    color: rgba(255, 255, 255, 0.95);
    padding: 20px 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.workspace-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.channels {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.15s ease;
}

.channel.active {
    background: #1164a3;
    color: #fff;
}

.slack-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.channel-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1c1d;
    margin: 0;
}

.channel-meta {
    font-size: 13px;
    color: #616061;
}

.messages-area {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.message.typing-message {
    opacity: 0.4;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.author {
    font-weight: 700;
    font-size: 15px;
    color: #1d1c1d;
}

.timestamp {
    font-size: 12px;
    color: #616061;
}

.message-text {
    font-size: 15px;
    line-height: 1.5;
    color: #1d1c1d;
}

.message-input-area {
    padding: 20px 24px;
    border-top: 1px solid #e8e8e8;
}

.message-input {
    border: 1px solid #8d8d8d;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.input-placeholder {
    color: #8d8d8d;
}

/* Notes layout */
.notes-layout {
    display: flex;
    height: 100%;
}

.notes-sidebar {
    width: 220px;
    background: linear-gradient(to bottom, #f7f7f7, #f0f0f0);
    border-right: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 16px 8px;
}

.note-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.note-item.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.notes-editor {
    flex: 1;
    padding: 40px 48px;
    background: #fff;
}

.note-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.note-body {
    font-size: 16px;
    line-height: 1.7;
    color: #1d1d1f;
    min-height: 300px;
    white-space: pre-wrap;
}

/* Cadence indicator pill - compact and elegant */
.cadence-pill {
    position: absolute;
    top: 80px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(45, 212, 191, 0.3);
    border-radius: 100px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px rgba(45, 212, 191, 0.2),
        0 0 0 1px rgba(45, 212, 191, 0.1);
}

.cadence-pill.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pill-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    position: relative;
    flex-shrink: 0;
}

.pill-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 14px;
    background: rgba(12, 10, 9, 0.9);
    border-radius: 2px 2px 4px 4px;
}

.pill-waveform {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 16px;
}

.pill-waveform span {
    width: 2px;
    background: #2dd4bf;
    border-radius: 1px;
    animation: mini-wave 1s ease-in-out infinite;
}

.pill-waveform span:nth-child(1) { height: 6px; animation-delay: 0s; }
.pill-waveform span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.pill-waveform span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.pill-waveform span:nth-child(4) { height: 10px; animation-delay: 0.3s; }

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

.pill-label {
    font-size: 13px;
    font-weight: 600;
    color: #2dd4bf;
    letter-spacing: 0.01em;
}

/* Voice transcript callout */
.voice-callout {
    position: absolute;
    top: 140px;
    right: 60px;
    max-width: 320px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
}

.voice-callout.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.callout-arrow {
    position: absolute;
    top: -6px;
    right: 40px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotate(45deg);
}

.callout-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1d1d1f;
    font-style: italic;
}

.callout-text::before {
    content: '"';
    color: var(--accent-primary);
}

.callout-text::after {
    content: '"';
    color: var(--accent-primary);
}

/* Progress indicator */
.demo-progress {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 24px;
    padding: 16px 28px;
    background: rgba(12, 10, 9, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    z-index: 100;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57534e;
    transition: all 0.3s ease;
}

.progress-step.active .step-dot {
    background: #2dd4bf;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #2dd4bf;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #demo-container {
        height: 600px;
    }

    .app-window {
        width: 92%;
        height: 500px;
    }

    .cadence-pill,
    .voice-callout {
        right: 40px;
    }

    .slack-sidebar,
    .notes-sidebar {
        width: 180px;
    }

    .notes-editor {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    #demo-section {
        padding: 80px 16px;
    }

    #demo-container {
        height: 480px;
        border-radius: 12px;
    }

    .app-window {
        width: 95%;
        height: 400px;
    }

    .window-titlebar {
        height: 44px;
    }

    .traffic-light {
        width: 10px;
        height: 10px;
    }

    .slack-sidebar,
    .notes-sidebar {
        display: none;
    }

    .messages-area,
    .notes-editor {
        padding: 16px;
    }

    .cadence-pill {
        top: 60px;
        right: 20px;
        padding: 10px 16px;
        gap: 8px;
    }

    .voice-callout {
        top: 110px;
        right: 20px;
        max-width: 260px;
        padding: 12px 16px;
    }

    .demo-progress {
        bottom: 20px;
        gap: 16px;
        padding: 12px 20px;
    }

    .step-label {
        font-size: 10px;
    }
}
