* {
    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, #667eea 0%, #764ba2 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;
    }
}

/* Scene 1: Network Diagram */
.scene-1-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

#network-diagram {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

.statistics-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.statistics {
    margin-top: 20px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat {
    background: #fee;
    padding: 20px 40px;
    border-radius: 12px;
    border: 2px solid #dc2626;
    opacity: 0;
    animation: scaleIn 0.6s ease 1s forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #991b1b;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #dc2626;
}

/* Scene 2: Fraud Problem */
.split-screen {
    display: flex;
    width: 100%;
    gap: 60px;
    margin-top: 40px;
}

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

.fraudster, .victim {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

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

.fraudster {
    background: #1f2937;
    color: white;
}

.victim {
    background: #f0f9ff;
    border: 3px solid #3b82f6;
}

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

.label {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
}

.action {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 20px;
}

.fake-screen {
    background: #374151;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.caller-id {
    font-size: 1.8em;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 8px;
}

.caller-name {
    font-size: 1.2em;
    color: #93c5fd;
}

.trust {
    color: #22c55e;
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 20px;
}

.money-flow {
    margin-top: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    animation: moneyFloat 2s ease-in-out infinite;
}

@keyframes moneyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Scene 3: Timeline */
.timeline-container {
    width: 100%;
    margin-top: 40px;
}

/* Scene 5: CDB */
.cdb-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.cdb-building {
    background: #6b7280;
    padding: 60px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeInScale 1s ease 0.5s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.building-label {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.cost-tag, .timeline-tag {
    background: #dc2626;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: 600;
    margin: 15px 0;
    display: inline-block;
}

.rejection-stamps {
    margin-top: 40px;
    opacity: 0;
    animation: stampIn 0.6s ease 1.5s forwards;
}

@keyframes stampIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(-5deg) scale(1);
    }
}

.stamp {
    font-size: 3em;
    font-weight: 900;
    color: #ef4444;
    border: 6px solid #ef4444;
    padding: 20px 40px;
    transform: rotate(-15deg);
    display: inline-block;
    margin-bottom: 20px;
}

.reason {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 8px;
    display: inline-block;
    font-weight: 600;
}

/* Scene 6: Capabilities */
.capabilities-list {
    margin-top: 60px;
    width: 100%;
    max-width: 600px;
}

.capability {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    font-size: 1.4em;
    font-weight: 600;
    opacity: 0;
}

.capability.missing {
    background: #fef2f2;
    border: 3px solid #ef4444;
    color: #991b1b;
}

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

.capability[data-delay="0"] {
    animation: slideInLeft 0.6s ease 0.5s forwards;
}
.capability[data-delay="200"] {
    animation: slideInLeft 0.6s ease 0.7s forwards;
}
.capability[data-delay="400"] {
    animation: slideInLeft 0.6s ease 0.9s forwards;
}
.capability[data-delay="600"] {
    animation: slideInLeft 0.6s ease 1.1s forwards;
}
.capability[data-delay="800"] {
    animation: slideInLeft 0.6s ease 1.3s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scene 7: Challenge */
.challenge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.question-mark {
    font-size: 12em;
    font-weight: 700;
    color: #3b82f6;
    opacity: 0;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.what-if {
    font-size: 2.5em;
    font-weight: 600;
    color: #1e40af;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

/* Scene 8: PSTN2 Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.pstn2-logo {
    font-size: 8em;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: logoAppear 1.5s ease 0.5s forwards;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.tagline {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.tag {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: 600;
    opacity: 0;
    animation: tagSlideIn 0.6s ease forwards;
}

.tag:nth-child(1) {
    animation-delay: 2s;
}
.tag:nth-child(2) {
    animation-delay: 2.2s;
}
.tag:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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%;
}

/* Solution Overview Specific Styles */

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

.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-icon {
    font-size: 3em;
}

.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;
}

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

/* Scene 3: Capabilities Pentagon */
.capabilities-pentagon {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
}

/* Scene 3: Capabilities Grid (3x2) */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.capability-icon {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 16px;
    min-width: 140px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.capability-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.capability-icon .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.capability-icon .label {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
}

/* Scene 4: Adoption Timeline */
.adoption-timeline {
    width: 100%;
    max-width: 700px;
}

.timeline-container {
    margin-bottom: 50px;
}

.timeline-bar {
    width: 100%;
    height: 30px;
    background: #e5e7eb;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.adoption-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 15px;
    width: 0%;
    transition: width 0.3s ease;
}

.cp-icons-timeline {
    position: relative;
    height: 40px;
    margin-top: 20px;
}

.cp-timeline-icon {
    position: absolute;
    font-size: 2em;
    transition: all 0.5s ease;
}

.adoption-percentage {
    text-align: center;
    font-size: 3em;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 20px;
}

.path-comparison {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.pstn2-path, .traditional-path {
    flex: 1;
    text-align: center;
}

.path-label {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.path-line {
    height: 6px;
    border-radius: 3px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

.path-line.blue {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
}

.path-line.grey {
    background: #9ca3af;
}

/* Scene 5: VS Comparison */
.vs-comparison {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.comparison-column {
    flex: 1;
    padding: 24px; /* Reduced from 30px (20% reduction) */
    border-radius: 16px;
}

.comparison-column.bad {
    background: #fee;
    border: 3px solid #dc2626;
}

.comparison-column.good {
    background: #f0fdf4;
    border: 3px solid #10b981;
}

.comparison-column h3 {
    text-align: center;
    font-size: 1.2em; /* Reduced from 1.5em (20% reduction) */
    margin-bottom: 20px; /* Reduced from 25px (20% reduction) */
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 15px (20% reduction) */
    padding: 16px; /* Reduced from 20px (20% reduction) */
    margin: 12px 0; /* Reduced from 15px (20% reduction) */
    background: white;
    border-radius: 12px;
}

.item-icon {
    font-size: 1.6em; /* Reduced from 2em (20% reduction) */
}

.item-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.9em; /* Added 10% reduction for better fit */
}

.item-mark {
    font-size: 1.2em; /* Reduced from 1.5em (20% reduction) */
}

.vs-divider {
    font-size: 2em; /* Reduced from 2.5em (20% reduction) */
    font-weight: 900;
    color: #6b7280;
}

/* Scene 8: Security Pillars */
.security-pillars {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.pillar {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 16px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.pillar-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.pillar-title {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.pillar-desc {
    font-size: 0.9em;
    color: #dbeafe;
}

.hacker-blocked {
    text-align: center;
    font-size: 3em;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.5s forwards;
}

.blocked-text {
    font-size: 0.5em;
    color: #dc2626;
    font-weight: 700;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Scene 9: MAPs Diagram */
.maps-diagram {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Further reduced from 20px */
    align-items: center;
    width: 100%;
}

.small-cps {
    display: flex;
    gap: 30px; /* Reduced from 40px */
}

.small-cp {
    text-align: center;
    padding: 15px; /* Further reduced from 20px */
    background: #fee;
    border: 2px solid #dc2626;
    border-radius: 10px;
}

.cp-worry {
    font-size: 2em; /* Further reduced from 2.4em */
    margin-bottom: 6px; /* Further reduced from 8px */
}

.cp-issue {
    font-weight: 600;
    color: #991b1b;
    font-size: 0.95em; /* Added reduction */
}

.map-provider {
    text-align: center;
    padding: 25px; /* Further reduced from 36px */
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.3);
}

.map-icon {
    font-size: 3em; /* Reduced from 4em */
    margin-bottom: 12px; /* Reduced from 15px */
}

.map-label {
    font-size: 1.6em; /* Reduced from 2em */
    font-weight: 900;
    color: white;
    margin-bottom: 15px; /* Reduced from 20px */
}

.map-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; /* Reduced from 10px */
}

.service {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px; /* Reduced from 10px */
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.9em; /* Added reduction */
}

.happy-cps {
    display: flex;
    gap: 30px; /* Reduced from 40px */
}

.happy-cp {
    font-size: 1.3em; /* Reduced from 1.5em */
    padding: 15px 30px; /* Reduced from 20px 40px */
    background: #f0fdf4;
    border: 3px solid #10b981;
    border-radius: 10px;
    font-weight: 600;
    color: #166534;
}

/* Scene 10: Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 900px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
    border: 3px solid #10b981;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

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

.benefit-stat {
    font-size: 1.8em;
    font-weight: 900;
    color: #166534;
    margin-bottom: 10px;
}

.benefit-desc {
    font-size: 0.95em;
    color: #6b7280;
    font-weight: 600;
}

/* Scene 12: Call to Action */
.cta-container {
    width: 100%;
    max-width: 700px;
}

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

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

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

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
}

.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 {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

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

.pstn2-logo-large {
    font-size: 5em;
    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: 40px;
}

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

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

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

/* 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;
    }

    .scene-1-layout {
        flex-direction: column;
        gap: 20px;
    }

    #network-diagram {
        width: 100%;
        max-width: 400px;
    }

    .split-screen {
        flex-direction: column;
        gap: 30px;
    }

    .pstn2-logo {
        font-size: 4em;
    }

    .tagline {
        flex-direction: column;
        gap: 15px;
    }
}
