:root {
    --device-scale: 1.1;
    --accent-color: #007AFF; /* iOS Blue */
}

body {
    margin: 0;
    background: #0b0b0b;
    font-family: 'SF Pro Display', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    color: white;
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 10px;
}

/* The magic container that handles mobile vs desktop */
.content-wrapper {
    display: flex;
    flex-direction: row; /* Side by side on desktop */
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

/* Stack vertically on mobile */
@media (max-width: 850px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* DEVICE STYLES */
.device-container {
    position: relative;
    width: min(80vw, 400px);
    aspect-ratio: 1/1;
    transform: scale(var(--device-scale));
    animation: 
        drop 1.2s cubic-bezier(.17,.84,.44,1),
        hoverFloat 3s ease-in-out 1.2s infinite;
    z-index: 2;
}

.device-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.device-screen {
    position: absolute;
    top: 10%;
    left: 6.2%;
    width: 100%; /* Adjusted to fit within frame */
    height: 80%;
    overflow: hidden;
}

.device-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TEXT STYLES - Clean & No Background */
.hero-text {
    max-width: 800px;
    opacity: 0;
    animation: fadeInText 1s ease forwards 1s; /* Delayed until device drops */
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.hero-text span {
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.0;
    margin-bottom: 30px;
}

.cta-btn {
    background: white;
    color: black;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* ANIMATIONS */
@keyframes drop {
    0% { transform: translateY(100vh) scale(var(--device-scale)); }
    100% { transform: translateY(0) scale(var(--device-scale)); }
}

@keyframes hoverFloat {
    0%, 100% { transform: translateY(0) scale(var(--device-scale)); }
    50% { transform: translateY(-15px) scale(var(--device-scale)); }
}

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