/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --text: #ffffff;
    --text-dim: #888888;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-light: #e5e5e5;
    --border: #222222;
    --border-light: #2a2a2a;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.65rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    height: 30px;
    width: auto;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero */
.hero-section {
    padding: 5rem 2rem 2.5rem;
    text-align: center;
}

.hero-container {
    max-width: 700px;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.main-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.title-line {
    font-size: 2.25rem;
    display: block;
    color: var(--text);
    font-weight: 800;
}

.title-line-small {
    font-size: 1.15rem;
    display: block;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.highlight {
    color: var(--text);
    font-weight: 900;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.btn-primary {
    padding: 0.6rem 1.4rem;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid var(--text);
}

.btn-primary:hover {
    background: var(--text-dim);
    border-color: var(--text-dim);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Networks Section */
.networks-section {
    padding: 2rem 2rem;
    background: var(--bg-secondary);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.tab-badge {
    padding: 0.25rem 0.625rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tab-btn.active .tab-badge {
    background: var(--text);
    color: var(--bg);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Network Table/List Style */
.network-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.network-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.network-row:first-child {
    border-radius: 8px 8px 0 0;
}

.network-row:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.network-row:hover {
    background: var(--bg);
    border-left: 3px solid var(--text);
    padding-left: calc(0.75rem - 3px);
}

.network-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.network-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.network-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.network-status {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.network-actions {
    display: flex;
    gap: 0.4rem;
}

.action-btn {
    padding: 0.4rem 0.85rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-explorer {
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
}

.btn-explorer:hover {
    background: var(--text-dim);
    border-color: var(--text-dim);
    transform: translateY(-2px);
}

.btn-docs {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-light);
}

.btn-docs:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Footer */
.footer {
    padding: 2rem 2rem 1.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-left h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.footer-left p {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-right a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dim);
    transition: all 0.3s;
}

.footer-right a:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .title-line-small {
        font-size: 1.25rem;
    }
    
    .network-row {
        grid-template-columns: 40px 1fr;
        gap: 0.75rem;
    }
    
    .network-actions {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

