/* --- Color Palette from your SVG & Waze Feel --- */
:root {
    --sky-top: #71C8F1;      /*  */
    --sky-bottom: #D6F0FC; /*  */
    --cta-yellow: #FFC900;
    --dark-text: #2D3748;
    --light-text: #5A6A85;
    --card-bg: #FFFFFF;    /*  */
    --border-color: #E2E8F0;
    --phone-frame: #1A202C;
}

body {
    font-family: 'Rubik', sans-serif;
    background: linear-gradient(135deg, var(--sky-top), var(--sky-bottom)); /*  */
    color: var(--dark-text);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

body::before,
body::after {
    content: '';
    position: fixed;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    pointer-events: none;
    z-index: 1;
}

body::before {
    width: 100px;
    height: 30px;
    top: 20%;
    left: -120px;
    animation: float-slow 40s infinite linear;
    box-shadow: 
        120px 5px 0 -8px rgba(255, 255, 255, 0.06),
        240px 15px 0 -15px rgba(255, 255, 255, 0.04);
}

body::after {
    width: 80px;
    height: 25px;
    top: 60%;
    right: -100px;
    animation: float-slow-reverse 35s infinite linear;
    box-shadow: 
        100px -3px 0 -5px rgba(255, 255, 255, 0.05),
        200px 8px 0 -12px rgba(255, 255, 255, 0.03);
}

@keyframes float-slow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 300px)); }
}

@keyframes float-slow-reverse {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100vw - 250px)); }
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 1rem;
    background-color: var(--card-bg);
    border-radius: 32px;
    box-shadow: 0 20px 50px -15px rgba(28, 77, 102, 0.3);
    display: flex;
}

.text-content {
    flex: 1.1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--sky-top);
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* --- Custom Waitlist Form Styles --- */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.form-field {
    flex-grow: 1;
}

.waitlist-form input[type="email"] {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    transition: box-shadow 0.2s;
    background: white;
    box-sizing: border-box;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--sky-top);
    box-shadow: 0 0 0 3px rgba(113, 200, 241, 0.5);
}

.waitlist-form input[type="email"].error {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.2);
}

.submit-button {
    background-color: var(--cta-yellow);
    color: var(--dark-text);
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Rubik', sans-serif;
    white-space: nowrap;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 201, 0, 0.5);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Waitlist Message Styling */
.waitlist-message {
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInUp 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.waitlist-message.success {
    background: linear-gradient(135deg, #e8f8f5 0%, #d1f2eb 100%);
    color: #0c5a4a;
    border: 1px solid #a3d9cc;
}

.waitlist-message.success::before {
    content: "🎉";
    font-size: 1.1rem;
    flex-shrink: 0;
}

.waitlist-message.error {
    background: linear-gradient(135deg, #fef7f7 0%, #fdeaea 100%);
    color: #c53030;
    border: 1px solid #f5b2b2;
}

.waitlist-message.error::before {
    content: "⚠️";
    font-size: 1.1rem;
    flex-shrink: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility - Screen Reader Only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus management for better accessibility */
.waitlist-form input[type="email"]:focus,
.submit-button:focus {
    outline: 2px solid var(--sky-top);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .waitlist-form input[type="email"] {
        border-width: 2px;
    }
    
    .submit-button {
        border: 2px solid var(--dark-text);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .submit-button {
        transition: none;
    }
    
    .submit-button:hover {
        transform: none;
    }
    
    .mascot-image {
        animation: none;
    }
    
    body::before,
    body::after {
        animation: none;
    }
}

.social-proof {
    margin-top: 1.5rem;
}

.social-proof p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* --- Visual Content Column --- */
.visual-content {
    flex: 0.9;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.phone-mockup {
    width: 280px;
    height: 570px;
    background-color: var(--phone-frame);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    width: 100%;
    height: 100%;
    background-color: black;
    border-radius: 28px;
    overflow: hidden;
}

.screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mascot-image {
    position: absolute;
    width: 180px;
    bottom: 20px;
    right: -50px;
    transform: rotate(10deg);
    animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
    0% { transform: translateY(0px) rotate(10deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(10deg); }
}

/* --- Responsive Design --- */
@media (max-width: 950px) {
    .container {
        flex-direction: column-reverse;
    }
    .text-content {
        padding: 2.5rem;
        text-align: center;
    }
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-field {
        margin-bottom: 0;
    }
    
    .waitlist-form input[type="email"] {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .submit-button {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    .visual-content {
        padding: 3rem 0;
        min-height: auto;
    }
    .mascot-image {
        width: 150px;
        right: 10px;
        bottom: -20px;
    }
    .phone-mockup {
        width: 220px;
        height: 450px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    .container {
        margin: 0;
        border-radius: 20px;
    }
    
    .text-content {
        padding: 2rem;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .waitlist-form input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .visual-content {
        padding: 2rem 0;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .mascot-image {
        width: 120px;
        right: 5px;
        bottom: -15px;
    }
}