:root {
    --bg: #030712;
    --bg-elevated: #111827;
    --bg-card: #1f2937;
    --bg-hover: #374151;
    --border: #374151;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    background: var(--bg-hover);
}

.btn-explorer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-explorer:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

/* Hero */
.hero {
    padding: 60px 0 50px;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.1), transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

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

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

.btn-ghost:hover {
    background: var(--bg-hover);
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 6px;
}

.stat-text {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 60px 0;
}

.networks-alt {
    background: var(--bg-elevated);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 20px;
}

.section-head > div {
    flex: 1;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 1.625rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 34px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: 999px;
    border: 1px solid var(--border);
}

/* Network List */
.network-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.network-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.network-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.network-card:hover::before {
    transform: scaleY(1);
}

.network-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.network-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.network-info {
    min-width: 0;
}

.network-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.network-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.network-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.network-type {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.network-type.archive {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
    border-color: rgba(156, 163, 175, 0.2);
}

.network-actions {
    display: flex;
    gap: 8px;
}

.network-btn {
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.2s;
    white-space: nowrap;
}

.network-btn-primary {
    background: var(--primary);
    color: #fff;
}

.network-btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

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

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

.network-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
}

.status-dot.archived {
    background: var(--text-muted);
    box-shadow: none;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.625rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

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

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

.footer-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.footer-brand strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
}

.footer-brand span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .network-card {
        grid-template-columns: 64px 1fr;
        gap: 16px;
    }

    .network-meta {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .network-actions {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
    }

    .network-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 32px 24px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
