* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

body {
  min-height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Courier New', monospace;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* ========== ЗАГРУЗЧИК ========== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
  cursor: pointer;
}

.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.neon-logo {
  font-size: 5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 8px;
  color: #ffffff;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
  animation: neonPulse 1.5s ease-in-out infinite alternate;
  margin-bottom: 40px;
}

@keyframes neonPulse {
  from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff; }
  to { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff; }
}

.progress-container {
  width: 300px;
  background: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #333;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 4px;
  background: #ffffff;
  transition: width 0.1s linear;
  box-shadow: 0 0 5px #fff;
}

.loading-text {
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.click-text {
  font-size: 1rem;
  letter-spacing: 6px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  border-right: 2px solid #ffffff;
  padding-right: 10px;
  animation: blink 1.2s step-end infinite;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 20px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== КУРСОР ========== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  will-change: left, top;
}

.cursor-img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.cursor-hover .cursor-img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
  transition: transform 0.1s ease;
}

/* ========== БИНАРНЫЙ ДОЖДЬ ========== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000000;
  overflow: hidden;
}

.binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.binary-bit {
  position: absolute;
  top: -20px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
  opacity: 0;
  will-change: top;
  animation: fallBit linear infinite;
}

@keyframes fallBit {
  0% { top: -20px; opacity: 0.7; }
  10% { opacity: 1; }
  90% { opacity: 0.4; }
  100% { top: 110%; opacity: 0; }
}

/* ========== ТЕРМИНАЛ ========== */
.terminal {
  max-width: 1300px;
  width: 100%;
  background: #0a0a0a;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease;
}

.terminal.visible {
  opacity: 1;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  flex-wrap: wrap;
  gap: 12px;
}

.win-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
}

.win-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.digital-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #ffffff;
  background: #0a0a0a;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  font-weight: 400;
}

.header-stats {
  display: flex;
  gap: 24px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #888;
  background: #0a0a0a;
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 28px 32px 20px 32px;
}

.left-panel {
  border-right: 1px dashed rgba(255, 255, 255, 0.1);
  padding-right: 32px;
}

.right-panel {
  padding-left: 32px;
}

/* Блоки языков */
.lang-block h3, .warn-block h3 {
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 600;
  border-left: 3px solid #ffffff;
  padding-left: 12px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.lang-item {
  margin-bottom: 28px;
  background: #0a0a0a;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-item:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.lang-title {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.lang-title span {
  color: #666;
  font-weight: 400;
  font-size: 0.75rem;
}

.lang-desc {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.6;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

/* Системные сообщения */
.sys-message {
  background: #0a0a0a;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
  transition: all 0.2s ease;
  font-weight: 400;
}

.sys-message:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.sys-message.warning { border-left: 4px solid #ffffff; }
.sys-message.warning::before { content: "⚠ "; color: #ffffff; }
.sys-message.info { border-left: 4px solid #ffffff; }
.sys-message.info::before { content: "ℹ "; color: #ffffff; }
.sys-message.ok { border-left: 4px solid #ffffff; }
.sys-message.ok::before { content: "✓ "; color: #ffffff; }

/* Приветствие */
.welcome-banner {
  background: #050505;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #ffffff;
  line-height: 1.6;
}

/* Социальные ссылки */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.social-item {
  background: #0a0a0a;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.social-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.social-item:hover::before {
  width: 200px;
  height: 200px;
}

.social-item:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Командная строка */
.command-line {
  background: #050505;
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 24px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt {
  color: #ffffff;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.command-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  width: auto;
  flex: 1;
  outline: none;
  padding: 0;
  margin: 0;
}

.command-input::placeholder {
  color: #333;
  font-weight: 300;
}

.input-line {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.cursor-block {
  width: 10px;
  height: 20px;
  background-color: #ffffff;
  animation: blockBlink 1s step-end infinite;
  flex-shrink: 0;
}

@keyframes blockBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.footer-line {
  padding: 10px 28px 16px 28px;
  font-size: 0.65rem;
  color: #444;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
}

/* Адаптив */
@media (max-width: 780px) {
  .terminal-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .left-panel {
    border-right: none;
    padding-right: 0;
  }
  .right-panel {
    padding-left: 0;
  }
  .terminal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-cursor {
    display: none;
  }
  * { cursor: auto; }
  .neon-logo { font-size: 2.5rem; letter-spacing: 4px; }
  .progress-container { width: 250px; }
  .command-line {
    flex-wrap: wrap;
  }
}