/* --- CSS VARIABLES & RESET --- */
:root {
    /* Base Colors - Light Theme */
    --bg-dark: #f0fdf4;
    /* Background putih kehijauan sangat muda (Mint Cream) */
    --bg-card: rgba(255, 255, 255, 0.65);
    /* Glass effect putih */
    --glass-border: rgba(22, 163, 74, 0.15);
    /* Border hijau tipis */

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    /* Green Gradient */
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    /* Orange Gradient (Urgency) */

    /* Accent Colors (Remapped from Neon) */
    --neon-cyan: #16a34a;
    /* Primary Green */
    --neon-blue: #0ea5e9;
    /* Sky Blue (Water/Trust) */
    --neon-pink: #f59e0b;
    /* Amber (Alert/Warning) */

    /* Text Colors */
    --text-main: #064e3b;
    /* Dark Green Text (Kontras tinggi) */
    --text-muted: #64748b;
    /* Slate Gray */

    --font-main: 'Space Grotesk', sans-serif;
}

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

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

/* --- WEB3 GRID BACKGROUND (Light Mode Version) --- */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Grid hijau tipis di atas putih */
    background-image:
        linear-gradient(rgba(22, 163, 74, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 163, 74, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

/* --- BACKGROUND GLOWS --- */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(90px);
    opacity: 0.5;
    animation: floatBlob 15s infinite alternate;
}

.blob-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, #86efac 0%, transparent 70%);
    /* Light Green Glow */
}

.blob-2 {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, #bae6fd 0%, transparent 70%);
    /* Light Blue Glow */
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 80px);
    }
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    /* Efek shadow halus untuk teks putih di light mode */
    text-shadow: none;
}

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

.text-muted-sm {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.75rem;
}

.highlight-cyan {
    color: var(--neon-cyan);
    font-weight: bold;
    font-family: monospace;
}

.highlight-pink {
    color: var(--neon-pink);
    font-weight: bold;
}

.full-width {
    width: 100%;
}

/* --- BUTTONS --- */
.btn {
    position: relative;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    text-decoration: none;
    transition: 0.3s;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    /* Teks putih di tombol hijau */
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
    transform: translateY(-2px);
}

.btn-connect {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
}

.btn-connect:hover {
    background: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--text-main);
    color: #fff;
}

/* --- NAVBAR --- */
nav {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

.beta-tag {
    font-size: 0.6rem;
    background: var(--neon-cyan);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: top;
    margin-left: 5px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        opacity: 0.7;
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #1e293b;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
}

.trusted-by {
    margin-top: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 20px;
}

.trusted-by i {
    font-size: 1.2rem;
    color: var(--text-main);
}

/* --- HERO VISUAL & CARDS (GLASS UPGRADE) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 500px;
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    position: absolute;
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: floatCard 8s ease-in-out infinite;
}

.card-main {
    width: 340px;
    z-index: 2;
    top: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.live-indicator {
    color: var(--neon-cyan);
    font-size: 0.7rem;
    text-transform: uppercase;
    animation: blink 2s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.activity-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.activity-row:hover {
    background: rgba(22, 163, 74, 0.05);
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 12px;
}

.gradient-1 {
    background: linear-gradient(45deg, #f59e0b, #ea580c);
}

/* Orange/Amber */
.gradient-2 {
    background: linear-gradient(45deg, #22c55e, #15803d);
}

/* Green */
.gradient-3 {
    background: linear-gradient(45deg, #0ea5e9, #0284c7);
}

/* Blue */
.activity-info {
    flex: 1;
}

.graph-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
    margin-top: 20px;
    opacity: 0.8;
}

.bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    transition: height 1s;
}

.bar.active {
    background: var(--primary-gradient);
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.3);
}

/* Floating Small Cards */
.card-small {
    padding: 15px;
    border-radius: 12px;
}

.card-security {
    bottom: 50px;
    left: -20px;
    z-index: 3;
    animation-delay: 1s;
    width: 180px;
    background: #fff;
}

.card-currency {
    top: 80px;
    right: -40px;
    z-index: 1;
    animation-delay: 2s;
    width: 160px;
    text-align: center;
    background: #fff;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- STATS SECTION --- */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: #f8fafc;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 5px;
    font-family: monospace;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- CAMPAIGNS GRID --- */
.campaigns {
    padding: 100px 0;
}

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

.campaign-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.campaign-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.card-img {
    height: 160px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-img i {
    font-size: 3rem;
    opacity: 0.5;
    color: #94a3b8;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-weight: 600;
}

.pulse-dot.red {
    background: #ef4444;
    box-shadow: 0 0 5px #ef4444;
}

.card-content {
    padding: 25px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.pool-id {
    color: var(--text-muted);
    font-family: monospace;
}

.badge {
    background: rgba(22, 163, 74, 0.1);
    color: var(--neon-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge.pink {
    background: rgba(245, 158, 11, 0.1);
    color: var(--neon-pink);
}

.badge.blue {
    background: rgba(14, 165, 233, 0.1);
    color: var(--neon-blue);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.progress-container {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.progress-bar {
    height: 6px;
    background: #cbd5e1;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-main);
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
        display: none;
    }

    .nav-links {
        display: none;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
}