/* ===== CSS Variables ===== */
:root {
    /* Icy Color Palette */
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #7de8ff;
    --secondary: #a855f7;
    --accent: #22d3ee;

    /* Aurora Colors */
    --aurora-1: rgba(0, 212, 255, 0.3);
    --aurora-2: rgba(168, 85, 247, 0.2);
    --aurora-3: rgba(34, 211, 238, 0.25);

    /* Backgrounds */
    --bg-dark: #030712;
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    --gradient-aurora: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    --gradient-ice: linear-gradient(135deg, #00d4ff 0%, #22d3ee 50%, #a855f7 100%);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Fonts */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Snow Particles ===== */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0.7;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Aurora Background ===== */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.aurora-1 {
    top: -20%;
    left: -50%;
    background: var(--aurora-1);
    animation: aurora-wave 15s ease-in-out infinite;
}

.aurora-2 {
    top: 10%;
    right: -50%;
    background: var(--aurora-2);
    animation: aurora-wave 20s ease-in-out infinite reverse;
}

.aurora-3 {
    top: 30%;
    left: -30%;
    background: var(--aurora-3);
    animation: aurora-wave 18s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes aurora-wave {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(10%) translateY(5%) scale(1.1);
    }
    50% {
        transform: translateX(-5%) translateY(-5%) scale(0.9);
    }
    75% {
        transform: translateX(-10%) translateY(10%) scale(1.05);
    }
}

/* ===== Header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 24px;
    transition: var(--transition-base);
    background: transparent;
}

#header.scrolled {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

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

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

.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-link.cta-btn {
    width: auto;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
}

.social-link.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-socials {
    display: flex;
    gap: 16px;
    padding-top: 16px;
}

.mobile-socials .cta-btn {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
}

/* ===== Hero Section ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    margin-bottom: 32px;
    font-size: 0.875rem;
    color: var(--primary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-ice);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    display: none;
}

@media (min-width: 1200px) {
    #hero {
        justify-content: flex-start;
        padding-left: 10%;
    }

    .hero-content {
        text-align: left;
    }

    .hero-tagline {
        margin-left: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .hero-visual {
        display: block;
    }
}

.hero-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border: 2px solid var(--border-glow);
    border-radius: 50%;
    animation: ring-rotate 20s linear infinite;
}

.hero-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-penguin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-glow);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.4);
    animation: float 6s ease-in-out infinite;
}

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

.floating-ice {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(5px);
}

.ice-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation: ice-float 8s ease-in-out infinite;
}

.ice-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 5%;
    animation: ice-float 6s ease-in-out infinite;
    animation-delay: -2s;
}

.ice-3 {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
    animation: ice-float 7s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes ice-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ===== Contract Section ===== */
#contract {
    padding: 0 24px 80px;
    position: relative;
    z-index: 2;
}

.contract-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px 32px;
    backdrop-filter: blur(20px);
}

.contract-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contract-address code {
    flex: 1;
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    color: var(--primary);
    word-break: break-all;
    min-width: 200px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.copy-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

/* ===== Section Styles ===== */
section {
    position: relative;
    z-index: 2;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding) 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ===== Social Proof Section ===== */
#social-proof {
    padding: 0 24px 40px;
    position: relative;
    z-index: 2;
}

#social-proof .section-container {
    padding: 40px 24px;
}

.social-proof-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.social-proof-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.proof-badge svg {
    color: var(--primary);
}

.social-proof-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-ice);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-proof-card > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.proof-image-container {
    max-width: 500px;
    margin: 0 auto;
}

.proof-image-link {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}

.proof-image-link:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.proof-image {
    width: 100%;
    height: auto;
    display: block;
}

.proof-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition-base);
    color: white;
    font-weight: 600;
}

.proof-image-link:hover .proof-overlay {
    opacity: 1;
}

/* ===== About Section ===== */
#about {
    background: linear-gradient(180deg, transparent, var(--bg-secondary), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Gallery Section ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay svg {
    color: white;
}

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

#modal-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* ===== Meme Lab Section ===== */
#meme-lab {
    background: linear-gradient(180deg, transparent, var(--bg-secondary), transparent);
}

.meme-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .meme-generator {
        grid-template-columns: 1fr;
    }
}

.meme-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    resize: vertical;
}

.form-group textarea {
    min-height: 120px;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 16px;
}

.form-actions .btn {
    flex: 1;
}

/* Meme Preview */
.meme-preview {
    position: sticky;
    top: 100px;
}

.preview-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 0.875rem;
}

#meme-canvas {
    display: none;
    max-width: 100%;
    max-height: 100%;
}

#meme-canvas.visible {
    display: block;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.download-btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Tokenomics Section ===== */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.token-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.token-stat:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.token-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.token-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.distribution {
    max-width: 600px;
    margin: 0 auto;
}

.distribution h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dist-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.dist-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.dist-header span:first-child {
    color: var(--text-secondary);
}

.dist-header span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.dist-bar {
    height: 8px;
    background: var(--bg-glass);
    border-radius: 100px;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width 1s ease-out;
}

/* ===== Roadmap Section ===== */
#roadmap {
    background: linear-gradient(180deg, transparent, var(--bg-secondary), transparent);
}

.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.roadmap-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.roadmap-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.roadmap-marker {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 24px;
}

.roadmap-marker span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--bg-dark);
}

.roadmap-content h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.roadmap-content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roadmap-content li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.roadmap-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ===== CTA Section ===== */
#cta {
    padding: var(--section-padding) 24px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 80px 48px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-penguin {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-glow);
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-container p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 64px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-glow);
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.footer-disclaimer {
    max-width: 600px;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-copyright {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-socials {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .cta-container {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}
