:root {
    --bg-dark: #0a0514;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --primary: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.4);
    --secondary: #FFA500;
    --text-main: #f8f9fa;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(138,43,226,0.4) 0%, rgba(75,0,130,0) 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(255,165,0,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #1a1a1a;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 5, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 6rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    max-width: fit-content;
}

.ca-label {
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

code {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Image styling */
.image-wrapper {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    animation: floatImage 6s ease-in-out infinite alternate;
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

/* General Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    padding: 1rem;
}

.about-visual img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.about-visual:hover img {
    transform: scale(1.02);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Tokenomics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-icon {
    font-size: 3rem;
    position: absolute;
    bottom: -10px;
    right: -10px;
    opacity: 0.1;
}

/* How to Buy */
.buy-venues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.buy-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.buy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    border-color: var(--primary);
}

.buy-card .venue-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.buy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0;
    color: var(--text);
}

.buy-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

.buy-card .venue-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.buy-card:hover .venue-cta {
    text-decoration: underline;
}

/* Steps layout kept for legacy / fallback */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

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

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.5;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

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

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

/* Media & Charts Section */
.media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-container, .videos-container {
    padding: 2rem;
}

.chart-container h3, .videos-container h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary);
}

.iframe-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-placeholder {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-placeholder:hover {
    background: rgba(255,215,0,0.1);
}

.vid-icon {
    font-size: 2rem;
}


/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    .hero p {
        margin: 0 auto 2.5rem;
    }
    .hero-cta, .contract-address {
        justify-content: center;
        margin: 0 auto 2.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-visual {
        order: -1;
    }
    .nav-links {
        display: none;
    }
}
@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .step {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Leaderboard section (Phase 3) */
.leaderboard {
    padding-bottom: 4rem;
}

.section-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.stat-updated {
    color: var(--primary);
    font-weight: 500;
    margin-left: 0.25rem;
}

.leaderboard-panel {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    counter-reset: lb;
}

.leaderboard-list .row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    font-family: 'Space Grotesk', sans-serif;
}

.leaderboard-list .row:last-child {
    border-bottom: none;
}

.leaderboard-list .row .rank {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.leaderboard-list .rank-1 .rank { color: #ffd700; }
.leaderboard-list .rank-2 .rank { color: #c0c0c0; }
.leaderboard-list .rank-3 .rank { color: #cd7f32; }

.leaderboard-list .row .nick {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
}

.leaderboard-list .row .score {
    color: var(--primary);
    font-weight: 700;
}

.leaderboard-list .empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 1.5rem 0;
    font-style: italic;
}

.leaderboard-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
}
