:root {
    --primary: #5d33e5;
    --primary-light: #7c5dfa;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e5e7eb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Left Content */
.content {
    padding: 2rem 0;
}

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

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Form */
.waitlist-form {
    display: flex;
    max-width: 500px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.waitlist-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(93, 51, 229, 0.1);
}

.waitlist-form input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    color: var(--text-main);
}

.waitlist-form input::placeholder {
    color: #9ca3af;
}

.waitlist-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.waitlist-form button:hover {
    background-color: var(--primary-light);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

.icon-external {
    width: 14px;
    height: 14px;
}

/* Right Content - iPhone Mockup */
.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.carousel-nav.prev {
    left: -22px;
}

.carousel-nav.next {
    right: -22px;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 900px;
    /* High enough for the image */
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.iphone-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    max-width: 450px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: drop-shadow(0 25px 50px -12px rgba(0, 0, 0, 0.25));
}

.iphone-image.active {
    opacity: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Success Message */
.success-message {
    display: none;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    max-width: 500px;
}

.success-message.visible {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 4rem 1.5rem;
        align-items: flex-start;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .brand {
        justify-content: center;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 2.75rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .description {
        font-size: 1.125rem;
        margin: 0 auto 2.5rem;
    }

    .waitlist-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
        margin: 0 auto 1.5rem;
    }

    .waitlist-form input {
        width: 100%;
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 12px;
        padding: 16px;
    }

    .waitlist-form button {
        width: 100%;
        padding: 16px;
    }

    .mockup-container {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .carousel {
        height: 640px;
        max-width: 100%;
        margin: 0 auto;
    }

    .iphone-image {
        max-width: 100%;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        /* More opaque for visibility */
    }

    .carousel-nav.prev {
        left: -20px;
    }

    .carousel-nav.next {
        right: -20px;
    }
}