:root {
    /* Color Palette */
    --bg-color: #030705;
    --text-primary: #ffffff;
    --text-secondary: #a3b8ad;
    
    --emerald: #015c40;
    --jade: #008f5a;
    --electric-green: #00ff41;
    --gold: #e5c05c;
    --gold-light: #fcebae;
    
    --glass-bg: rgba(1, 92, 64, 0.1);
    --glass-border: rgba(0, 255, 65, 0.15);
    
    /* Typography */
    --font-heading: 'Engravers MT', 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('green_nebula_bg.png') no-repeat center center;
    background-size: cover;
    z-index: -10;
    opacity: 0.85;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(4, 120, 87, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 102, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(3, 7, 5, 0.4), rgba(3, 7, 5, 0.85));
    z-index: -9;
}

/* Utilities */
.gold-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #9e7f2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(229, 192, 92, 0.4));
    font-weight: 900;
}

.glow-text {
    color: var(--electric-green);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6), 0 0 30px rgba(0, 255, 65, 0.3);
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 168, 107, 0.1);
    border: 1px solid var(--jade);
    border-radius: 20px;
    color: var(--electric-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.waitlist-section {
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.free-download-text {
    font-family: var(--font-heading);
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.waitlist-form {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.waitlist-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.waitlist-input:focus {
    border-color: var(--jade);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.waitlist-btn {
    padding: 14px 24px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.waitlist-message {
    margin-top: 0.8rem;
    font-size: 0.9rem !important;
    color: var(--electric-green) !important;
    display: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

button {
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald), var(--jade));
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-icon {
    width: 24px;
    height: 24px;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-text {
    font-size: 1.1rem;
    line-height: 1.2;
}

.btn-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1;
    font-family: var(--font-body);
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: pulse 4s infinite alternate;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(0, 255, 102, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* Science Section */
.science {
    padding: 8rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 102, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Previews Section */
.previews {
    padding: 5rem 5% 8rem;
    background: linear-gradient(to bottom, transparent, rgba(4, 120, 87, 0.05));
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.preview-item {
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}

.preview-item:hover, .preview-item.center-item {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--jade);
    box-shadow: 0 15px 35px rgba(4, 120, 87, 0.4);
    opacity: 1;
    z-index: 10;
}

.preview-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 5%;
    position: relative;
    background: linear-gradient(to top, rgba(1, 92, 64, 0.05), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(2, 4, 3, 0.7);
    border: 1px solid rgba(229, 192, 92, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(229, 192, 92, 0.05);
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--jade);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 5% 2rem;
    background: rgba(2, 4, 3, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: rgba(3, 7, 5, 0.85);
    border: 1px solid var(--jade);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 255, 102, 0.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 800px;
    width: 90%;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content h4 {
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept, .btn-cookie-decline {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-accept {
    background: var(--jade);
    color: white;
    border: none;
}

.btn-cookie-accept:hover {
    background: var(--electric-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-decline:hover {
    color: white;
    border-color: white;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 992px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .waitlist-section {
        margin: 0 auto 2.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(3, 7, 5, 0.9);
    }
    .hero {
        padding-top: 10rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .preview-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
    }
    .preview-item {
        flex: 0 0 75%;
        scroll-snap-align: center;
        opacity: 1;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        bottom: 1rem;
        width: 95%;
        padding: 1.5rem;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .waitlist-section {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    .waitlist-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    .waitlist-btn {
        width: 100%;
        white-space: normal;
        height: auto;
    }
    .waitlist-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }
}

/* Disney Comet Animation */
.comet-x {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -4;
    pointer-events: none;
    animation: comet-x-anim 8s linear forwards;
}

.comet-y {
    animation: comet-y-anim 8s forwards;
}

.comet-body {
    width: 0;
    height: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transform-origin: center;
    margin-left: 0;
    margin-top: 0;
    animation: comet-rotate 8s ease-in-out forwards;
}

.comet-body::after {
    content: '';
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px var(--gold-light), 0 0 40px var(--gold), 0 0 60px #ffffff;
}

@keyframes comet-x-anim {
    0% { transform: translateX(-15vw); }
    100% { transform: translateX(115vw); }
}

@keyframes comet-y-anim {
    0% { transform: translateY(85vh); animation-timing-function: ease-out; }
    50% { transform: translateY(5vh); animation-timing-function: ease-in; }
    100% { transform: translateY(85vh); }
}

@keyframes comet-rotate {
    0% { transform: rotate(-45deg); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: rotate(45deg); opacity: 0; }
}

/* Reverse Disney Comet Animation */
.comet-x-rev {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -4;
    pointer-events: none;
    animation: comet-x-anim-rev 8s linear forwards;
}

.comet-y-rev {
    animation: comet-y-anim-rev 8s forwards;
}

.comet-body-rev {
    width: 0;
    height: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transform-origin: center;
    margin-left: 0;
    margin-top: 0;
    animation: comet-rotate-rev 8s ease-out forwards;
}

.comet-body-rev::after {
    content: '';
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px var(--gold-light), 0 0 40px var(--gold), 0 0 60px #ffffff;
}

@keyframes comet-x-anim-rev {
    0% { transform: translateX(115vw); }
    100% { transform: translateX(-15vw); }
}

@keyframes comet-y-anim-rev {
    0% { transform: translateY(85vh); animation-timing-function: ease-out; }
    100% { transform: translateY(-15vh); }
}

@keyframes comet-rotate-rev {
    0% { transform: rotate(-135deg); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: rotate(-180deg); opacity: 0; }
}

@media (max-width: 768px) {
    .comet-body {
        width: 0;
        height: 0;
        margin-left: 0;
        margin-top: 0;
    }
    .comet-body-rev {
        width: 0;
        height: 0;
        margin-left: 0;
        margin-top: 0;
    }
    
    .comet-body::after, .comet-body-rev::after {
        width: 8px;
        height: 8px;
        left: -4px;
        top: -4px;
        box-shadow: 0 0 15px 4px var(--gold-light), 0 0 30px var(--gold), 0 0 40px #ffffff;
    }

    /* Flatter, more realistic arc for mobile screens */
    @keyframes comet-y-anim {
        0% { transform: translateY(35vh); animation-timing-function: ease-out; }
        50% { transform: translateY(15vh); animation-timing-function: ease-in; }
        100% { transform: translateY(35vh); }
    }
    
    @keyframes comet-rotate {
        0% { transform: rotate(-25deg); opacity: 0; }
        5% { opacity: 1; }
        95% { opacity: 1; }
        100% { transform: rotate(25deg); opacity: 0; }
    }

    /* Reverse comet mobile trajectory */
    @keyframes comet-y-anim-rev {
        0% { transform: translateY(50vh); animation-timing-function: ease-out; }
        100% { transform: translateY(-5vh); }
    }

    @keyframes comet-rotate-rev {
        0% { transform: rotate(-145deg); opacity: 0; }
        5% { opacity: 1; }
        95% { opacity: 1; }
        100% { transform: rotate(-180deg); opacity: 0; }
    }
}
