/* Landing Page Specific Styles */

body {
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile body override */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }
}

.main-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    height: 100vh;
}

/* Left Side - Content */
.content-section {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logo {
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #e5f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 480px;
}

/* App Store Badge */
.appstore-badge {
    width: 200px;
    margin-top: 30px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.appstore-badge:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.25));
}

/* Email Signup */
.signup-form {
    width: 100%;
    max-width: 450px;
}

.signup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.signup-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-input {
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.email-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.submit-btn {
    padding: 18px 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.privacy-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    text-align: center;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 15px;
    display: none;
    animation: slideIn 0.5s ease;
    text-align: center;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Right Side - Phone Mockups */
.phone-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.phones-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: -40px;
    position: relative;
}

.phone-mockup {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.phone-mockup:nth-child(1) {
    transform: perspective(1000px) rotateY(25deg) rotateX(5deg) scale(0.85);
    z-index: 1;
    margin-right: -60px;
}

.phone-mockup:nth-child(2) {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    z-index: 3;
}

.phone-mockup:nth-child(3) {
    transform: perspective(1000px) rotateY(-25deg) rotateX(5deg) scale(0.85);
    z-index: 1;
    margin-left: -60px;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.1) translateY(-20px) !important;
    z-index: 10 !important;
}

.phone-frame {
    width: 260px;
    height: 520px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 6px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:nth-child(2) {
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Override footer width for landing page */
.footer-content {
    max-width: 1250px;
    justify-content: center;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px 40px 20px;
        overflow-y: visible;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .content-section {
        align-items: center;
        text-align: center;
        order: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .hero-content {
        order: 1;
        margin-bottom: 40px;
    }

    .signup-form {
        order: 3;
        margin-top: 40px;
    }

    .phone-section {
        order: 2;
        padding: 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .phone-mockup {
        transform: none !important;
    }

    .phone-mockup:hover {
        transform: scale(1.03) translateY(-5px) !important;
    }

    .phones-container {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .phone-mockup:nth-child(1),
    .phone-mockup:nth-child(3) {
        margin: 0;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 600px;
        margin-bottom: 0;
    }

    .appstore-badge {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 50px 15px 30px 15px;
        gap: 30px;
        max-width: 100%;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    .signup-form {
        margin-top: 30px;
    }

    .hero-description {
        margin-bottom: 0;
    }

    .phone-section {
        padding: 15px 0;
        width: 100%;
    }

    .phones-container {
        width: 100%;
        max-width: 100%;
        gap: 12px;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .appstore-badge {
        width: 160px;
    }

    .signup-title {
        font-size: 1.3rem;
    }

    .signup-subtitle {
        font-size: 1rem;
    }

    .phone-frame {
        width: calc(32vw - 8px);
        height: calc(64vw - 16px);
        max-width: 300px;
        max-height: 600px;
        min-width: 240px;
        min-height: 480px;
        padding: 4px;
    }

    .floating-element {
        display: none;
    }

    .submit-btn {
        padding: 20px 32px;
        font-size: 16px;
        min-height: 56px;
    }

    .email-input {
        padding: 18px 20px;
        font-size: 16px;
        min-height: 56px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 40px 10px 20px 10px;
        gap: 20px;
    }

    .hero-content {
        margin-bottom: 20px;
    }

    .signup-form {
        margin-top: 20px;
    }

    .phone-section {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .appstore-badge {
        width: 140px;
    }

    .signup-form {
        max-width: 100%;
    }

    .signup-title {
        font-size: 1.2rem;
    }

    .signup-subtitle {
        font-size: 0.95rem;
    }

    .phone-frame {
        width: 130px;
        height: 260px;
    }

    .phones-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .phone-mockup:hover {
        transform: scale(1.02) translateY(-3px) !important;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .main-container {
        grid-template-columns: 1fr 1fr;
        height: auto;
        min-height: 100vh;
        padding: 20px;
        gap: 40px;
    }

    .content-section {
        order: 1;
        text-align: left;
    }

    .phone-section {
        order: 2;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .phone-frame {
        width: 140px;
        height: 280px;
    }
}
