/* ======================================
    1. FONT IMPORT (NIMBUS SANS Extended)
    ======================================
*/
/*
@font-face {
    font-family: 'NIMBUS SANS Extended';
    src: url('path/to/NIMBUSSANSEXTENDED-REGULAR.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
*/

/* ======================================
    2. GLOBAL STYLES & RESET
    ======================================
*/
:root {
    --color-primary: #0a1543;
    --color-background: #ede8df;
    --color-card-bg: #ffffff;
    --color-text: #0a1543;
    --color-light-text: #4a4a4a;
    --color-error: #e8334a;
    --color-success: #008000;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
}

main {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2 {
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

p {
    color: var(--color-light-text);
    font-size: 1.1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ======================================
    3. HEADER & LOGO
    ======================================
*/
header {
    padding: 1.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    nav {
        display: none;
    }
}

/* ======================================
    4. MAIN CONTENT GRID (Hero/Waitlist + Mockups)
    ======================================
*/

.main-content-grid {
    display: flex;
    flex-direction: column;
    padding: 2rem 0; /* Reduced bottom padding */
    gap: 3rem;
}

/* Left Column: Text and Form */
.left-column {
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.app-name {
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    text-align: left;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-align: left;
}

.intro-text,
.waitlist-info {
    /* Consistent sub-text styling, slightly larger */
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text);
    max-width: 450px;
}

.intro-text {
    margin-bottom: 3rem;
    line-height: 1.4;
}

.waitlist-heading {
    /* Matched style to tagline for consistency */
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--color-primary);
}

.waitlist-info {
    margin-bottom: 1.5rem;
}

/* Right Column: Mockups */
.right-column {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center carousel component */
}


@media (min-width: 900px) {
    .main-content-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        padding-top: 3rem;
    }

    .left-column {
        flex: 0 0 55%; /* Left column takes 55% width */
        margin: 0;
        padding-left: 0;
        padding-top: 2rem; /* Add padding to align text with carousel */
    }

    .right-column {
        flex: 0 0 45%; /* Right column takes 45% width */
        padding-top: 0;
        padding-left: 0;
    }
}


/* ======================================
    5. CAROUSEL STYLES (Floating Images with External Buttons)
    ======================================
*/

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between buttons and container */
    margin: 0 auto; /* Center the whole wrapper */
    max-width: 400px; /* Allow wrapper to be wider than container for buttons */
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 320px; /* Fixed width for the image display area */
    overflow: hidden; /* Hide overflowing slides */
    /* Remove background and shadow from container */
    background-color: transparent; 
    box-shadow: none;
    border-radius: 0;
    height: 600px; /* Fixed height for consistent layout */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth slide transition */
    height: 100%; /* Make track fill container height */
}

.carousel-slide {
    min-width: 100%; /* Each slide takes full container width */
    flex-shrink: 0; /* Prevent slides from shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Make slide fill track height */
    padding: 0; /* Remove padding from slide itself */
}

.carousel-slide img {
    width: 100%;
    max-width: 280px; /* Max width for the image itself */
    height: auto;
    max-height: 100%; /* Ensure image fits height of slide */
    object-fit: contain; /* Ensure image fits without cropping */
    border-radius: 20px; /* More rounded corners for floating effect */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Stronger, more floating shadow */
    background-color: var(--color-card-bg); /* Image itself has white background and shadow */
    padding: 10px; /* Padding inside the image for the app screen to "float" within the phone mockup space */
}


.carousel-button {
    background-color: var(--color-primary); /* Use primary color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px; /* Slightly larger buttons */
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.3rem; /* Larger icon */
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.carousel-button:hover {
    background-color: #1a2a5d; /* Darker primary on hover */
    transform: translateY(-2px);
}

/* Remove absolute positioning as buttons are now external to container */
.carousel-button--left {
    /* No absolute positioning */
}

.carousel-button--right {
    /* No absolute positioning */
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 15px 0 10px;
    gap: 8px;
    margin-top: 10px; /* Add space between wrapper and dots */
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(10, 21, 67, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.current-slide {
    background-color: var(--color-primary);
}


/* ======================================
    6. EMAIL FORM STYLES (now inside .left-column)
    ======================================
*/

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    max-width: 450px; /* Constrain form width to match text */
}

.email-form input[type="email"] {
    padding: 0.8rem 1rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Updated Form Button to match 'JOIN' request */
.email-form button[type="submit"] {
    padding: 0.8rem 1rem;
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

.email-form button[type="submit"]:hover {
    background-color: #1a2a5d;
    transform: translateY(-1px);
}

.form-message {
    margin-top: 1rem;
    font-weight: 700;
    min-height: 1.5rem;
}

/* Tablet/Desktop Form Layout: Side-by-side input and button */
@media (min-width: 600px) {
    .email-form {
        flex-direction: row;
        gap: 0.5rem;
    }
    .email-form input[type="email"] {
        flex-grow: 1;
        max-width: none;
    }
    .email-form button[type="submit"] {
        flex-grow: 0;
        width: 120px;
    }
}

/* ======================================
    7. FOOTER
    ======================================
*/
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    color: var(--color-light-text);
    border-top: 1px solid rgba(10, 21, 67, 0.1);
}

.footer-logo {
    font-size: clamp(2rem, 8vw, 4rem); /* Large and fluid */
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 1rem; /* Reduced margin */
    margin-bottom: 1.5rem;
    display: block;
}

