/* === SOSSIL INTERACTIVE WAITLIST === */

:root {
    --cream-bg: #FDFBF7;
    --text-primary: #2D241E;
    --text-secondary: #6B5D52;
    --accent-primary: #C17753;
    --border-color: #E6DCCD;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-primary);
    overflow: hidden;
    /* Lock scroll initially */
}

.hidden {
    display: none !important;
}

.main-wrapper {
    width: 100%;
    height: 100vh;
    /* Fixed height initially */
    overflow: hidden;
    /* No scrolling inside wrapper either */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* NAVBAR */
.navbar {
    position: absolute;
    top: 20px;
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 1s ease;
}

.navbar.visible {
    opacity: 1;
}

.brand-name {
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 28px;
    color: var(--accent-primary);
}

.waitlist-badge {
    background: rgba(193, 119, 83, 0.1);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    /* Fix for dot alignment */
    gap: 8px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(193, 119, 83, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(193, 119, 83, 0);
    }
}

/* HERO */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mascot-stage {
    position: relative;
    width: 280px;
    height: 280px;
    cursor: pointer;
    /* margin-bottom: 40px; Removed to ensure perfect vertical centering initially */
}

/* ROCK WRAPPER */
.rock-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* NO BLEND MODE NEEDED - IMAGES ARE TRANSPARENT */
.rock-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.rock-wrapper:hover .rock-img {
    transform: scale(1.02);
}

.click-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit';
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

/* SHAKE */
.rock-wrapper.shake {
    animation: shakeHard 0.5s cubic-bezier(.36, .07, .19, .97);
}

@keyframes shakeHard {

    10%,
    90% {
        transform: translate(-4px, 0) rotate(-2deg);
    }

    20%,
    80% {
        transform: translate(6px, 0) rotate(3deg);
    }

    30%,
    50%,
    70% {
        transform: translate(-8px, 0) rotate(-3deg);
    }

    40%,
    60% {
        transform: translate(8px, 0) rotate(3deg);
    }
}

/* BROKEN STATE */
.rock-wrapper.broken {
    opacity: 0;
    transform: scale(1.4);
    pointer-events: none;
    transition: all 0.4s ease-out;
}

/* FINAL MASCOT */
.mascot-final {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-final.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* NO BLEND MODE NEEDED */
.final-img {
    width: 110%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

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

/* CONTENT */
.content-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
    max-width: 600px;
    pointer-events: none;
    margin-top: 40px;
    /* Add space here instead */
}

.content-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.headline {
    font-family: 'Outfit';
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.subheadline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* FORM */
.signup-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.email-field {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
}

.email-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(193, 119, 83, 0.15);
}

.cta-button {
    padding: 16px 24px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.whatsapp-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-toggle input:checked+.toggle-checkbox {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.whatsapp-toggle input {
    display: none;
}

/* SOCIAL PROOF */
.social-proof-bar {
    display: inline-flex;
    /* CHANGED BACK TO FIX FULL WIDTH ISSUE */
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Instagram Button Styles */
.btn-instagram {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.btn-instagram.hidden {
    display: none !important;
}

.avatar-stack {
    display: flex;
}

.avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid white;
    margin-left: -8px;
    background-size: cover;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.proof-text strong {
    color: var(--text-primary);
}

/* FOOTER */
.minimal-footer {
    margin-top: auto;
    padding: 20px;
    color: #aaa;
    font-size: 12px;
    opacity: 0;
    transition: opacity 1s;
}

.minimal-footer.visible {
    opacity: 1;
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 36, 30, 0.4);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: pop 0.3s;
}

.status-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    /* Center the dot vertically */
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Reduced shadow clutter */
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    width: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Slight border for definition */
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
}

.success-icon {
    color: #2E7D32;
    background: #E8F5E9;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.close-btn {
    background: none;
    border: none;
    color: #666;
    margin-top: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* FLOATING CHARACTERS */
.floating-chars {
    position: fixed;
    /* Fixed to cover whole screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* .floating-chars.visible {} Removed empty rule */

.float-char {
    position: absolute;
    width: 175px;
    /* Little bigger */
    height: auto;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-chars.visible .float-char {
    opacity: 1;
    animation: floatWide 8s ease-in-out infinite;
}

/* WIDE SPREAD POSITIONING & ROTATION */
/* Father - Top Left */
.char-1 {
    top: 12%;
    left: 8%;
    transform: rotate(-15deg) scale(0);
    transition-delay: 0.1s;
}

.floating-chars.visible .char-1 {
    transform: rotate(-15deg) scale(1);
}

/* Mother - Top Right */
.char-2 {
    top: 18%;
    right: 8%;
    transform: rotate(10deg) scale(0);
    transition-delay: 0.2s;
}

.floating-chars.visible .char-2 {
    transform: rotate(10deg) scale(1);
}

/* Partner - Bottom Left */
.char-3 {
    bottom: 20%;
    left: 8%;
    transform: rotate(12deg) scale(0);
    transition-delay: 0.3s;
}

.floating-chars.visible .char-3 {
    transform: rotate(12deg) scale(1);
}

/* Strangers - Bottom Right / Center Area */
.char-4 {
    bottom: 12%;
    right: 15%;
    width: 220px;
    /* Group is wider */
    transform: rotate(-5deg) scale(0);
    transition-delay: 0.4s;
}

.floating-chars.visible .char-4 {
    transform: rotate(-5deg) scale(1);
}


@keyframes floatWide {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -20px;
    }
}

/* Ensure main mascot is on top */
.mascot-final {
    z-index: 20;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
        /* Increased mobile padding */
    }

    .status-badge {
        margin-left: 24px;
        /* Match navbar padding */
    }

    .hero-container {
        padding: 0 24px;
        /* Ensure content doesn't touch edges */
    }

    .main-wrapper {
        padding: 20px;
        justify-content: center;
        /* Ensure vertical centering */
    }

    .mascot-stage {
        width: 200px;
        /* Smaller rock on mobile */
        height: 200px;
        margin-bottom: 20px;
        /* reduce space */
    }

    .headline {
        font-size: 28px;
        /* Smaller text */
        margin-bottom: 12px;
    }

    .subheadline {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .input-group {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    /* Adjust Floating Characters for Mobile to avoid overflow/mess */
    .float-char {
        width: 90px;
        /* Much smaller for mobile */
    }

    /* Reposition for vertical layout */
    .char-1 {
        top: 10%;
        left: -10px;
        transform: rotate(-10deg) scale(0);
    }

    /* Father */
    .floating-chars.visible .char-1 {
        transform: rotate(-10deg) scale(1);
    }

    .char-2 {
        top: 12%;
        right: -10px;
        transform: rotate(8deg) scale(0);
    }

    /* Mother */
    .floating-chars.visible .char-2 {
        transform: rotate(8deg) scale(1);
    }

    .char-3 {
        bottom: 15%;
        left: -5px;
        transform: rotate(10deg) scale(0);
    }

    /* Partner */
    .floating-chars.visible .char-3 {
        transform: rotate(10deg) scale(1);
    }

    .char-4 {
        bottom: 5%;
        right: -20px;
        /* Shifted right */
        left: auto;
        /* Removed centering */
        margin: 0;
        /* Removed centering */
        width: 140px;
        /* Strangers slightly bigger but centered bottom */
        transform: rotate(-3deg) scale(0);
    }

    .floating-chars.visible .char-4 {
        transform: rotate(-3deg) scale(1);
    }
}