:root {
  --bg: #0b0f17;
  --surface: #0f1623;
  --surface-hover: #162032;
  --primary: #3b82f6;
  --accent: #00eaff;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1e293b;
  --success: #22c55e;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 80px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
h3 { font-size: 1rem; }

p { color: var(--muted); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* Grid System */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Navbar */
.navbar {
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand .brand-main {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 1px;
}

.nav-brand .brand-main span {
  color: var(--primary);
}

.nav-brand .brand-sub {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.nav-link {
  color: #fff;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link.active::before {
  content: '>_ ';
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-status {
  color: var(--success);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-title span {
  color: var(--primary);
}

.hero p {
  max-width: 500px;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.hero-cta {
  margin-top: 2rem;
  display: inline-block;
  color: var(--success);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Lab Panel */
.lab-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 4px;
}

.lab-panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lab-map {
  width: 100%;
  height: 150px;
  background: url('../images/map-placeholder.png') center/contain no-repeat;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.node-list {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.node-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.node-status {
  color: var(--success);
}

/* Metrics Bar */
.metrics-bar {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.metric-item {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem;
  flex: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.metric-value.online { color: var(--success); }
.metric-value.online::before { content: '● '; }

/* Quick Link Boxes */
.quick-link-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
}

.quick-link-box:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.quick-link-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.quick-link-box h3 {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.quick-link-box p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.quick-link-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

/* Project Cards */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.view-all {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.project-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
}

.project-img {
  width: 200px;
  height: 150px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--success);
  text-transform: uppercase;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Tutorial Cards */
.tutorial-card {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.tutorial-icon {
  width: 50px;
  height: 50px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.tutorial-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Footer / Status Bar */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.status-terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-prompt { color: var(--success); }
.terminal-stats { margin-top: 1rem; }
.stat-line { display: flex; justify-content: space-between; }
.stat-val { color: var(--success); }

/* Responsive */
@media (max-width: 992px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .project-card { flex-direction: column; }
  .project-img { width: 100%; height: 200px; }
}
