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

:root {
    --theme-blue: #0022FF;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

.hero-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - 60% */
.hero-left {
    flex: 0 0 60%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.content-wrapper {
    max-width: 520px;
    width: 100%;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.hero-content {
    max-width: 460px;
}

.tagline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.subscribe-form {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

#email {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

#email:focus {
    outline: none;
    border-color: var(--theme-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 34, 255, 0.1);
}

#submit-btn {
    padding: 1rem 1.75rem;
    background-color: var(--theme-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#submit-btn:hover {
    background-color: #001fe6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 34, 255, 0.3);
}

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

#submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-align: left;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 1rem;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message.hidden {
    display: none;
}

/* Right Side - 40% */
.hero-right {
    flex: 0 0 40%;
    background-color: var(--theme-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
}

.newsletter-preview {
    width: 700px;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    transform: translateX(-6rem);
    z-index: 1;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .hero-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-left {
        flex: none;
        padding: 2rem 1.5rem;
        min-height: 60vh;
    }
    
    .hero-right {
        flex: none;
        height: 40vh;
        min-height: 300px;
    }
    
    .content-wrapper {
        max-width: 100%;
    }
    
    .brand-header {
        margin-bottom: 2rem;
    }
    
    .brand-header h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .tagline {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #email, #submit-btn {
        width: 100%;
        padding: 1.125rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .preview-container {
        justify-content: center;
        padding: 16rem 0 0 0;
    }
    
    .newsletter-preview {
        width: 600px;
        transform: none;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 1.5rem 1rem;
    }
    
    .tagline {
        font-size: 1.75rem;
    }
    
    .newsletter-preview {
        width: 550px;
        transform: none;
        max-height: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}