/* --- Root Variables for Easy Theming --- */
:root {
    --dark-bg: #0a0e1a;
    --primary-blue: #3a7dff;
    --primary-purple: #8c52ff;
    --glow-cyan: #00e0ff;
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --card-bg: rgba(22, 28, 49, 0.7);
    --border-color: rgba(58, 125, 255, 0.2);
}

/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Moving Particle Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Increased gap for larger logo */
}

/* --- UPDATED: Increased logo size AGAIN --- */
.logo img {
    width: 125px; /* Increased from 70px */
    height: 125px; /* Increased from 70px */
}

.logo h1 {
    font-size: 2rem; /* Slightly larger text to match */
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(58, 125, 255, 0.4);
}

.discord-link img {
    width: 75px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.discord-link:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.wallet-status {
    margin-top: 2rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: none;
}

.wallet-status p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

#user-address { font-weight: bold; color: var(--glow-cyan); }
#lnx-balance { font-weight: bold; color: var(--glow-cyan); }

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

.section-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- "How It Works" Section --- */
.how-to-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.how-to-step {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-to-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(58, 125, 255, 0.1);
}

.how-to-step h4 {
    font-size: 1.5rem;
    color: var(--glow-cyan);
    margin-bottom: 1rem;
}

.how-to-step p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.code-block {
    background-color: var(--dark-bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    user-select: all;
    word-break: break-all;
}

/* --- Leaderboard Section --- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    font-weight: 600;
    font-size: 1.1rem;
}

.leaderboard-table tbody tr {
    transition: background-color 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(58, 125, 255, 0.1);
}

.rank-1 { color: #ffd700; font-weight: bold; }
.rank-2 { color: #c0c0c0; font-weight: bold; }
.rank-3 { color: #cd7f32; font-weight: bold; }

/* --- Roadmap Section --- */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.roadmap-item {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 224, 255, 0.1);
}

.roadmap-item h4 {
    font-size: 1.5rem;
    color: var(--glow-cyan);
    margin-bottom: 1rem;
}

.roadmap-item p {
    color: var(--text-secondary);
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- INTERACTIVITY: Scroll Reveal Animation --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .logo h1 {
        display: none;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    section {
        padding: 4rem 0;
    }
    h3 {
        font-size: 2rem;
    }
}