:root {
  --bg: #050507;
  --bg-muted: #0c0d10;
  --bg-card: #050608;
  --border-subtle: #23242a;
  --border-strong: #3a3b44;
  --text-main: #f5f5f5;
  --text-muted: #a0a2aa;
  --text-soft: #767884;
  --accent: #f5f5f5;
  --accent-soft: rgba(245, 245, 245, 0.14);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.7);
  --radius-lg: 8px;
  --radius-md: 4px;
  --radius-pill: 999px;
  --spacing-xs: 0.4rem;
  --spacing-sm: 0.8rem;
  --spacing-md: 1.2rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3.2rem;
  --spacing-xxl: 4.8rem;
  --container-width: 1040px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Sligoil Micro";
  src: local("Sligoil Micro"),
    url("IT-Empire/Шрифт/Sligoil-Micro.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Boot Preloader ===== */
.boot-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-screen {
  max-width: 600px;
  width: 90%;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

.boot-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.boot-version {
  font-size: 0.85rem;
  color: #6a737d;
  margin-bottom: 2rem;
}

.boot-lines {
  margin-bottom: 1.5rem;
}

.boot-line {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #c9d1d9;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.boot-status {
  color: #6a737d;
  margin-right: 0.5rem;
}

.boot-ok {
  color: #7ee787;
}

.boot-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7ee787, #58a6ff);
  transition: width 0.3s ease;
}

/* ===== Command Palette ===== */
.command-palette {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.command-visible {
  opacity: 1;
  visibility: visible;
}

.command-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.command-modal {
  position: relative;
  width: 90%;
  max-width: 560px;
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.2s ease;
}

.command-visible .command-modal {
  transform: translateY(0) scale(1);
}

.command-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.command-prompt {
  color: #7ee787;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 600;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1rem;
  caret-color: #7ee787;
}

.command-input::placeholder {
  color: #6a737d;
}

.command-esc {
  padding: 0.25rem 0.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: #6a737d;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.command-results {
  padding: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.command-hint {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #6a737d;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #c9d1d9;
  text-decoration: none;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.command-item:hover,
.command-item-active {
  background: rgba(126, 231, 135, 0.1);
  color: #fff;
}

.cmd-icon {
  width: 1.5rem;
  text-align: center;
}

.cmd-desc {
  margin-left: auto;
  color: #6a737d;
  font-size: 0.8rem;
}

/* ===== Glitch Effect on Logo ===== */
.logo-text {
  position: relative;
}

.logo-tech:hover .logo-text {
  animation: glitch 0.4s ease;
}

@keyframes glitch {
  0%, 100% {
    text-shadow: none;
    transform: translate(0);
  }
  10% {
    text-shadow: -2px 0 #ff7b72, 2px 0 #58a6ff;
    transform: translate(-1px, 1px);
  }
  20% {
    text-shadow: 2px 0 #ff7b72, -2px 0 #58a6ff;
    transform: translate(1px, -1px);
  }
  30% {
    text-shadow: -1px 0 #7ee787, 1px 0 #ff7b72;
    transform: translate(-1px, 0);
  }
  40% {
    text-shadow: 1px 0 #58a6ff, -1px 0 #7ee787;
    transform: translate(1px, 1px);
  }
  50% {
    text-shadow: -2px 0 #ff7b72, 2px 0 #7ee787;
    transform: translate(0, -1px);
  }
  60% {
    text-shadow: none;
    transform: translate(0);
  }
}

/* ===== Typing Effect ===== */
.typing-text {
  min-height: 1.2em;
}

.typing-cursor {
  color: #7ee787;
  animation: blink 1s infinite;
  font-weight: 300;
}

.typing-done + .typing-cursor {
  animation: none;
  opacity: 0;
}

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

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sligoil Micro", var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at var(--mouse-x, 10%) var(--mouse-y, 0%), rgba(245, 245, 245, 0.08), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(245, 245, 245, 0.06), transparent 55%),
    linear-gradient(135deg, #050507 0, #050508 40%, #060711 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: 40px 40px;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

h1,
h2,
h3 {
  margin: 0 0 var(--spacing-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 var(--spacing-sm);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Подчёркивание только для текстовых ссылок внутри контента */
p a:hover,
li a:hover,
.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 82%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.95), rgba(163, 164, 168, 0.5)),
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.1) 0,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 3px
    );
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.3rem 0;
  position: relative;
  color: var(--text-soft);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.18s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--text-main);
}

.nav-link.is-active::after {
  width: 100%;
}

/* Tech Header Styles */
.site-header-tech {
  background: rgba(5, 5, 7, 0.92);
}

.logo-tech {
  gap: 0.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 10px rgba(126, 231, 135, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.logo-version {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.6;
}

.main-nav-tech {
  gap: 0.25rem;
}

.nav-link-tech {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.nav-link-tech:not(:first-child)::before {
  content: '•';
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6rem;
  pointer-events: none;
}

.nav-link-tech:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-tech.is-active {
  color: #7ee787;
  background: rgba(126, 231, 135, 0.1);
}

.nav-link-tech.is-active::after {
  display: none;
}

.nav-path {
  opacity: 0.9;
}

.header-meta {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee787;
  animation: pulse 2s ease-in-out infinite;
}

/* Tech Hero Styles */
.hero-tech {
  padding-bottom: var(--spacing-lg);
}

.hero-tech .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-boot {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.boot-line {
  opacity: 0.7;
}

.boot-ok {
  color: #7ee787;
  margin-right: 0.5rem;
}

.hero-title-tech {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-prompt {
  color: #79c0ff;
  margin-right: 0.5rem;
}

.hero-highlight {
  color: #7ee787;
}

.lead-tech {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.lead-accent {
  display: block;
  color: var(--text-main);
  margin-top: 0.5rem;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stack-item {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.hero-actions-tech {
  display: flex;
  gap: 1rem;
  margin-top: 0;
}

.btn-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-tech-primary {
  background: #7ee787;
  color: #0d0f12;
  font-weight: 600;
}

.btn-tech-primary:hover {
  background: #9aeea2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 231, 135, 0.3);
}

.btn-tech-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-tech-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

.btn-icon {
  font-size: 1rem;
}

/* Terminal Mini (Hero sidebar) */
.hero-terminal {
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
}

.terminal-mini-header {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-mini-title {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.terminal-mini-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.terminal-mini-line {
  color: #c9d1d9;
  line-height: 1.5;
}

.tm-label {
  color: #7ee787;
  min-width: 70px;
  display: inline-block;
}

.terminal-mini-line a {
  color: #58a6ff;
  text-decoration: none;
}

.terminal-mini-line a:hover {
  color: #7ee787;
}

.terminal-mini-sep {
  color: rgba(255, 255, 255, 0.12);
  margin: 0.5rem 0;
}

.tm-online {
  color: #7ee787;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
  animation: scrollHint 2s ease-in-out infinite;
}

.scroll-arrow {
  font-size: 1rem;
}

@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

@media (max-width: 860px) {
  .hero-tech .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .header-meta {
    display: none;
  }
  
  .hero-boot {
    font-size: 0.65rem;
  }
  
  .hero-title-tech {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .main-nav-tech {
    gap: 0.15rem;
  }
  
  .nav-link-tech {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .hero-actions-tech {
    flex-direction: column;
  }
  
  .btn-tech {
    justify-content: center;
  }
}

.hero {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      rgba(245, 245, 245, 0.08) 0,
      rgba(245, 245, 245, 0.08) 1px,
      transparent 1px,
      transparent 80px
    ),
    radial-gradient(circle at 12% 70%, rgba(245, 245, 245, 0.16), transparent 55%);
  background-size: 81px 100%, 260px 260px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* Молекулярная сетка */
.molecules-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
  opacity: 0.8;
}

.hero-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.12), transparent 55%),
    conic-gradient(
      from 220deg at 20% 40%,
      rgba(255, 255, 255, 0.22),
      transparent 15deg,
      transparent 40deg,
      rgba(255, 255, 255, 0.12),
      transparent 65deg,
      transparent 120deg,
      rgba(255, 255, 255, 0.18),
      transparent 160deg,
      transparent 220deg,
      rgba(255, 255, 255, 0.16),
      transparent 300deg
    );
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: blur(26px);
  transform: translate3d(-40px, -10px, 0);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-text {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10%;
  top: 15%;
  right: -12%;
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 245, 245, 0.1), transparent 60%),
    url("IT-Empire/Логотип/Черный/SVG/Черный.svg") center/contain no-repeat;
  opacity: 0.06;
  filter: blur(1px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--spacing-sm);
}

.lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 40rem;
}

.lead-small {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease-out, box-shadow 0.18s ease-out,
    transform 0.12s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
}

.button.primary {
  background: var(--accent);
  color: #050507;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.button.primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 1);
  text-decoration: none;
}

.button.ghost {
  border-color: var(--border-subtle);
  background: rgba(12, 13, 16, 0.9);
  color: var(--text-muted);
}

.button.ghost:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-note {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-founder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-sm);
  padding: 1.4rem 1.4rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  background: linear-gradient(135deg, rgba(5, 6, 8, 0.96), rgba(10, 11, 16, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(6px);
}

.hero-founder-top {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.hero-founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.hero-founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-founder-text {
  font-size: 0.86rem;
}

.hero-founder-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

.hero-founder-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.hero-founder-role {
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-founder-bottom {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid color-mix(in srgb, var(--border-subtle) 75%, transparent);
}

.hero-founder-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
}

.hero-founder-tags li {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--text-muted) 85%, #ffffff 15%);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 90%, transparent);
  background: rgba(10, 11, 16, 0.9);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-muted {
  background: radial-gradient(circle at 0 0, rgba(245, 245, 245, 0.08), transparent 55%),
    var(--bg-muted);
  border-block: 1px solid rgba(35, 36, 42, 0.9);
}

.section-lab {
  position: relative;
  overflow: hidden;
}

.section-case {
  position: relative;
  overflow: hidden;
}

.section-projects {
  position: relative;
  overflow: hidden;
}

.section-projects::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto auto;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 245, 245, 0.06), transparent 60%),
    url("IT-Empire/Логотип/Черный/SVG/Черный.svg") center/contain no-repeat;
  opacity: 0.04;
  filter: blur(1px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--spacing-lg);
}

.section-header p {
  color: var(--text-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--spacing-lg) * 1.35);
}

.projects-grid {
  align-items: start;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
  grid-auto-rows: minmax(0, 1fr);
}

.project-main {
  grid-row: span 2;
  position: relative;
}

.project-main-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.expert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-subtle);
  align-items: center;
}

.expert-photo {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
}

.expert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expert-info {
  font-size: 0.86rem;
}

.expert-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.expert-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.expert-role {
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.expert-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.expert-meta li::before {
  content: "•";
  margin-right: 0.35rem;
}

.note-card {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

.note-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

.note-title {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.note-text {
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.note-list {
  margin: 0 0 0.4rem 1.1rem;
  padding: 0;
  color: var(--text-muted);
}

.note-list li {
  margin-bottom: 0.2rem;
}

.map-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-lg) * 1.15);
}

.case-gallery {
  margin-bottom: var(--spacing-lg);
}

.case-gallery-slider {
  position: relative;
  margin-top: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(245, 245, 245, 0.04), transparent 55%),
    rgba(5, 6, 8, 0.96);
}

.case-gallery-track {
  display: flex;
  transition: transform 0.4s ease-out;
}

.case-shot {
  margin: 0;
  min-width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.case-shot img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.case-shot figcaption {
  padding: 0.5rem 0.8rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.case-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  background: rgba(5, 6, 8, 0.9);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease-out, border-color 0.15s ease-out,
    transform 0.12s ease-out, box-shadow 0.18s ease-out;
}

.case-gallery-nav:hover {
  border-color: var(--border-strong);
  background: rgba(8, 9, 13, 0.95);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.03);
}

.case-gallery-nav-prev {
  left: 0.7rem;
}

.case-gallery-nav-next {
  right: 0.7rem;
}

.case-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.3rem;
}

.case-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(245, 245, 245, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease-out, background 0.15s ease-out, transform 0.12s ease-out;
}

.case-gallery-dot.is-active {
  opacity: 1;
  background: rgba(245, 245, 245, 0.9);
  transform: scale(1.1);
}

.case-cta {
  margin-top: var(--spacing-lg);
}

.case-cta-card {
  max-width: 720px;
}

.case-cta-list {
  list-style: none;
  margin: var(--spacing-md) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.case-cta-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.case-video {
  margin-top: var(--spacing-lg);
}

.case-video-frame {
  margin-top: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.case-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 960px) {
  .case-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .case-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.card {
  background:
    linear-gradient(135deg, rgba(5, 6, 8, 0.98), rgba(9, 10, 14, 0.98)),
    radial-gradient(circle at 0 0, rgba(245, 245, 245, 0.04), transparent 55%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-soft);
  transform-origin: top left;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.16s ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12) 0, transparent 45%),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.08) 0, transparent 40%),
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.06) 0, transparent 40%);
  mix-blend-mode: soft-light;
  z-index: 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(8, 10, 14, 1), rgba(12, 14, 18, 1)),
    radial-gradient(circle at 0 0, rgba(245, 245, 245, 0.09), transparent 55%);
}

.project-card .card-header h3 {
  font-size: 1.4rem;
}

.project-main .card-header h3 {
  font-size: 1.55rem;
}

.project-card:hover .card-header h3 {
  letter-spacing: 0.02em;
}

.card-header {
  margin-bottom: var(--spacing-sm);
}

.card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0 var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.meta dt {
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.meta dd {
  margin: 0;
}

.case-meta .meta {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  font-size: 0.9rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.case-meta .meta div {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
}

.case-meta .meta div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.text-link {
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
  transform-origin: left;
  transform: scaleX(0.5);
  transition: transform 0.16s ease-out;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  background: rgba(12, 13, 16, 0.85);
}

.placeholder {
  opacity: 0.85;
}

.map-card {
  border-radius: var(--radius-md);
}

.thoughts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.thought h3 {
  margin-bottom: 0.35rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about-contact ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0 0;
}

.about-contact li + li {
  margin-top: 0.25rem;
}

.about-contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.skills {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-subtle);
}

.skills h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: var(--spacing-md);
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.skill-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(24, 25, 32, 0.9);
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background-color: rgba(24, 25, 32, 0.9);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, #f5f5f5, #9c9ea8);
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, #f5f5f5, #9c9ea8);
}

.site-footer {
  position: relative;
  margin-top: var(--spacing-xl);
  padding: 3.2rem 0 3.4rem;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 120, 40, 0.14), transparent 55%),
    radial-gradient(circle at 90% -20%, rgba(255, 60, 120, 0.14), transparent 55%),
    linear-gradient(to bottom, #050509 0, #030306 55%, #010103 100%);
  border-top: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0, rgba(5, 5, 9, 0.9) 80%, #050509 100%);
  pointer-events: none;
  z-index: 0;
}

/* Анимации появления */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

[data-animate="in"] {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-lava {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 180, 80, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(255, 70, 140, 0.33), transparent 60%),
    conic-gradient(
      from 200deg,
      rgba(255, 140, 80, 0.7),
      rgba(255, 40, 80, 0.6),
      rgba(255, 220, 160, 0.2),
      transparent 60%
    );
  mix-blend-mode: screen;
  opacity: 0.18;
  transform: translate3d(0, 18px, 0) scale(1.02);
  filter: blur(40px);
  z-index: 0;
  animation: lavaFlow 22s ease-in-out infinite alternate;
}

.footer-brand {
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.footer-tagline {
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.footer-col h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.25rem;
}

.footer-col a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.footer-details {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  background: linear-gradient(135deg, rgba(5, 6, 8, 0.92), rgba(8, 9, 13, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  padding: 1.8rem 1.7rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: calc(var(--spacing-lg) * 0.9);
}

.footer-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: calc(var(--spacing-lg) * 0.8);
}

/* Terminal Lab Styles */
.terminal {
  background: #0d0f12;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn-red { background: #ff5f57; }
.terminal-btn-yellow { background: #ffbd2e; }
.terminal-btn-green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 1rem 1.25rem;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 0.25rem 0;
}

.terminal-table th {
  text-align: left;
  color: #6a737d;
  font-weight: 400;
  font-size: 0.7rem;
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.terminal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.terminal-row-active td {
  background: rgba(63, 185, 80, 0.05);
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-comment {
  color: #6a737d;
}

.terminal-prompt {
  color: #79c0ff;
  margin-right: 0.5rem;
}

.terminal-cmd {
  color: #7ee787;
  font-weight: 600;
}

.terminal-arg {
  color: #ff7b72;
}

.terminal-string {
  color: #a5d6ff;
}

.terminal-experiment {
  margin: 0.5rem 0;
  padding: 0.75rem 0;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
  transition: border-color 0.2s ease;
}

.terminal-experiment:hover {
  border-left-color: #7ee787;
}

.terminal-output {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.terminal-label {
  color: #8b949e;
  min-width: 70px;
  display: inline-block;
}

.terminal-value {
  color: #c9d1d9;
}

.terminal-desc {
  color: #8b949e;
}

.terminal-separator {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 0.75rem;
}

.terminal-tag {
  color: #d2a8ff;
  margin-right: 0.5rem;
}

.terminal-progress {
  color: #238636;
  letter-spacing: -0.5px;
  font-size: 0.85em;
}

.terminal-percent {
  color: #7ee787;
  margin-left: 0.35rem;
  font-size: 0.85em;
}

.terminal-status {
  margin-left: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-status-active {
  color: #3fb950;
}

.terminal-status-active::before {
  animation: pulse 2s ease-in-out infinite;
}

.terminal-status-research {
  color: #58a6ff;
}

.terminal-status-idea {
  color: #d29922;
}

.terminal-status-mini {
  font-size: 0.6rem;
  margin-right: 0.25rem;
}

.terminal-summary {
  color: #8b949e;
  font-size: 0.8rem;
}

.terminal-input {
  margin-top: 0.5rem;
}

.terminal-cursor {
  color: #7ee787;
  animation: blink 1s step-end infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Deployment Dashboard - Projects */
.deploy-dashboard {
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.deploy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
}

.deploy-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.deploy-icon {
  color: #7ee787;
  animation: pulse 2s ease-in-out infinite;
}

.deploy-stats {
  display: flex;
  gap: 1.25rem;
}

.deploy-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #8b949e;
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.stat-online { background: #7ee787; box-shadow: 0 0 8px rgba(126, 231, 135, 0.5); }
.stat-building { background: #ffbd2e; box-shadow: 0 0 8px rgba(255, 189, 46, 0.5); }
.stat-stopped { background: #8b949e; }

.deploy-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.deploy-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.deploy-card-main {
  padding: 1.5rem;
}

.deploy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.deploy-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.deploy-status-online { color: #7ee787; }
.deploy-status-online .status-indicator { 
  background: #7ee787; 
  box-shadow: 0 0 12px rgba(126, 231, 135, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.deploy-status-building { color: #ffbd2e; }
.deploy-status-building .status-indicator { 
  background: #ffbd2e; 
  animation: pulse 1s ease-in-out infinite;
}

.deploy-status-stopped { color: #8b949e; }
.deploy-status-stopped .status-indicator { background: #8b949e; }

.deploy-id {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #6a737d;
}

.deploy-card-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.deploy-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.deploy-desc {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.deploy-meta-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.deploy-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: #6a737d;
  letter-spacing: 0.1em;
}

.meta-value {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.deploy-metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #7ee787;
}

.metric-label {
  font-size: 0.7rem;
  color: #6a737d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deploy-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.deploy-link {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #79c0ff;
}

.deploy-tags {
  display: flex;
  gap: 0.4rem;
}

.deploy-tag {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.deploy-card-secondary {
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.deploy-card-secondary:last-child {
  border-right: none;
}

.deploy-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.deploy-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(126, 231, 135, 0.3);
}

.deploy-card-secondary .deploy-desc {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.deploy-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffbd2e;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.progress-fill-gray {
  background: #6a737d;
}

.progress-text {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: #6a737d;
  white-space: nowrap;
}

.deploy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
}

.deploy-cmd {
  color: #6a737d;
}

.deploy-all-link {
  color: #79c0ff;
  text-decoration: none;
}

.deploy-all-link:hover {
  color: #7ee787;
}

@media (max-width: 768px) {
  .deploy-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .deploy-meta-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .deploy-metrics {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  
  .deploy-card-secondary {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .deploy-card-secondary:last-child {
    border-bottom: none;
  }
}

/* Neofetch About Block */
.neofetch {
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow: hidden;
}

.neofetch-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.neofetch-ascii {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ascii-logo {
  color: #7ee787;
  font-size: 0.55rem;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 0 20px rgba(126, 231, 135, 0.3);
}

.ascii-colors {
  display: flex;
  gap: 4px;
}

.ascii-colors span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.neofetch-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.neofetch-line {
  color: #c9d1d9;
}

.neofetch-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.nf-user { color: #7ee787; }
.nf-at { color: #8b949e; }
.nf-host { color: #58a6ff; }

.neofetch-separator {
  color: rgba(255, 255, 255, 0.15);
  margin: 0.5rem 0;
}

.nf-label {
  color: #7ee787;
  min-width: 90px;
  display: inline-block;
}

.neofetch-line a {
  color: #58a6ff;
  text-decoration: none;
}

.neofetch-line a:hover {
  color: #7ee787;
}

.neofetch-skills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.nf-skill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nf-skill-label {
  color: #8b949e;
  min-width: 100px;
  font-size: 0.8rem;
}

.nf-skill-bar {
  flex: 1;
  max-width: 180px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.nf-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.neofetch-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.neofetch-link {
  color: #79c0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.neofetch-link:hover {
  color: #a5d6ff;
}

.neofetch-meta {
  color: #6a737d;
  font-size: 0.75rem;
}

@media (max-width: 860px) {
  .neofetch-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .neofetch-ascii {
    align-items: flex-start;
  }
  
  .ascii-logo {
    font-size: 0.45rem;
  }
}

@media (max-width: 600px) {
  .neofetch {
    padding: 1.25rem;
  }
  
  .ascii-logo {
    font-size: 0.35rem;
  }
  
  .neofetch-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .nf-skill-bar {
    max-width: 120px;
  }
}

/* Empire Map - Navigation Schema */
.empire-map {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.95), rgba(5, 6, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
}

.empire-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.empire-map-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.6;
  pointer-events: none;
}

.map-pulse {
  animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {
  0%, 100% { opacity: 1; r: 4; }
  50% { opacity: 0.4; r: 8; }
}

.empire-map-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  z-index: 1;
}

.empire-node {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
}

.empire-node:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.node-coord {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.node-dot-green { background: #7ee787; box-shadow: 0 0 12px rgba(126, 231, 135, 0.5); }
.node-dot-blue { background: #58a6ff; box-shadow: 0 0 12px rgba(88, 166, 255, 0.5); }
.node-dot-purple { background: #d2a8ff; box-shadow: 0 0 12px rgba(210, 168, 255, 0.5); }
.node-dot-red { background: #ff7b72; box-shadow: 0 0 12px rgba(255, 123, 114, 0.5); }

.node-id {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.empire-node h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.empire-node p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
  margin: 0;
}

.node-status {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: #7ee787;
  margin-top: auto;
  padding-top: 0.5rem;
}

.node-status-lab { color: #58a6ff; }
.node-status-thoughts { color: #d2a8ff; }
.node-status-about { color: #ff7b72; }

.empire-map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot-green { background: #7ee787; }
.legend-dot-blue { background: #58a6ff; }
.legend-dot-purple { background: #d2a8ff; }
.legend-dot-red { background: #ff7b72; }

.map-coords {
  margin-left: auto;
  opacity: 0.5;
}

@media (max-width: 960px) {
  .empire-map-nodes {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .empire-map-lines {
    display: none;
  }
}

@media (max-width: 720px) {
  .empire-map-nodes {
    grid-template-columns: 1fr;
  }
  
  .empire-map {
    padding: 1.25rem;
  }
  
  .empire-map-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .map-coords {
    margin-left: 0;
  }
}

/* Map cards with numbers (legacy) */
.map-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.map-card-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--border-subtle);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
}

/* Project cards with numbers */
.project-card {
  position: relative;
}

.project-card > .thought-number {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-md);
  font-size: 3rem;
  opacity: 0.12;
}

.project-main > .thought-number {
  font-size: 4rem;
}

/* Lab cards with numbers */
.lab-card {
  position: relative;
}

.lab-card > .thought-number {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-md);
  font-size: 2.5rem;
  opacity: 0.15;
}

.lab-card h3 {
  padding-right: 3rem;
}

/* Contact links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: var(--spacing-md);
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.contact-link:hover {
  border-color: var(--text-soft);
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1rem;
  color: var(--text-main);
}

/* About section cards */
.about-text.card,
.about-contact.card {
  padding: var(--spacing-md);
}

.about-text.card p {
  margin-bottom: 1rem;
}

.about-contact h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.about-contact h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* Thoughts grid on home */
.thoughts-grid-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thoughts-grid-home .thought-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thoughts-grid-home .thought-card-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.thoughts-grid-home .thought-card-cta .thought-number {
  position: static;
  font-size: 2.5rem;
  opacity: 0.4;
}

/* Thoughts page styles */
.thoughts-section {
  position: relative;
  overflow: hidden;
}

.thoughts-section .particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.thoughts-section .container {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.section-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 600px;
  line-height: 1.6;
}

/* Featured thought */
.thought-featured {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding: 0;
  overflow: hidden;
}

.thought-featured-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.thought-number {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--border-subtle);
  opacity: 0.4;
  letter-spacing: -0.05em;
}

.thought-featured-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thought-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-main) 8%, transparent);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.thought-featured h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.thought-excerpt {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.thought-teaser {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1rem;
  border-left: 2px solid var(--border-subtle);
  font-style: italic;
}

.thought-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}

.thought-status {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.thought-reading {
  opacity: 0.7;
}

/* Thoughts grid */
.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.thought-card {
  position: relative;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.thought-card .thought-number {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-md);
  font-size: 2.5rem;
  opacity: 0.15;
}

.thought-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  padding-right: 3rem;
}

.thought-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex-grow: 1;
}

.thought-card .thought-meta {
  font-size: 0.75rem;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

.thought-card-cta {
  background: linear-gradient(135deg, rgba(245, 245, 245, 0.03), rgba(245, 245, 245, 0.01));
  border-style: dashed;
  justify-content: center;
  text-align: center;
}

.thought-card-cta .thought-number {
  position: static;
  font-size: 2rem;
  opacity: 0.3;
}

.thought-card-cta h3 {
  padding-right: 0;
}

.thought-card-cta .btn {
  margin-top: 0.5rem;
}

/* Project Detail Page Styles */
.project-hero {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.project-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.project-breadcrumb {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.project-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.project-breadcrumb a:hover {
  color: #58a6ff;
}

.project-breadcrumb .current {
  color: #7ee787;
}

.project-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.project-status-online {
  color: #7ee787;
}

.project-status-online .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 12px rgba(126, 231, 135, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.project-id {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #6a737d;
}

.project-title {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.project-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* Project Specs */
.project-specs {
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
}

.specs-header {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-title {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.specs-body {
  padding: 1rem;
}

.spec-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-line {
  color: #c9d1d9;
}

.spec-key {
  color: #7ee787;
}

.spec-value {
  color: #c9d1d9;
}

.spec-highlight {
  color: #58a6ff;
  font-weight: 600;
}

.spec-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.75rem 0;
}

/* Project Metrics */
.project-metrics {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.metric-icon {
  font-size: 1.5rem;
}

.metric-data {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-card .metric-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: #7ee787;
}

.metric-card .metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Project README */
.project-readme {
  padding: var(--spacing-xl) 0;
}

.readme-wrapper {
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.readme-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.readme-icon {
  font-size: 1rem;
}

.readme-filename {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.readme-content {
  padding: 2rem;
}

.readme-section {
  margin-bottom: 2.5rem;
}

.readme-section:last-child {
  margin-bottom: 0;
}

.readme-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.readme-anchor {
  color: #58a6ff;
  margin-right: 0.5rem;
}

.readme-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--text-main);
}

.readme-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.readme-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-left: 3px solid #58a6ff;
  background: rgba(88, 166, 255, 0.05);
  margin: 1rem 0;
}

.readme-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-soft);
}

.check {
  color: #7ee787;
  font-weight: 600;
}

/* Architecture Diagram */
.architecture-diagram {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.arch-ascii {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #8b949e;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
}

/* Solution Block */
.solution-block {
  margin: 1rem 0 1.5rem;
}

.solution-terminal {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
}

.term-line {
  color: #c9d1d9;
  line-height: 1.7;
}

.term-prompt {
  color: #7ee787;
}

.term-success {
  color: #7ee787;
}

.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.solution-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #58a6ff;
}

/* Solution Features */
.solution-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.feature-icon {
  font-size: 1.25rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-text strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

.feature-text span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Tech Features */
.tech-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tech-badge {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  color: #d2a8ff;
  background: rgba(210, 168, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.tech-item span {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.result-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(126, 231, 135, 0.05);
  border: 1px solid rgba(126, 231, 135, 0.15);
  border-radius: 8px;
}

.result-icon {
  color: #7ee787;
  font-size: 1rem;
  font-weight: 600;
}

.result-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Project CTA */
.project-cta {
  padding: var(--spacing-xl) 0;
}

.cta-terminal {
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.cta-terminal-header {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-terminal-body {
  padding: 1.5rem;
}

.cta-line {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #c9d1d9;
}

.cta-comment {
  color: #6a737d;
}

.cta-prompt {
  color: #79c0ff;
}

.cta-cmd {
  color: #7ee787;
}

.cta-arg {
  color: #ff7b72;
}

.cta-string {
  color: #a5d6ff;
}

.cta-output {
  color: #7ee787;
}

.cta-separator {
  color: rgba(255, 255, 255, 0.15);
  margin: 0.5rem 0;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.5rem;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.cta-contact-label {
  font-size: 0.7rem;
  color: #6a737d;
}

.cta-contact-value {
  font-size: 0.9rem;
  color: #58a6ff;
}

.cta-contact:hover .cta-contact-value {
  color: #9ef09e;
}

@media (max-width: 860px) {
  .project-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .solution-features,
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .readme-content {
    padding: 1.25rem;
  }
  
  .arch-ascii {
    font-size: 0.6rem;
  }
  
  .cta-contacts {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tech Footer Styles */
.site-footer-tech {
  padding-top: 0;
}

.footer-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  position: relative;
  z-index: 1;
}

.status-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7ee787;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-indicator-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 10px rgba(126, 231, 135, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.status-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uptime-badge, .version-badge {
  color: #8b949e;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.footer-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-tech-block {
  background: rgba(13, 15, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.block-icon {
  font-size: 0.9rem;
}

.block-title {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.endpoints-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.endpoint:hover {
  background: rgba(255, 255, 255, 0.05);
}

.endpoint-protocol {
  color: #6a737d;
}

.endpoint-address {
  color: #58a6ff;
  flex: 1;
}

.endpoint-status {
  color: #7ee787;
  font-size: 0.5rem;
}

.config-data {
  padding: 0.75rem 0.9rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
}

.config-line {
  line-height: 1.7;
  color: #c9d1d9;
}

.config-key {
  color: #7ee787;
}

.config-value {
  color: #a5d6ff;
}

.sitemap-links {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sitemap-link {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sitemap-link:hover {
  color: #58a6ff;
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  position: relative;
  z-index: 1;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-tech {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

.footer-copy-tech {
  color: var(--text-muted);
}

.footer-bottom-center {
  color: var(--text-soft);
}

.footer-tagline-tech {
  opacity: 0.7;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #6a737d;
}

.footer-timestamp {
  font-size: 0.65rem;
}

.footer-disclaimer {
  font-size: 0.65rem;
  opacity: 0.6;
}

@media (max-width: 960px) {
  .footer-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .footer-status-bar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .footer-tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .footer-bottom-left,
  .footer-bottom-right {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@keyframes lavaFlow {
  0% {
    transform: translate3d(0, 24px, 0) scale(1.02);
    opacity: 0.16;
  }
  50% {
    transform: translate3d(-12px, 10px, 0) scale(1.05);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(8px, 26px, 0) scale(1.03);
    opacity: 0.18;
  }
}

@media (max-width: 960px) {
  .grid,
  .map-grid,
  .lab-grid,
  .thoughts-list,
  .thoughts-grid,
  .thoughts-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thought-featured-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .thought-number {
    font-size: 3rem;
  }

  .project-card > .thought-number,
  .lab-card > .thought-number {
    font-size: 2rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding-inline: 0;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: var(--spacing-md);
  }

  .header-inner {
    padding: 0.7rem 0.3rem;
  }

  .main-nav {
    gap: 0.9rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: var(--spacing-xl);
  }

  .grid,
  .map-grid,
  .lab-grid,
  .thoughts-list,
  .thoughts-grid,
  .thoughts-grid-home {
    grid-template-columns: 1fr;
  }

  .thought-card .thought-number,
  .project-card > .thought-number,
  .lab-card > .thought-number {
    font-size: 1.8rem;
  }

  .map-card-number {
    font-size: 1.5rem;
  }

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

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 15, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #8b949e;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.back-to-top:hover {
  background: rgba(126, 231, 135, 0.15);
  border-color: rgba(126, 231, 135, 0.3);
  color: #7ee787;
  transform: translateY(-2px);
}

.back-to-top-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent.cookie-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(13, 15, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.cookie-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cookie-title {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #7ee787;
  letter-spacing: 0.05em;
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: #7ee787;
  color: #0a0a0c;
  border-color: #7ee787;
}

.cookie-btn-accept:hover {
  background: #9ef09e;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-muted);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .cookie-icon {
    display: none;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Thought Article Detail ===== */
.thought-detail {
  padding: var(--spacing-xxl) 0;
  min-height: 100vh;
}

.thought-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thought-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.thought-status-ready {
  color: #7ee787 !important;
}

/* README Document Style */
.readme-document {
  max-width: 800px;
  margin: 0 auto;
}

.readme-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.readme-back {
  display: inline-block;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
  margin-bottom: var(--spacing-md);
  transition: color 0.2s ease;
}

.readme-back:hover {
  color: #7ee787;
}

.readme-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.badge {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-tag {
  color: #58a6ff;
}

.badge-reading {
  color: var(--text-soft);
}

.readme-title {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.readme-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* README Body */
.readme-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.readme-section {
  margin-bottom: var(--spacing-xl);
}

.readme-section h2 {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.3rem;
  color: #7ee787;
  margin: 0 0 var(--spacing-md) 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(126, 231, 135, 0.3);
}

.readme-section h3 {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  color: var(--text-main);
  margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.readme-section p {
  margin: 0 0 var(--spacing-md) 0;
}

/* Terminal Block in Articles */
.readme-section .terminal-block {
  margin: var(--spacing-md) 0;
  background: #0d0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.readme-section .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.readme-section .terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3b44;
}

.readme-section .terminal-dot:nth-child(1) { background: #ff5f56; }
.readme-section .terminal-dot:nth-child(2) { background: #ffbd2e; }
.readme-section .terminal-dot:nth-child(3) { background: #27c93f; }

.readme-section .terminal-title {
  margin-left: auto;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #6a737d;
}

.readme-section .terminal-body {
  padding: 1rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
}

.readme-section .terminal-line {
  margin-bottom: 0.25rem;
}

.readme-section .terminal-output {
  color: #c9d1d9;
  padding-left: 1rem;
}

.t-prompt { color: #7ee787; }
.t-cmd { color: #79c0ff; }
.t-comment { color: #6a737d; }
.t-keyword { color: #ff7b72; }
.t-string { color: #a5d6ff; }
.t-success { color: #7ee787; }
.t-error { color: #ff7b72; }
.t-warning { color: #ffbd2e; }

/* Quote Block */
.quote-block {
  position: relative;
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(88, 166, 255, 0.05);
  border-left: 3px solid #58a6ff;
  border-radius: 0 8px 8px 0;
}

.quote-icon {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 2rem;
  color: rgba(88, 166, 255, 0.3);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-block p {
  margin: 0;
  font-style: italic;
  color: var(--text-main);
  padding-left: 1.5rem;
}

.quote-source {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: normal;
  padding-left: 1.5rem;
}

/* Checklist Block */
.checklist-block {
  margin: var(--spacing-md) 0;
}

.checklist-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-icon {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  color: #58a6ff;
  flex-shrink: 0;
  width: 1.5rem;
}

.checklist-item-yes .checklist-icon { color: #7ee787; }
.checklist-item-no .checklist-icon { color: #ff7b72; }

.checklist-text {
  flex: 1;
  line-height: 1.5;
}

/* Warning Block */
.warning-block {
  display: flex;
  gap: 1rem;
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: rgba(255, 123, 114, 0.08);
  border: 1px solid rgba(255, 123, 114, 0.2);
  border-radius: 8px;
}

.warning-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.warning-content {
  flex: 1;
}

.warning-content strong {
  color: #ff7b72;
}

.warning-content ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.warning-content li {
  margin-bottom: 0.25rem;
}

/* Insight Block */
.insight-block {
  display: flex;
  gap: 1rem;
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: rgba(126, 231, 135, 0.08);
  border: 1px solid rgba(126, 231, 135, 0.2);
  border-radius: 8px;
}

.insight-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.insight-block p {
  margin: 0;
}

/* Comparison Block */
.comparison-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: var(--spacing-md) 0;
}

.comparison-item {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.comparison-bad {
  border-color: rgba(255, 123, 114, 0.3);
}

.comparison-good {
  border-color: rgba(126, 231, 135, 0.3);
}

.comparison-header {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.comparison-item ul {
  margin: 0;
  padding-left: 1.25rem;
}

.comparison-item li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.comparison-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Metrics Grid in Articles */
.metrics-grid {
  display: grid;
  gap: 1rem;
  margin: var(--spacing-md) 0;
}

.metrics-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metrics-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
}

.metric-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #58a6ff;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.metric-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}

/* Color Palette */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--spacing-md) 0;
}

.color-swatch {
  width: 100px;
  padding: 2rem 0.5rem 0.5rem;
  border-radius: 6px;
  text-align: center;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-name {
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.color-hex {
  display: block;
  opacity: 0.6;
}

/* CTA Section in Articles */
.readme-section-cta {
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-lg);
  background: rgba(126, 231, 135, 0.05);
  border: 1px solid rgba(126, 231, 135, 0.15);
  border-radius: 12px;
}

.readme-section-cta h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.cta-contact {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-contact:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(126, 231, 135, 0.3);
}

.cta-contact-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.cta-contact-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.95rem;
  color: #7ee787;
}

/* ===== Projects Page ===== */
.projects-page {
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
  min-height: 100vh;
  position: relative;
}

.projects-terminal-header {
  margin-bottom: var(--spacing-lg);
  background: rgba(13, 15, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-header-bar .terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-header-bar .terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-header-bar .terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-header-bar .terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-path {
  margin-left: auto;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #6a737d;
}

.terminal-command {
  padding: 1rem 1.25rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9rem;
}

.projects-header {
  text-align: left;
  margin-bottom: var(--spacing-xl);
}

.projects-header h1 {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: var(--spacing-md) 0;
}

.projects-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: var(--spacing-sm);
}

.projects-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.projects-stat-total {
  margin-left: auto;
  color: #6a737d;
}

/* Registry Cards */
.projects-registry {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
}

.registry-card {
  display: block;
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.registry-card:hover {
  background: rgba(13, 15, 18, 0.9);
  border-color: rgba(126, 231, 135, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.registry-card-featured {
  border-color: rgba(126, 231, 135, 0.2);
  background: linear-gradient(135deg, rgba(126, 231, 135, 0.03) 0%, rgba(13, 15, 18, 0.6) 100%);
}

.registry-card-pending {
  opacity: 0.7;
  cursor: default;
}

.registry-card-pending:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.registry-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.status-online {
  background: rgba(126, 231, 135, 0.15);
  color: #7ee787;
}

.status-building {
  background: rgba(255, 189, 46, 0.15);
  color: #ffbd2e;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.status-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.registry-id {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #6a737d;
}

.registry-card-body h2 {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.75rem 0;
}

.registry-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.registry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.registry-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.registry-meta .meta-label {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: #6a737d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.registry-meta .meta-value {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.registry-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.registry-link {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  color: #58a6ff;
  transition: color 0.2s ease;
}

.registry-card:hover .registry-link {
  color: #7ee787;
}

.registry-link-disabled {
  color: #6a737d;
}

/* Projects CTA */
.projects-cta {
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.cta-terminal {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.cta-terminal .terminal-line {
  margin-bottom: 0.5rem;
}

.cta-terminal .terminal-output {
  color: var(--text-main);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 600px) {
  .projects-stats-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .projects-stat-total {
    margin-left: 0;
    width: 100%;
  }
  
  .registry-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .cta-actions .btn-tech {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Bitrix Page ===== */
.bitrix-page {
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
  min-height: 100vh;
  position: relative;
}

.bitrix-terminal-header {
  margin-bottom: var(--spacing-lg);
  background: rgba(13, 15, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.bitrix-terminal-header .terminal-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bitrix-terminal-header .terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bitrix-terminal-header .terminal-dot:nth-child(1) { background: #ff5f56; }
.bitrix-terminal-header .terminal-dot:nth-child(2) { background: #ffbd2e; }
.bitrix-terminal-header .terminal-dot:nth-child(3) { background: #27c93f; }

.bitrix-terminal-header .terminal-path {
  margin-left: auto;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #6a737d;
}

.bitrix-terminal-header .terminal-command {
  padding: 1rem 1.25rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9rem;
}

.bitrix-header {
  text-align: left;
  margin-bottom: var(--spacing-xl);
}

.bitrix-header h1 {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: var(--spacing-md) 0;
}

.bitrix-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: var(--spacing-sm);
}

.bitrix-stat-total {
  margin-left: auto;
  color: #6a737d;
}

.bitrix-modules {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
}

.module-card {
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s ease;
}

.module-card:hover {
  background: rgba(13, 15, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.module-card-featured {
  border-color: rgba(126, 231, 135, 0.2);
  background: linear-gradient(135deg, rgba(126, 231, 135, 0.03) 0%, rgba(13, 15, 18, 0.6) 100%);
}

.module-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.module-version {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #6a737d;
}

.module-card-body h2 {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.75rem 0;
}

.module-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.module-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.module-meta .meta-label {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.65rem;
  color: #6a737d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.module-meta .meta-value {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.module-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.module-link {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.module-link:hover {
  color: #7ee787;
}

.module-link-disabled {
  color: #6a737d;
  cursor: default;
}

.bitrix-cta {
  background: rgba(13, 15, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

@media (max-width: 600px) {
  .bitrix-stats-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .bitrix-stat-total {
    margin-left: 0;
    width: 100%;
  }
  
  .bitrix-cta .cta-actions {
    flex-direction: column;
  }
  
  .bitrix-cta .cta-actions .btn-tech {
    width: 100%;
    justify-content: center;
  }
}

