@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #0b0e14;
    --card-bg: rgba(29, 32, 38, 0.65);
    --primary: #00d1ff;
    --secondary: #b026ff;
    --success: #39ff14;
    --text-primary: #e1e2eb;
    --text-muted: #859399;
    --border: rgba(133, 147, 153, 0.15);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Gradients */
.bg-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}
.bg-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Header & Navigation */
header {
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    color: #000;
}

.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25em;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--primary);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 0.95em;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
    background: linear-gradient(to right, var(--text-primary) 50%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto 32px auto;
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 209, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.05);
}

.card h3 {
    font-family: var(--font-head);
    font-size: 1.35em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.6;
}

/* Glow Accent Lines */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover::after {
    opacity: 1;
}

/* Metrics Section */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.metric-card {
    background: rgba(29, 32, 38, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.metric-num {
    font-family: var(--font-head);
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4);
    transform: scale(1.02);
}

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

.btn-secondary:hover {
    background: rgba(0, 209, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
}

/* Downloads Section */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.download-info h4 {
    font-family: var(--font-head);
    font-size: 1.1em;
    margin-bottom: 4px;
}

.download-info p {
    color: var(--text-muted);
    font-size: 0.85em;
}

.download-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85em;
}

.download-tag {
    background: rgba(133, 147, 153, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-primary);
}

/* Uptime / Node Status */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--success);
}

.status-dot.pulsing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

.node-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(29, 32, 38, 0.3);
    margin-bottom: 12px;
}

.node-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.node-meta {
    display: flex;
    gap: 40px;
    font-size: 0.9em;
}

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

.node-meta strong {
    color: var(--text-primary);
    font-family: var(--font-head);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 80px;
    background: rgba(11, 14, 20, 0.9);
}

/* Code block styles */
pre {
    background: rgba(11, 14, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #4cd6ff;
    margin: 20px 0;
}

/* Responsive */
@media(max-width: 768px) {
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.2em; }
    .nav-container { flex-direction: column; gap: 16px; }
}
