/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fefefe;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

/* Left Column - Content */
.hero-content {
    max-width: 600px;
    padding-right: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.cube-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.cube-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-image: url('screenshots/box_no_background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.app-name {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Headlines */
.headlines {
    margin-bottom: 48px;
}

.main-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}

.sub-headline {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
}

/* Email Form */
.email-form-container {
    margin-bottom: 32px;
}

.email-form {
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#email {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-family: inherit;
}

#email::placeholder {
    color: #9ca3af;
}

#email:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.join-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

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

.form-disclaimer {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 24px;
}

/* Social Links */
.social-links {
    margin-top: 32px;
}

.social-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: #8B5CF6;
}

.social-link::before {
    content: '🔗';
    font-size: 0.875rem;
}

/* Right Column - App Screenshots */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 650px;
}

.screenshots-stack {
    position: relative;
    width: 500px;
    height: 650px;
}

.phone-container {
    position: absolute;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Main screenshot (front) */
.phone-main {
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background screenshots */
.phone-background {
    z-index: 1;
    opacity: 0.9;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-left {
    top: 10px;
    left: -120px;
    transform: rotate(-18deg) scale(0.9);
}

.phone-right {
    top: 20px;
    right: -120px;
    transform: rotate(22deg) scale(0.9);
}



.phone-frame {
    position: relative;
    width: 320px;
    height: 650px;
    background: transparent;
    border-radius: 36px;
    padding: 0;
    overflow: hidden;
}



.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
    background: transparent;
}

/* Success/Error Messages */
.success-message {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    color: #166534;
    font-weight: 500;
    text-align: center;
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
}

/* Form Submitting State */
.form-submitting .join-btn {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-submitting .join-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-grid {
        gap: 60px;
    }
    
    .hero-content {
        padding-right: 20px;
    }
    
    .main-headline {
        font-size: 3rem;
    }
    
    .screenshots-stack {
        width: 450px;
        height: 570px;
    }
    
    .phone-frame {
        width: 280px;
        height: 570px;
    }
    
    .phone-left {
        top: 5px;
        left: -90px;
        transform: rotate(-15deg) scale(0.85);
    }
    
    .phone-right {
        top: 15px;
        right: -90px;
        transform: rotate(18deg) scale(0.85);
    }
    

}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        max-width: 100%;
    }
    
    .main-headline {
        font-size: 2.5rem;
    }
    
    .sub-headline {
        font-size: 1.125rem;
        max-width: 100%;
    }
    
    .form-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .join-btn {
        width: 100%;
    }
    
    .screenshots-stack {
        width: 380px;
        height: 508px;
    }
    
    .phone-frame {
        width: 250px;
        height: 508px;
    }
    
    .phone-left {
        top: 5px;
        left: -70px;
        transform: rotate(-12deg) scale(0.8);
    }
    
    .phone-right {
        top: 15px;
        right: -70px;
        transform: rotate(15deg) scale(0.8);
    }
    

    
    .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .main-headline {
        font-size: 2rem;
    }
    
    .app-name {
        font-size: 1.875rem;
    }
    
    .screenshots-stack {
        width: 320px;
        height: 448px;
    }
    
    .phone-frame {
        width: 220px;
        height: 448px;
    }
    
    .phone-left {
        top: 0px;
        left: -55px;
        transform: rotate(-10deg) scale(0.75);
    }
    
    .phone-right {
        top: 10px;
        right: -55px;
        transform: rotate(12deg) scale(0.75);
    }
    

    
    .hero-grid {
        gap: 40px;
    }
}

/* Subtle animations */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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



/* Focus states for accessibility */
.join-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.social-link:focus {
    outline: none;
    color: #8B5CF6;
    text-decoration: underline;
}