@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* Reset & Base */
:root {
    --primary: #F9CC0D;
    --primary-dark: #E5A800;
    --accent: #FF8C42;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-cream: #FFF9E6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

#email {
    -webkit-user-select: text;
    user-select: text;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* No scrolling */
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #FFF0D4 100%);
    color: var(--text-main);
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
}

h1,
h2,
h3,
.tagline,
.stat-num {
    font-family: 'Outfit', sans-serif;
}

/* Aurora Background */
.aurora-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 {
    top: -15%;
    left: -15%;
    width: 40vw;
    height: 40vw;
    background: rgba(249, 204, 13, 0.25);
}

.shape2 {
    bottom: -15%;
    right: -15%;
    width: 35vw;
    height: 35vw;
    background: rgba(255, 140, 66, 0.15);
    animation-delay: -5s;
}

.shape3 {
    top: 30%;
    left: 50%;
    width: 25vw;
    height: 25vw;
    background: rgba(255, 255, 255, 0.3);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15px, 25px) scale(1.05);
    }
}

/* Page Layout - COMPACT, ONE SCREEN */
.page-wrapper {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
}

/* --- Left Column: Phone Visuals --- */
.visuals-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* CSS Phone Frame with Parallax Animation */
.device-container {
    position: relative;
    z-index: 10;
    animation: phoneFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Subtle left-right floating parallax */
@keyframes phoneFloat {

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

    25% {
        transform: translateX(8px) translateY(-3px) rotateY(2deg);
    }

    50% {
        transform: translateX(0) translateY(-6px) rotateY(0deg);
    }

    75% {
        transform: translateX(-8px) translateY(-3px) rotateY(-2deg);
    }
}

.marvel-device {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 42px;
    padding: 10px;
    box-shadow:
        0 35px 80px -20px rgba(0, 0, 0, 0.5),
        0 15px 30px -10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 2px #333,
        inset 0 0 0 4px #000,
        0 0 60px -20px rgba(249, 204, 13, 0.15);
    position: relative;
    transition: box-shadow 0.4s ease;
}

/* Neumorphic glow on hover */
.device-container:hover .marvel-device {
    box-shadow:
        0 40px 90px -20px rgba(0, 0, 0, 0.6),
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 0 2px #333,
        inset 0 0 0 4px #000,
        0 0 80px -15px rgba(249, 204, 13, 0.25);
}

/* Dynamic Island - HIDDEN */
.marvel-device .top-bar {
    display: none;
}

/* Screen Area with depth */
.marvel-device .screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Premium shimmer overlay on screen */
.marvel-device .screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    animation: screenShimmer 4s ease-in-out infinite;
    z-index: 100;
    pointer-events: none;
}

@keyframes screenShimmer {

    0%,
    100% {
        left: -100%;
        opacity: 0;
    }

    50% {
        left: 100%;
        opacity: 1;
    }
}

/* Screen glass reflection */
.marvel-device .screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 100%);
    border-radius: 32px 32px 0 0;
    pointer-events: none;
    z-index: 50;
}

/* Carousel Container */
.carousel-3d {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
    background: #000;
}

/* Image styling - zoomed out to show more content */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #000;
}

/* Active State - only show active slide */
.carousel-item.active {
    opacity: 1;
    z-index: 5;
}

/* Next/Prev/Hidden - all hidden with fade */
.carousel-item.next,
.carousel-item.prev,
.carousel-item.hidden {
    opacity: 0;
    z-index: 1;
}

/* Carousel Indicators - Premium Redesign */
.carousel-indicators {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-top: 0.75rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
    outline: none;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #F9CC0D, #FF8C42);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.indicator:hover:not(.active) {
    background: rgba(249, 204, 13, 0.4);
    transform: scale(1.2);
}

.indicator.active {
    background: transparent;
}

.indicator.active::after {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 12px rgba(249, 204, 13, 0.6);
}

/* --- Right Column: Content Card --- */
.content-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

/* Header - COMPACT */
.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(249, 204, 13, 0.25);
    flex-shrink: 0;
}

.logo-box img {
    width: 100%;
    height: 100%;
}

.brand-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F9CC0D 0%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    background: #F9CC0D;
    color: #1a1a1a;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Text - COMPACT */
.hero-text {
    margin-bottom: 1.25rem;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.tagline strong {
    color: transparent;
    background: linear-gradient(120deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
}

.subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stats - COMPACT */
.stats-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
}

/* Benefits - COMPACT ROW */
.benefits-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.check-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-dark);
}

/* Form - COMPACT */
#waitlist-form {
    margin-bottom: 0.75rem;
}

.input-group {
    display: flex;
    gap: 6px;
    background: #FFF;
    border: 2px solid #E5E5E5;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    align-items: center;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 204, 13, 0.15);
}

#email {
    flex: 1;
    border: none;
    outline: none;
    background: transparent !important;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

/* Prevent autofill yellow background */
#email:-webkit-autofill,
#email:-webkit-autofill:hover,
#email:-webkit-autofill:focus,
#email:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

#submit-btn {
    border: none;
    outline: none;
    background: var(--text-main);
    color: #FFF;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

#submit-btn:focus {
    outline: none;
    box-shadow: none;
}

#submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

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

/* Trust Badge */
.trust-badge {
    margin-bottom: 0;
}

.trust-badge p {
    font-size: 0.65rem;
    color: #888;
    text-align: center;
    margin: 0;
}

#response-message {
    font-size: 0.75rem;
    min-height: 0;
    margin-top: 4px;
    font-weight: 500;
    text-align: center;
}

#response-message:empty {
    display: none;
}

/* ===================== */
/* MOBILE RESPONSIVE     */
/* ===================== */

@media (max-width: 768px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        align-content: center;
        max-height: 100dvh;
    }

    .visuals-section {
        order: -1;
        gap: 0.5rem;
    }

    /* Reduce parallax on mobile for performance */
    .device-container {
        animation: phoneFloatMobile 4s ease-in-out infinite;
    }

    @keyframes phoneFloatMobile {

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

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

    /* Disable shimmer on mobile */
    .marvel-device .screen::before {
        display: none;
    }

    /* Smaller phone on mobile */
    .marvel-device {
        width: 140px;
        height: 280px;
        border-radius: 24px;
        padding: 5px;
    }

    .marvel-device .top-bar {
        width: 45px;
        height: 12px;
        top: 8px;
        border-radius: 8px;
    }

    .marvel-device .screen {
        border-radius: 19px;
    }

    /* Carousel indicators on mobile */
    .carousel-indicators {
        gap: 10px;
        padding: 8px 14px;
        margin-top: 0.75rem;
    }

    .indicator {
        width: 7px;
        height: 7px;
    }

    .indicator.active::after {
        width: 9px;
        height: 9px;
    }

    .glass-card {
        padding: 1rem;
        border-radius: 18px;
        max-width: 100%;
    }

    .brand-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .logo-box {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .brand-text h1 {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.45rem;
        padding: 2px 5px;
    }

    .hero-text {
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .subtext {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .stats-row {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .stat-num {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .stat-divider {
        height: 20px;
    }

    .benefits-grid {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .benefit {
        font-size: 0.6rem;
    }

    .check-icon {
        width: 10px;
        height: 10px;
    }

    .input-group {
        padding: 3px;
        border-radius: 10px;
    }

    #email {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    #submit-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 7px;
    }

    .arrow-icon {
        width: 12px;
        height: 12px;
    }

    .trust-badge p {
        font-size: 0.55rem;
    }

    #response-message {
        font-size: 0.7rem;
        min-height: 14px;
        margin-top: 4px;
    }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-height: 600px) {
    .page-wrapper {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .marvel-device {
        width: 130px;
        height: 260px;
    }

    /* Minimal indicators on tiny screens */
    .carousel-indicators {
        gap: 8px;
        padding: 6px 12px;
        margin-top: 0.5rem;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .indicator.active::after {
        width: 8px;
        height: 8px;
    }

    .glass-card {
        padding: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .subtext {
        display: none;
        /* Hide subtext on tiny screens */
    }

    .stats-row {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
    #submit-btn:hover {
        transform: none;
    }

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