:root {
  --bg: #090b10;
  --card-bg: #11141d;
  --card-hover: #161b27;
  --border: #222938;
  --accent: #eab308;
  --accent-dim: rgba(234, 179, 8, 0.12);
  --green: #22c55e;
  --blue: #38bdf8;
  --text: #e2e8f0;
  --text-muted: #8b9bb4;
  --font-mono: 'Fira Code', monospace;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  padding: 40px 16px;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
}

/* Верхний статус-бар */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.node-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

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

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.cell {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.cell:hover {
  border-color: #3b455c;
}

.cell-hero {
  grid-column: span 8;
}

.cell-about {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cell-skills {
  grid-column: span 5;
}

.cell-infra {
  grid-column: span 7;
}

.cell-links {
  grid-column: span 12;
}

@media (max-width: 820px) {
  .cell-hero, .cell-about, .cell-skills, .cell-infra, .cell-links {
    grid-column: span 12;
  }
}

.cell-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cell-label::before {
  content: '>';
  font-weight: 700;
}

/* Профиль и аватар */
.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #090b10;
  border: 1px solid var(--border);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: 6px;
}

.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid var(--card-bg);
  border-radius: 50%;
}

.name-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.alias {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Терминал BIRD */
.terminal-quote {
  margin-top: 18px;
  padding: 12px 14px;
  background: #090b10;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.45;
}

.terminal-quote .prompt {
  color: var(--accent);
  user-select: none;
}

/* Личная информация (про меня) */
.about-list {
  display: flex;
  flex-direction: column;
}

.stat-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-name {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

/* Навыки */
.skills-simple-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-simple-item {
  background: #090b10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.skill-simple-item:hover {
  border-color: rgba(234, 179, 8, 0.4);
}

.skill-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.4;
}

/* Железо / Лаба */
.hardware-nodes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hw-node {
  background: #090b10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.hw-node-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hw-specs {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hw-specs strong {
  color: var(--text);
}

.upgrade-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hw-net-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Кнопки и ссылки */
.links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #090b10;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-ecosystem {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.05);
}

.btn-badge {
  font-size: 0.7rem;
  background: rgba(234, 179, 8, 0.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Футер */
footer {
  padding: 18px 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}