:root {
    --deep-teal: #0D7377;
    --fresh-green: #14FFEC;
    --sandy-cream: #F5F0E1;
    --coconut-brown: #6B4226;
    --crisp-white: #FEFEFE;
    --bg-top: #032B30;
    --bg-bottom: #2C1810;

    --theme-accent: #14FFEC;
    --theme-glow: rgba(20, 255, 236, 0.3);
    --theme-bg-mid: #0D7377;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--crisp-white);
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--bg-top) 0%, #0a4a4e 25%, #0D7377 50%, #3d6b5e 75%, var(--bg-bottom) 100%);
    background-attachment: fixed;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#scene-container canvas {
    pointer-events: auto;
}

#page-overlay {
    position: relative;
    z-index: 1;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(3, 43, 48, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 255, 236, 0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--fresh-green);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--fresh-green);
}

.nav-cta {
    background: var(--deep-teal) !important;
    color: var(--crisp-white) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 100px;
    border: 1px solid rgba(20,255,236,0.3);
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--fresh-green) !important;
    color: var(--bg-top) !important;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--crisp-white) 0%, var(--fresh-green) 50%, var(--sandy-cream) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeIn 1.2s ease-out;
}

.hero-sub {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: rgba(245, 240, 225, 0.7);
    margin-bottom: 2.5rem;
    animation: heroFadeIn 1.2s ease-out 0.3s both;
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--deep-teal), #0fa3a8);
    color: var(--crisp-white);
    border: 1px solid rgba(20,255,236,0.4);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: heroFadeIn 1.2s ease-out 0.6s both;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--fresh-green), #0fa3a8);
    color: var(--bg-top);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(20,255,236,0.3);
}

.cta-button .cta-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(20,255,236,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover .cta-ripple {
    width: 300px;
    height: 300px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bobble 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(20,255,236,0.5);
    border-bottom: 2px solid rgba(20,255,236,0.5);
    transform: rotate(45deg);
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--crisp-white), var(--fresh-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Cards */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(20,255,236,0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--fresh-green);
}

.benefit-card p {
    font-family: 'Newsreader', serif;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Nutrition Marquee */
#nutrition {
    padding: 2rem 0;
    max-width: 100%;
    overflow: hidden;
}

.marquee-track {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--fresh-green);
    letter-spacing: 0.05em;
}

.marquee-dot {
    color: rgba(20,255,236,0.3);
    font-size: 0.6rem;
}

/* Wave Divider */
.wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: -1px 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    animation: waveFloat 4s ease-in-out infinite;
}

/* Flavors */
.flavors-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.flavor-card {
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 2px solid transparent;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
}

.flavor-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.flavor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.flavor-card.active {
    border-color: var(--fresh-green);
    box-shadow: 0 0 30px var(--theme-glow);
}

.flavor-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 0.5s;
}

.flavor-gradient.original {
    background: linear-gradient(150deg, #032B30, #0D7377, #14FFEC);
}

.flavor-gradient.mango {
    background: linear-gradient(150deg, #5C2800, #D4730E, #FFD93D);
}

.flavor-gradient.pineapple {
    background: linear-gradient(150deg, #4A3600, #C99700, #FFE566);
}

.flavor-info {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.flavor-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.flavor-tagline {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stars {
    color: #FFD93D;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.quote {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
}

.author {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--fresh-green);
}

/* Footer */
#footer {
    padding: 4rem 2rem 2rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-newsletter h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    font-family: 'Newsreader', serif;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: var(--crisp-white);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form input:focus {
    border-color: var(--fresh-green);
}

.newsletter-form button,
#subscribeBtn {
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    border: none;
    background: var(--deep-teal);
    color: var(--crisp-white);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid rgba(20,255,236,0.3);
}

.newsletter-form button:hover,
#subscribeBtn:hover {
    background: var(--fresh-green);
    color: var(--bg-top);
}

.newsletter-success {
    padding: 1rem;
    background: rgba(20,255,236,0.1);
    border: 1px solid rgba(20,255,236,0.3);
    border-radius: 12px;
    color: var(--fresh-green);
    font-weight: 700;
}

.footer-links {
    text-align: right;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--fresh-green);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
    display: inline-block;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.social-icon {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    color: var(--fresh-green);
    border-color: var(--fresh-green);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.5rem;
}

.remix-link {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.remix-link:hover {
    color: var(--fresh-green);
}

/* Coconut Rain Easter Egg */
#coconut-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.rain-coconut {
    position: absolute;
    font-size: 1.5rem;
    animation: coconutFall linear forwards;
    pointer-events: none;
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bobble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes coconutFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Theme transitions */
body {
    transition: background 1.2s ease;
}

body.theme-mango {
    background: linear-gradient(180deg, #2A1500 0%, #5C2800 25%, #D4730E 50%, #8B5E3C 75%, var(--bg-bottom) 100%);
}

body.theme-pineapple {
    background: linear-gradient(180deg, #1A1500 0%, #4A3600 25%, #C99700 50%, #6B5C3C 75%, var(--bg-bottom) 100%);
}

body.theme-original {
    background: linear-gradient(180deg, var(--bg-top) 0%, #0a4a4e 25%, #0D7377 50%, #3d6b5e 75%, var(--bg-bottom) 100%);
}

/* Responsive */
@media (max-width: 900px) {
    .benefits-grid,
    .flavors-carousel,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .flavor-card {
        min-height: 220px;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    #navbar {
        padding: 0.75rem 1rem;
    }
}