:root {
  --bg-color: #050505;
  --glass-bg: rgba(20, 20, 25, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --neon-blue: #00f0ff;
  --neon-purple: #8a2be2;
  --text-main: #f0f0f0;
  --text-muted: #888899;
}

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

body {
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.08), transparent 25%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

header {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeIn 1s ease-out;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2 span.highlight { color: var(--neon-blue); }

p { margin-bottom: 1.5rem; }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.node-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.node-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.4);
}

.node-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neon-purple);
  margin-bottom: 1rem;
}

ul.specs {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

ul.specs li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

ul.specs li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--neon-blue);
}

.callout {
  border-left: 4px solid var(--neon-blue);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.05) 0%, transparent 100%);
  padding: 2rem;
  border-radius: 0 16px 16px 0;
  margin: 2rem 0;
}

.callout code,
code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon-blue);
  font-size: 0.9em;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  overflow: hidden;
}

.metrics-table th, .metrics-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metrics-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.metrics-table tr:last-child td { border-bottom: none; }

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-secondary {
  display: inline-block;
  margin-left: 1rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--neon-blue);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
}

.terminal-block {
  background: #0d0d12;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #a0a0b0;
  overflow-x: auto;
  border: 1px solid #222;
}

.terminal-block span.cmd { color: #00ff66; }

.lang-switcher {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  z-index: 10;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lang-switcher a.active, .lang-switcher a:hover {
  color: var(--neon-blue);
}

.lang-switcher .divider {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.home-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.home-link:hover { color: var(--neon-blue); }

a.inline { color: var(--neon-blue); }

.cta {
  text-align: center;
  margin-top: 3rem;
}

.project-list .node-card a {
  color: inherit;
  text-decoration: none;
}

.project-list .node-title {
  color: var(--neon-blue);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  .glass-panel { padding: 1.75rem; }
  .btn-secondary { margin-left: 0; display: block; text-align: center; }
}
