/*--------------------------------------------------------------
# Silent Agent Showcase Section
--------------------------------------------------------------*/

.showcase-section {
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

/* ── "Watch" Label ── */
.showcase-watch-label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(10px);
}

/* ── Main Canvas ── */
.showcase-canvas {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: #F8F9FB;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ── Desktop Sim ── */
.sc-desktop {
    position: absolute;
    inset: 0;
    padding: 30px;
}

/* ── Windows ── */
.sc-window {
    background: var(--ink);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sc-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sc-dot.red { background: #FF5F57; }
.sc-dot.yellow { background: #FFBD2E; }
.sc-dot.green { background: #28C840; }

.sc-window-title {
    margin-left: 10px;
    font-family: var(--font-primary);
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}

/* Document Window */
.sc-doc-window {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 55%;
    height: calc(100% - 60px);
    z-index: 2;
    opacity: 0;
}

.sc-doc-body {
    padding: 28px 24px;
    position: relative;
}

.sc-doc-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.sc-doc-meta {
    font-family: var(--font-primary);
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 20px;
}

.sc-doc-content {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    min-height: 200px;
    position: relative;
}

.sc-doc-content .typed-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #3B82F6;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Edits overlay */
.sc-edits-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
}

.sc-edit-mark {
    display: inline;
    background: rgba(245, 158, 11, 0.15);
    border-bottom: 2px solid #F59E0B;
    padding: 0 2px;
    border-radius: 2px;
}

.sc-edit-insert {
    display: inline;
    color: #10B981;
    font-weight: 500;
}

/* Complete Badge */
.sc-complete-badge {
    position: absolute;
    top: 28px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: #10B981;
    opacity: 0;
    transform: scale(0.9);
}

/* ── Agent Floating Cards ── */
.sc-agent-card {
    position: absolute;
    width: 220px;
    background: var(--ink);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.sc-agent-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

.sc-agent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: agentPulse 2s infinite;
}

@keyframes agentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sc-agent-body {
    padding: 14px;
}

/* Research Agent */
.sc-research-agent {
    top: 40px;
    right: 30px;
}

.sc-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.sc-search-text {
    font-family: var(--font-primary);
    font-size: 11px;
    color: #374151;
}

.sc-search-cursor {
    font-family: monospace;
    color: #7627d8;
    animation: blink 0.6s infinite;
}

.sc-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.sc-result-item {
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sc-r-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7627d8, #f34baa);
    border-radius: 4px;
    opacity: 0.4;
}

.sc-result-item:nth-child(2) .sc-r-bar { opacity: 0.3; }
.sc-result-item:nth-child(3) .sc-r-bar { opacity: 0.2; }

.sc-highlight-badge {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    color: #7627d8;
    background: rgba(139, 92, 246, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
}

/* Writing Agent */
.sc-writing-agent {
    top: 260px;
    right: 30px;
}

.sc-typing-indicator {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.sc-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #3B82F6;
    border-radius: 50%;
    animation: typeDot 1.4s infinite;
}

.sc-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.sc-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typeDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.sc-writing-status {
    font-family: var(--font-primary);
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 8px;
}

.sc-progress-bar {
    height: 4px;
    background: #F3F4F6;
    border-radius: 2px;
    overflow: hidden;
}

.sc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 2px;
    transition: width 0.1s;
}

/* Review Agent */
.sc-review-agent {
    bottom: 40px;
    right: 30px;
}

.sc-review-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.sc-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 11px;
    color: #374151;
}

.sc-chk-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid #D1D5DB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.sc-chk-box.checked {
    background: #10B981;
    border-color: #10B981;
}

.sc-chk-box.checked::after {
    content: '✓';
    color: white;
    font-size: 9px;
    font-weight: 700;
}

.sc-review-note {
    font-family: var(--font-primary);
    font-size: 10px;
    color: #F59E0B;
    font-weight: 600;
    opacity: 0;
}

/* ── Cursor ── */
.sc-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ── Timestamp ── */
.showcase-timestamp {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-family: var(--font-primary);
    font-size: 11px;
    color: #6B7280;
    opacity: 0;
    z-index: 10;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .showcase-canvas {
        height: 450px;
    }

    .sc-doc-window {
        width: 100%;
        height: 55%;
        top: 20px;
        left: 0;
    }

    .sc-agent-card {
        width: 160px;
        transform: scale(0.85);
    }

    .sc-research-agent { top: auto; bottom: 140px; right: 10px; }
    .sc-writing-agent { top: auto; bottom: 80px; right: 10px; }
    .sc-review-agent { bottom: 10px; right: 10px; }
}
