@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    margin: 0;
    overflow: hidden;
}

.scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-out;
    transform: scale(1.05);
    padding: 2rem;
    padding-bottom: 6rem;
    /* Ensure nothing is hidden under control bar */
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Safe vertical centering for flex container: centers if fits, scrolls if overflows */
.scene::before,
.scene::after {
    content: '';
    margin: auto;
}

.scene>*:first-child,
.scene>*:last-child {
    margin-top: auto;
    margin-bottom: auto;
}

.scene.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.gradient-text {
    background: linear-gradient(135deg, #22c55e, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.whatsapp-bubble {
    background: #25D366;
    border-radius: 20px 20px 20px 0;
    padding: 15px 25px;
    color: white;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dashboard-mockup {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #334155;
    z-index: 50;
}

.progress-bar {
    height: 100%;
    background: #22c55e;
    width: 0%;
    transition: width 0.1s linear;
}

.control-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
