:root {
    /* Color Palette */
    --bg-dark: #030806;
    --bg-surface: #0a1611;
    --bg-surface-light: rgba(16, 36, 26, 0.6);
    
    --primary: #4ade80; /* Toxic/Neon Green */
    --primary-glow: rgba(74, 222, 128, 0.4);
    --primary-hover: #22c55e;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(16, 36, 26, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-subtitle: 'Space Mono', monospace;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fireflies Background */
#fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--primary-glow);
    animation: float 4s ease-in-out infinite, blink 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

@keyframes blink {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.8; }
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

.section-desc {
    font-family: var(--font-subtitle);
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 40px rgba(74, 222, 128, 0.8); }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    animation: pulseGlow 3s infinite;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(3, 8, 6, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    animation: slowZoom 30s ease-in-out alternate infinite;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
    transform: scale(1.1);
    transition: transform 0.3s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(3, 8, 6, 0.7) 0%,
        rgba(3, 8, 6, 0.4) 50%,
        var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    padding: 0 2rem;
    margin: auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--primary-glow);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@keyframes textPulse {
    0%, 100% { text-shadow: 0 0 40px var(--primary-glow); }
    50% { text-shadow: 0 0 60px var(--primary), 0 0 20px var(--primary); }
}

.hero-title span {
    color: var(--primary);
    text-shadow: 0 0 40px var(--primary-glow);
    animation: textPulse 3s infinite;
    display: inline-block;
}

.hero-subtitle {
    font-family: var(--font-subtitle);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contract-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow: hidden;
}

.ca-label {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.75rem;
}

.contract-box code {
    font-family: monospace;
    font-size: 1rem;
    color: var(--primary);
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-icon:hover {
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Marquee */
.marquee-container {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 0;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 10;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 0 30px var(--primary-glow);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    animation: scroll 20s linear infinite;
}

.marquee-content span {
    padding: 0 2rem;
}

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

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Lore Section */
.lore-section {
    background: radial-gradient(circle at center, rgba(16, 36, 26, 0.4) 0%, transparent 70%);
}

.lore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lore-subtitle {
    font-family: var(--font-subtitle);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.lore-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lore-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.lore-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid var(--glass-border);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid var(--glass-border);
    background: var(--bg-dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    -webkit-transform: translateZ(0);
}

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

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    transition: transform 0.2s ease-out;
}

/* Frog Elements */
.bg-frog {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(5px) grayscale(50%);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.4s ease-out;
}

.frog-1 {
    top: 20%;
    left: -100px;
    width: 400px;
    height: 400px;
    transform: rotate(15deg);
}

.frog-2 {
    top: 70%;
    right: -150px;
    width: 600px;
    height: 600px;
    transform: rotate(-20deg);
}

.frog-mascot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(74, 222, 128, 0.3));
    animation: bounce-slow 4s infinite;
}

.frog-mascot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: var(--bg-surface);
}

.frog-mascot:hover {
    transform: scale(1.15) translateY(-10px);
    filter: drop-shadow(0 15px 30px rgba(74, 222, 128, 0.6));
    animation: none;
}

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

/* Tokenomics Section */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.glass-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-muted);
}

/* How to Buy Section */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: var(--bg-surface-light);
    border-color: var(--primary-glow);
}

.step-number {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--text-main);
    font-size: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

/* Animations (Scroll Revealed) */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .lore-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .lore-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .video-container {
        margin: 0 auto;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 8, 6, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .desktop-nav, .desktop-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-content {
        padding: 0 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 3rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    
    .contract-box {
        width: 100%;
        max-width: 360px;
        margin: 0 auto 2rem auto;
        padding: 0.75rem 1.25rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .ca-label {
        margin-right: 0;
    }

    .contract-box code {
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        margin: 0;
        text-align: left;
    }
    
    .btn-icon {
        margin: 0;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .frog-mascot {
        width: 55px;
        height: 55px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}
