/**
 * Concept 2: Full-Screen Cinematic Wizard
 * Dramatic full-screen slides with animations
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wizard-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
    z-index: 9999;
}

.wizard-slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 60px 40px;
}

.wizard-slide.active {
    left: 0;
    opacity: 1;
}

.wizard-slide.prev {
    left: -100%;
    opacity: 0;
}

.slide-content {
    max-width: 900px;
    text-align: center;
    color: white;
}

.animated-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.welcome-icon {
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 10px 60px rgba(139, 92, 246, 0.8); }
}

h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.5em;
    color: #cbd5e1;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Feature Highlights */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.8s ease-out calc(0.4s + var(--item-delay, 0s)) both;
}

.highlight-item:nth-child(1) { --item-delay: 0s; }
.highlight-item:nth-child(2) { --item-delay: 0.1s; }
.highlight-item:nth-child(3) { --item-delay: 0.2s; }
.highlight-item:nth-child(4) { --item-delay: 0.3s; }

.highlight-item i {
    font-size: 24px;
    color: #10b981;
}

/* Agents Showcase */
.agents-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.agent-float {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: floatIn 0.8s ease-out var(--delay) both;
    transition: all 0.3s;
}

.agent-float:hover {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.agent-float i {
    font-size: 40px;
    color: #8b5cf6;
}

.agent-float span {
    font-size: 14px;
    font-weight: 600;
}

/* Process Flow */
.process-flow {
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
    animation: slideInRight 0.8s ease-out calc(var(--step-delay, 0s)) both;
}

.flow-step:nth-child(1) { --step-delay: 0.2s; }
.flow-step:nth-child(3) { --step-delay: 0.6s; }
.flow-step:nth-child(5) { --step-delay: 1s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flow-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.flow-content {
    text-align: left;
}

.flow-content h3 {
    margin-bottom: 8px;
    font-size: 1.3em;
}

.flow-content p {
    color: #94a3b8;
    font-size: 0.95em;
}

.flow-arrow {
    text-align: center;
    font-size: 32px;
    color: #3b82f6;
    margin: 15px 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Example Card */
.example-card {
    max-width: 600px;
    margin: 50px auto 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    animation: scaleIn 0.8s ease-out 0.3s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.example-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.action-badge {
    padding: 15px 30px;
    background: #10b981;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.5em;
}

.symbol {
    font-size: 2.5em;
    font-weight: bold;
}

.confidence {
    font-size: 1.3em;
    color: #60a5fa;
}

.example-body {
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1em;
}

.example-consensus {
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

/* Chat Demo */
.chat-demo {
    max-width: 600px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-example {
    display: flex;
    gap: 15px;
    animation: slideInLeft 0.8s ease-out calc(0.3s + var(--chat-delay, 0s)) both;
}

.chat-example.user {
    --chat-delay: 0s;
    justify-content: flex-end;
}

.chat-example.agent {
    --chat-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.chat-bubble {
    padding: 20px;
    border-radius: 16px;
    max-width: 400px;
}

.user .chat-bubble {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.agent .chat-bubble {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.chat-bubble strong {
    display: block;
    margin-bottom: 8px;
    color: #a78bfa;
}

.chat-bubble p {
    color: #cbd5e1;
    line-height: 1.6;
}

.chat-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    animation: slideInUp 0.8s ease-out calc(0.8s + var(--feat-delay, 0s)) both;
}

.feature:nth-child(1) { --feat-delay: 0s; }
.feature:nth-child(2) { --feat-delay: 0.1s; }
.feature:nth-child(3) { --feat-delay: 0.2s; }

.feature i {
    font-size: 24px;
    color: #3b82f6;
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.progress-dot.active {
    background: #3b82f6;
    width: 40px;
    border-radius: 7px;
}

.progress-dot:hover {
    transform: scale(1.2);
}

/* Navigation */
.wizard-navigation {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.nav-main {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.prev-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prev-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.skip-btn {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.skip-btn:hover {
    color: white;
    border-color: white;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .agents-showcase {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .nav-main {
        justify-content: space-between;
    }
}
