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

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at bottom, #FFC99A 0%, #FF9E49 40%, #51002B 100%);
    background-attachment: fixed;
    color: #32325d;
    padding: 0;
    margin: 0;
}

/* Container layout for 1328px and above */
@media (min-width: 1328px) {
    .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        min-height: 100vh;
        align-items: center;
    }
}

/* Container layout below 1328px */
@media (max-width: 1327px) {
    .container {
        display: grid;
        grid-template-columns: 632px 1fr;
        gap: 0;
        min-height: 100vh;
        align-items: center;
        padding: 0 32px 0 0;
    }
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Content column - left side */
.content-column {
    align-items: flex-end;
}

.content-column > * {
    width: 600px;
    max-width: 100%;
}

@media (max-width: 1327px) {
    .content-column {
        width: 632px;
    }
}

/* Logo column - right side */
.logo-column {
    align-items: center;
}

@media (min-width: 1328px) {
    .logo-column {
        padding: 0 64px;
    }
}

@media (max-width: 1327px) {
    .logo-column {
        padding-left: 32px;
        padding-right: 0;
    }
}

.logo-image {
    width: 100%;
    max-height: 100vh;
    height: auto;
    object-fit: contain;
    /* Blend mode for browsers that support it (non-Safari) */
    mix-blend-mode: overlay;
}

/* Safari-specific styles - no blend mode needed, using pre-blended images */
body.safari-browser .logo-image {
    mix-blend-mode: normal;
}

.subheadline {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: white;
    mix-blend-mode: overlay;
}

.headline {
    font-size: 5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 48px;
    color: white;
    mix-blend-mode: overlay;
}

.doing {
    font-weight: 900;
}

.copy {
    font-size: 1.5rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 1rem;
}

.copy:last-of-type {
    margin-bottom: 0;
}

.do-black {
    font-weight: 900;
}

.copy-italic {
    font-style: italic;
}

.cta-copy {
    font-size: 1.25rem;
    line-height: 1.6;
    color: white;
    mix-blend-mode: overlay;
    margin-top: 2rem;
}

.email-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.email-input {
    padding: 1rem 1.75rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    background: #FFE8AF;
    color: #32325d;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.email-input::placeholder {
    color: rgba(50, 50, 93, 0.6);
}

.email-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 232, 175, 0.4);
}

.submit-btn {
    padding: 1rem 1.75rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(90deg, #FF0245 0%, #9A0052 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(154, 0, 82, 0.25);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.form-message {
    padding: 12px 24px;
    border-radius: 50px;
    border-bottom-left-radius: 0;
    font-size: 1rem;
    display: none;
    position: absolute;
    bottom: calc(100% + 20px);
    left: 24px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    background: white;
    color: #32325d;
}

.form-message.success {
    display: inline-block;
}

.form-message.error {
    display: inline-block;
}

.form-message::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 24px;
    height: 24px;
    background: url('/res/images/thought-anchor.png') no-repeat top left;
    background-size: contain;
}


@media (max-width: 1080px) {
    body {
        background: radial-gradient(ellipse at top, #FFC99A 0%, #FF9E49 40%, #51002B 100%);
        margin: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .container {
        display: flex;
        flex-direction: column-reverse;
        padding: 48px 32px;
        max-width: 600px;
        width: 100%;
        margin: auto;
        min-height: 0;
        align-items: stretch;
    }
    
    .logo-column {
        display: block;
        padding: 0;
        margin: 0 0 64px 0;
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
    
    .logo-image {
        transform: none;
        width: 100%;
        height: auto;
        max-height: 30vh;
        display: block;
        margin: 0 auto;
    }
    
    .content-column {
        padding: 0;
        width: 100%;
        align-items: stretch;
    }
    
    .content-column > * {
        width: 100%;
    }
}

@media (max-width: 895px) {
    .subheadline {
        font-size: 2.5rem;
    }
    
    .headline {
        font-size: 3.5rem;
    }
    
    .copy {
        font-size: 1.25rem;
    }
    
    .cta-copy {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .email-form {
        flex-direction: column;
    }
    
    .email-input,
    .submit-btn {
        width: 100%;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .subheadline {
        font-size: 2rem;
    }
    
    .headline {
        font-size: 2.5rem;
    }
    
    .copy {
        font-size: 1.1rem;
    }
    
    .cta-copy {
        font-size: 0.9rem;
    }
    
    .email-input,
    .submit-btn {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .container {
        padding: 32px 24px;
    }
    
}

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: visibility 0s, background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    border-radius: 32px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-body {
    padding: 32px;
    text-align: left;
}

.modal-footer {
    padding: 0 8px 8px 8px;
}

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

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #32325d;
    margin-bottom: 1rem;
    text-align: left;
}

.modal-text {
    font-size: 1.25rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: left;
}

.modal-btn {
    padding: 1rem 1.75rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(90deg, #FF0245 0%, #9A0052 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(154, 0, 82, 0.25);
    transition: transform 0.2s ease;
    width: 100%;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-text {
        font-size: 1.1rem;
    }
    
    .modal-btn {
        font-size: 1.25rem;
    }
}

@media (max-width: 430px) and (pointer: coarse) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0 16px 16px 16px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
    }
    
    @keyframes modalSlideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}