* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.animation-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    min-height: 800px;
    position: relative;
    overflow: hidden;
}

.scene {
    padding: 40px 80px 140px;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.visual-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    transform: translateY(-10%);
}

.scene-title {
    font-size: 3em;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.narration {
    position: absolute;
    bottom: 160px;
    left: 60px;
    right: 60px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #4a5568;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    background: rgba(248, 250, 252, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Scene 1: Core Insight */
.split-comparison {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: center;
    padding-bottom: 2em;
}

.comparison-left, .comparison-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cdb-building {
    text-align: center;
    padding: 30px;
    background: #9ca3af;
    border-radius: 16px;
    transition: opacity 1s ease;
}

.cdb-building.fade-out {
    opacity: 1;
}

.building-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.building-label {
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.cost-label {
    font-size: 1.5em;
    font-weight: 700;
    color: #dc2626;
    background: #fee;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.cp-network {
    position: relative;
    width: 100%;
    height: 300px;
}

.cp-node {
    position: absolute;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.cp-databases {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 120px;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #3b82f6;
}

.db-icon {
    font-size: 1.8em;
    opacity: 0.9;
}

.cp-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 8px;
}

.insight-text {
    margin-top: 20px;
    font-size: 1.3em;
    font-weight: 700;
    color: #10b981;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

/* Scene 4: Law Enforcement Access */
.le-scenario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding-bottom: 2em;
}

.officer-panel {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e3a5f 0%, #334155 100%);
    border-radius: 16px;
    color: white;
    min-width: 180px;
}

.officer-icon {
    font-size: 5em;
    margin-bottom: 15px;
}

.officer-label {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.officer-task {
    font-size: 0.9em;
    color: #94a3b8;
}

.arrow-container {
    font-size: 3em;
    color: #3b82f6;
    animation: arrowPulse 1s ease infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.7; }
}

.browser-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.browser-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 400px;
}

.browser-bar {
    background: #e5e7eb;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.url-bar {
    flex: 1;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #374151;
    text-align: center;
}

.browser-content {
    padding: 30px;
}

.query-form {
    text-align: center;
}

.form-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.form-input {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.input-label {
    font-size: 0.85em;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.input-value {
    font-size: 1.2em;
    font-weight: 600;
    color: #1e3a5f;
    font-family: monospace;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes typeIn {
    from { width: 0; }
    to { width: 100%; }
}

.form-button {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    display: inline-block;
}

.browser-note {
    margin-top: 15px;
    font-size: 0.85em;
    color: #6b7280;
    font-style: italic;
}

/* Scene 5: Data Available */
.database-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding-bottom: 2em;
}

.query-result-panel {
    background: linear-gradient(135deg, #1e3a5f 0%, #334155 100%);
    padding: 20px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.result-icon {
    font-size: 1.5em;
}

.result-title {
    font-size: 1.1em;
    font-weight: 600;
}

.result-number {
    font-family: monospace;
    font-size: 1.3em;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
}

.data-sources {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.data-card {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.card-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-item {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #4a5568;
}

/* Scene 6: Validating Legal Requests */
.validation-options {
    width: 100%;
    max-width: 900px;
    padding-top: 1.5em;
    padding-bottom: 4em;
    transform: translateY(5%);
}

.validation-intro {
    text-align: center;
    margin-bottom: 30px;
}

.intro-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.3em;
    font-weight: 600;
    color: #1e3a5f;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.option-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.option-card[data-index="3"] {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.option-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.option-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.option-desc {
    font-size: 0.9em;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 12px;
}

.option-pros {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pro-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.option-card[data-index="3"] .pro-tag {
    background: #d1fae5;
    color: #065f46;
}

/* Scene 8: Call to Action */
.cta-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 2em;
}

.website-display {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
}

.website-display .browser-bar {
    background: #e5e7eb;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.url {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

.website-content {
    padding: 40px;
    text-align: center;
}

.pstn2-logo-large {
    font-size: 4em;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.summary-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.summary-point {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    color: #166534;
    text-align: left;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 100;
}

.control-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.control-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
}

.control-btn.primary:hover {
    opacity: 0.9;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.audio-off {
    background: #fee;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.scene-indicator {
    font-size: 1.2em;
    font-weight: 600;
    color: #4b5563;
    padding: 0 20px;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #e5e7eb;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    transition: width 0.5s ease;
    width: 12.5%;
}

/* Responsive */
@media (max-width: 768px) {
    .scene {
        padding: 40px 30px 140px;
    }

    .scene-title {
        font-size: 2em;
    }

    .narration {
        font-size: 1em;
        bottom: 160px;
        left: 30px;
        right: 30px;
    }

    .le-scenario {
        flex-direction: column;
    }

    .browser-window {
        width: 100%;
        max-width: 350px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .data-sources {
        flex-direction: column;
        align-items: center;
    }

    .pstn2-logo-large {
        font-size: 3em;
    }
}
