:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #08080d;
    --bg-terminal: rgba(10, 15, 10, 0.6);
    --bg-terminal-hover: rgba(15, 25, 15, 0.8);
    --text-primary: #c8d0c8;
    --text-secondary: #6a7a6a;
    --text-muted: #3a4a3a;
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.12);
    --accent-cyan: #00e5ff;
    --accent-cyan-dim: rgba(0, 229, 255, 0.1);
    --accent-gold: #ffb800;
    --accent-gold-dim: rgba(255, 184, 0, 0.1);
    --accent-purple: #836ef9;
    --accent-purple-dim: rgba(131, 110, 249, 0.12);
    --accent-red: #ff3355;
    --border-color: rgba(0, 255, 136, 0.08);
    --border-glow: rgba(0, 255, 136, 0.2);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-max: 1000px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

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

/* ========== MATRIX CANVAS ========== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== SCANLINE ========== */
.scanline-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ========== CONTAINER ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.97);
    border-bottom-color: var(--border-glow);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
}

.prompt-symbol {
    color: var(--accent-cyan);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-prefix {
    color: var(--text-muted);
    margin-right: 6px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-green);
    background: var(--accent-green-dim);
    border-color: rgba(0, 255, 136, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--accent-green);
    transition: var(--transition);
}

/* ========== HERO — BOOT SEQUENCE ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 80px 24px 40px;
}

.hero-content {
    max-width: 720px;
    width: 100%;
}

.boot-sequence {
    margin-bottom: 32px;
}

.boot-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.boot-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-ok {
    color: var(--accent-green);
    font-weight: 600;
}

.boot-val {
    color: var(--accent-cyan);
}

.hero-main {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-main.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan), transparent);
    margin-bottom: 32px;
    opacity: 0.5;
}

.hero-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.hero-avatar {
    width: clamp(64px, 10vw, 100px);
    height: clamp(64px, 10vw, 100px);
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.15);
    object-fit: cover;
    filter: brightness(0.85);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.15);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-stats-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 0.8rem;
}

.stat-chip {
    color: var(--text-secondary);
}

.stat-val {
    color: var(--accent-gold);
    font-weight: 600;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-prompt {
    color: var(--accent-green);
    font-weight: 600;
}

.btn-primary {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.btn-primary:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

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

.btn-secondary:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section-alt {
    background: var(--bg-secondary);
}

/* ========== TERMINAL HEADERS ========== */
.terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: normal;
}

.terminal-header-inline {
    margin-top: 40px;
}

.terminal-prompt {
    color: var(--accent-green);
    font-weight: 700;
}

.terminal-cmd {
    color: var(--accent-cyan);
    font-weight: 600;
}

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

.terminal-output {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
}

.terminal-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0.3;
}

/* ========== ABOUT — WHOAMI ========== */
.about-terminal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 4px 0;
}

.about-key {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.about-val {
    color: var(--text-primary);
    font-size: 0.85rem;
}

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

.about-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.about-section-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.capability-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 0;
}

.cap-name {
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 110px;
    flex-shrink: 0;
}

.cap-bar {
    width: 100px;
    height: 8px;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.cap-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 2px;
    transition: width 1s ease;
}

.cap-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* ========== NETWORKS — TIMELINE ========== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tl-entry {
    display: grid;
    grid-template-columns: 60px 40px 1fr 96px;
    align-items: start;
    padding: 20px 0;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.tl-clickable:hover {
    background: var(--bg-terminal-hover);
    border-radius: 4px;
}

.tl-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 2px;
}

.tl-active .tl-year {
    color: var(--accent-gold);
}

.tl-year-end {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.tl-year-now {
    color: var(--accent-green);
}

.tl-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 6px;
}

.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.tl-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 18px rgba(0, 255, 136, 0.7); }
}

.tl-line {
    width: 1px;
    flex: 1;
    min-height: 40px;
    background: var(--border-color);
}

.tl-line.last {
    background: transparent;
}

.tl-body {
    padding: 0 16px;
}

.tl-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tl-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.tl-sub {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tl-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.tl-status-active {
    color: var(--accent-green);
    animation: blink-status 3s infinite;
}

@keyframes blink-status {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

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

.tl-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tl-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--accent-cyan-dim);
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.04);
}

.tag-purple {
    border-color: var(--accent-purple-dim);
    color: var(--accent-purple);
    background: rgba(131, 110, 249, 0.06);
}

/* ========== LIVE INDICATORS IN TIMELINE ========== */
.tl-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.03);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.tl-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.tl-live-dot.live-online {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.tl-live-dot.live-offline {
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(255, 51, 85, 0.5);
}

.tl-live-text {
    color: var(--text-secondary);
}

.tag-dim {
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    background: transparent;
}

.tl-progress {
    height: 4px;
    background: rgba(0, 255, 136, 0.06);
    border-radius: 2px;
    overflow: hidden;
    max-width: 300px;
}

.tl-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 2px;
}

.tl-bar-exited {
    background: var(--text-muted);
    opacity: 0.3;
}

.tl-progress-exited {
    background: rgba(255, 255, 255, 0.02);
}

.tl-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 2px;
}

.tl-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.9;
    border: 1.5px solid rgba(0, 255, 136, 0.25);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.1);
    background: var(--bg-primary);
}

.tl-exited .tl-icon img {
    opacity: 0.4;
    filter: grayscale(0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.tl-icon-dual {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.tl-icon.tl-icon-dual img {
    width: 40px;
    height: 40px;
}

.tl-featured {
    border-left: 2px solid var(--accent-purple);
    margin-left: -2px;
    padding-left: 2px;
}

/* ========== INFRASTRUCTURE — GRID ========== */
.infra-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 4px;
}

.infra-block {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    background: rgba(0, 229, 255, 0.02);
    transition: var(--transition);
}

.infra-block:hover {
    border-color: var(--border-glow);
    background: rgba(0, 229, 255, 0.04);
}

.infra-block-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.infra-block-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.infra-block-body span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.infra-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    white-space: nowrap;
}

.infra-arrow-down {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    line-height: 1.3;
    padding: 4px 0;
}

.infra-wide-block {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    background: rgba(0, 229, 255, 0.02);
    margin-top: 4px;
    transition: var(--transition);
}

.infra-wide-block:hover {
    border-color: var(--border-glow);
    background: rgba(0, 229, 255, 0.04);
}

.infra-wide-block .infra-block-header {
    margin-bottom: 10px;
}

.infra-wide-block .infra-body-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.infra-body-row span::before {
    content: '·';
    color: var(--accent-green);
    margin-right: 6px;
}

/* Open Source */
.opensource-section {
    margin-top: 12px;
}

.repo-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.repo-entry {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.repo-entry:hover {
    background: var(--bg-terminal-hover);
    border-color: var(--border-color);
}

.repo-bullet {
    color: var(--accent-green);
    font-weight: 600;
    margin-right: 6px;
}

.repo-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.repo-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ========== MONAD DASHBOARD ========== */
.monad-dashboard {
    padding: 28px;
}

.monad-dashboard::before {
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-green), transparent);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.heartbeat-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heartbeat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.heartbeat-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.6);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heartbeat-dot.offline {
    background: var(--accent-red);
    box-shadow: 0 0 14px rgba(255, 51, 85, 0.6);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.heartbeat-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.last-updated {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 16px;
    background: rgba(0, 255, 136, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    border-color: var(--border-glow);
}

.metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-green);
    line-height: 1.2;
}

.metric-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.chart-block {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.chart-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.chart-unit {
    color: var(--text-muted);
    font-weight: 400;
}

.chart-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#block-canvas, #tx-canvas {
    width: 100%;
    height: 160px;
    display: block;
    max-width: 100%;
}

/* ========== CONTACT ========== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-entry:hover {
    background: var(--bg-terminal-hover);
    border-color: var(--border-color);
}

.contact-entry:hover .contact-arrow {
    color: var(--accent-green);
    transform: translateX(4px);
}

.contact-icon {
    color: var(--text-muted);
    display: flex;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-entry:hover .contact-icon {
    color: var(--accent-cyan);
}

.contact-platform {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 80px;
    flex: 1;
}

.contact-handle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-arrow {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.footer-prompt {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
}

.footer-cursor {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* ========== LATENCY COLORS ========== */
.metric-value.latency-good { color: var(--accent-green); }
.metric-value.latency-warn { color: var(--accent-gold); }
.metric-value.latency-bad { color: var(--accent-red); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 10px 14px;
    }

    .about-row {
        flex-direction: column;
        gap: 2px;
    }

    .about-key {
        min-width: unset;
        font-size: 0.7rem;
    }

    .capability-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cap-bar {
        width: 100px;
    }

    .cap-desc {
        width: 100%;
        padding-left: 0;
    }

    .tl-entry {
        grid-template-columns: 48px 30px 1fr 40px;
    }

    .tl-year {
        font-size: 0.75rem;
    }

    .tl-name {
        font-size: 0.85rem;
    }

    .tl-icon img,
    .tl-icon.tl-icon-dual img {
        width: 34px;
        height: 34px;
    }

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

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

    .infra-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .infra-connector {
        padding: 4px 0;
        font-size: 0.7rem;
    }

    .infra-wide-block .infra-body-row {
        flex-direction: column;
        gap: 4px;
    }

    .terminal-output {
        padding: 16px;
    }

    .monad-dashboard {
        padding: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .tl-entry {
        grid-template-columns: 40px 24px 1fr;
    }

    .tl-icon {
        display: none;
    }

    .capability-row {
        flex-direction: column;
        gap: 4px;
    }

    .cap-desc {
        padding-left: 0;
    }

    .cap-bar {
        width: 80px;
    }

    .contact-handle {
        font-size: 0.75rem;
    }
}
