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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.demo-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ===== MOBILE STYLES (default) ===== */
/* On mobile, show full-screen iframe */
.flutter-iframe-mobile {
    display: block;
    width: 100%;
    height: 100vh;
    border: none;
    background: white;
}

.phone-frame {
    display: none; /* Hide phone frame on mobile */
}

.demo-banner {
    display: none; /* Hide banner on mobile to maximize screen space */
}

/* ===== DESKTOP STYLES (768px and above) ===== */
@media (min-width: 768px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    /* Hide mobile iframe on desktop */
    .flutter-iframe-mobile {
        display: none;
    }

    /* Show phone frame on desktop */
    .phone-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 375px;
        height: 812px;
        background: #1a1a1a;
        border-radius: 50px;
        padding: 15px;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        position: relative;
        animation: fadeIn 0.6s ease-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Notch at the top */
    .phone-notch {
        width: 150px;
        height: 25px;
        background: #1a1a1a;
        border-radius: 0 0 20px 20px;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    }

    /* Screen area */
    .phone-screen {
        flex: 1;
        width: 100%;
        background: white;
        border-radius: 40px;
        overflow: hidden;
        position: relative;
        margin-top: 10px;
    }

    .flutter-iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

    /* Home indicator at the bottom (iPhone X style) */
    .phone-home-button {
        width: 140px;
        height: 5px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
        margin-top: 8px;
    }

    /* Demo banner */
    .demo-banner {
        display: block;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        animation: slideUp 0.6s ease-out 0.3s backwards;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    .banner-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 16px 28px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.3);
    }

    .banner-icon {
        font-size: 20px;
    }

    .banner-text {
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }

    .banner-cta {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-decoration: none;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        transition: transform 0.2s, box-shadow 0.2s;
        margin-left: 8px;
    }

    .banner-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .banner-cta:active {
        transform: translateY(0);
    }
}

/* ===== LARGE DESKTOP (1200px and above) ===== */
@media (min-width: 1200px) {
    .phone-frame {
        width: 390px;  /* Slightly larger on big screens */
        height: 844px; /* iPhone 14 Pro dimensions */
    }
}

/* ===== TABLET LANDSCAPE (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .phone-frame {
        width: 340px;
        height: 730px;
    }
}
