:root {
    --bg-color: #E7E3DA; /* Exactly matching mascot.png top background */
    --bg-bottom: #EDE9DE; /* Exactly matching mascot.png bottom background */
    --text-primary: #1D1D1F;
    --text-secondary: #515154;
    --accent: #1D1D1F;
    --card-bg: #FFFFFF;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Allows clicking through the empty space around the islands */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything initially */
    pointer-events: auto; /* Re-enable clicks on the container elements */
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
}

.nav-spacer {
    flex-grow: 0;
    transition: flex-grow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Left Icon Pill */
.nav-left {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E7E3DA; /* Bone white from mascot */
    border: 2px solid var(--text-primary); /* MATCH waitlist frame */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0px; /* Make favicon as big as possible */
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.nav-left img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain, but cover makes it fill the circle */
}

/* Middle Island */
.nav-middle {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: #FFFFFF;
    padding: 0 2.5rem;
    height: 60px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: opacity 0.8s ease, transform 0.8s ease, max-width 0.8s ease, padding 0.8s ease;
    overflow: hidden;
    white-space: nowrap;
    max-width: 500px; /* Large enough for content */
    flex-shrink: 0;
    margin: 0 1rem; /* Base spacing from the left and right elements when spacers are 0 */
}

.nav-middle a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-middle a:hover {
    color: var(--text-secondary);
}

/* Right CTA Pill */
.nav-right {
    height: 60px;
    padding: 0 2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    background: #E7E3DA; /* Bone white from mascot */
    border: 2px solid var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

/* SCROLLED STATE */
.navbar.scrolled .nav-spacer {
    flex-grow: 1; /* Pushes outer elements to the edges smoothly */
}

.navbar.scrolled .nav-middle {
    opacity: 0;
    transform: scale(0.9);
    max-width: 0;
    padding: 0;
    margin: 0; /* Remove margin so it completely disappears */
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-middle {
        display: none; /* Hide middle island on mobile to save space */
    }
    
    .nav-left {
        margin-left: 0;
    }
    
    .nav-right {
        margin-right: 0;
    }
}

.nav-cta:hover::after {
    width: 100%;
}

/* Hero Text Section */
.hero-text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 0 5%;
    padding-top: 120px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 80%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background-color: #000;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Hero Tags */
.hero-tags {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.hero-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Mascot Section */
.mascot-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin-top: -30vh; /* Moved further up */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.massive-mascot {
    width: 100vw; /* Fits exactly the whole website frame horizontally */
    max-width: none;
    height: auto;
    object-fit: contain;
    display: block;
    /* Soft drop shadow mimicking the 3D render environment */
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Mission Section */
.mission-section {
    padding: 2rem 5% 8rem;
    margin-top: -4rem;
    background-color: var(--bg-bottom);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 2;
}

.mission-content {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.mission-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin: 0;
}

.inline-emoji {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.1em;
    margin: 0 0.2rem;
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}

.inline-emoji:hover {
    transform: scale(1.15) rotate(5deg);
}

/* How It Works Section */
.how-it-works-section {
    padding: 8rem 5%;
    background-color: var(--bg-bottom);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.how-it-works-section .section-title {
    margin-bottom: 5rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.steps-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    position: relative;
}

/* Vertical Line */
.steps-container::before {
    content: '';
    position: absolute;
    left: calc(3rem - 1px);
    top: 4rem;
    bottom: 4rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    z-index: 1;
}

.step-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    background-color: var(--bg-bottom); /* to hide the line behind */
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.step-inline-image {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.step-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-box {
    width: 100%;
    max-width: 200px;
    height: 140px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mockup-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.mockup-inner-bar {
    position: absolute;
    top: 2rem;
    width: 70%;
    height: 1rem;
    background: #F0F0F0;
    border-radius: 10px;
}

.mockup-inner-chart {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.03), transparent);
}

.mockup-icons {
    font-size: 3.5rem;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

@media (max-width: 900px) {
    .step-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-number {
        justify-content: center;
        width: 100%;
        height: auto;
    }
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    background-color: var(--bg-bottom);
    overflow: hidden;
}

.reviews-section .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    padding: 0 5%;
    text-align: center;
}

.marquee-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    margin-bottom: 1rem;
    /* optional: add fade out on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-left: 2rem; /* Initial offset padding */
}

.left-flow {
    animation: scrollLeft 40s linear infinite;
}

.right-flow {
    animation: scrollRight 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* -1rem accounts for half the gap */
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-50% - 1rem)); }
    100% { transform: translateX(0); }
}

.review-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    width: 350px;
    white-space: normal;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    flex-shrink: 0;
    text-align: left;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-pic, .profile-letter {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-letter {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.stars {
    color: #FFB800; /* Gold color for stars */
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}


/* Privacy Section */
.privacy-section {
    padding: 8rem 5%;
    background-color: var(--bg-bottom);
    display: flex;
    justify-content: center;
    text-align: center;
}

.privacy-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.privacy-icon {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.privacy-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3.5rem;
    letter-spacing: -1px;
}

.privacy-columns {
    display: flex;
    gap: 4rem;
    text-align: left;
}

.privacy-columns p {
    flex: 1;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .privacy-columns {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Waitlist Section */
.waitlist-section {
    padding: 8rem 5%;
    background-color: var(--bg-bottom); /* Match whole website background */
    text-align: center;
    position: relative;
}

.waitlist-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.waitlist-container h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.waitlist-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1.2rem 1.5rem;
    border-radius: 100px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-submit {
    white-space: nowrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-secondary);
    background-color: var(--bg-bottom); /* Match bottom website background */
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-text-section {
        min-height: 50vh;
        padding-top: 100px;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .massive-mascot {
        width: 150%; /* Make it spill off edges slightly on mobile to feel huge */
        max-width: none;
        margin-left: -25%;
    }
    
    .waitlist-form {
        flex-direction: column;
    }
    
    .email-input {
        width: 100%;
    }
    
    .form-submit {
        width: 100%;
    }
}
