@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --bg: #020205;
  --surface: #0a0a12;
  --text: #b0c0c0;
  --accent: #c13a3a;
  --accent-dim: #6b1d1d;
  --glitch-1: #ff003c;
  --glitch-2: #00c8ff;
  --border: #1a1a2e;
  --crt-flicker: rgba(255, 255, 255, 0.02);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 8px; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  3% { opacity: 0.85; }
  6% { opacity: 1; }
  52% { opacity: 0.92; }
  55% { opacity: 1; }
  92% { opacity: 0.88; }
  95% { opacity: 1; }
}

@keyframes glitch-text {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(-3px, 1px); }
  92% { transform: translate(3px, -1px); }
  93% { transform: translate(-2px, -1px); }
  94% { transform: translate(2px, 1px); }
  95% { transform: translate(0); }
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 4px var(--accent), 0 0 8px var(--accent-dim); }
  50% { text-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes distort {
  0% { clip-path: inset(0 0 0 0); }
  2% { clip-path: inset(20% 0 50% 0); }
  4% { clip-path: inset(0 0 0 0); }
  60% { clip-path: inset(60% 0 10% 0); }
  62% { clip-path: inset(0 0 0 0); }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  min-height: 100vh;
  line-height: 1.7;
  position: relative;
  animation: flicker 8s infinite;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 999;
  animation: scanlines 0.1s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 998;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  animation: pulse 3s infinite, glitch-text 5s infinite;
  position: relative;
  display: inline-block;
}

.logo::before,
.logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo::before {
  color: var(--glitch-1);
  animation: distort 4s infinite;
  z-index: -1;
}

.logo::after {
  color: var(--glitch-2);
  animation: distort 3s infinite reverse;
  z-index: -2;
}

.subtitle {
  color: #556;
  font-size: 0.85em;
  letter-spacing: 3px;
  margin-top: 8px;
  animation: blink 4s infinite;
}

.status {
  color: var(--accent);
  font-size: 0.8em;
  letter-spacing: 2px;
}

.status::before {
  content: '? ';
  animation: blink 1s infinite;
}

nav {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
}

nav a {
  color: #778;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-size: 0.9em;
  letter-spacing: 2px;
  transition: all 0.3s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
  box-shadow: 0 0 12px rgba(193, 58, 58, 0.2);
}

nav a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(193, 58, 58, 0.1);
}

.content h2 {
  color: var(--accent);
  font-size: 1.6em;
  letter-spacing: 3px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
}

.content h3 {
  color: #9aa;
  font-size: 1.1em;
  letter-spacing: 2px;
  margin: 25px 0 12px;
}

.content p {
  margin-bottom: 15px;
  color: #889;
  text-align: justify;
}

.content .redacted {
  background: #1a1a1a;
  color: #1a1a1a;
  padding: 2px 8px;
  user-select: none;
  cursor: pointer;
  transition: color 0.3s;
}

.content .redacted:hover {
  color: var(--accent);
  background: #1a1a1a;
}

.warning-box {
  border: 1px solid var(--accent);
  padding: 15px 20px;
  margin: 20px 0;
  background: rgba(193, 58, 58, 0.05);
  color: var(--accent);
  animation: pulse 3s infinite;
  text-align: center;
  letter-spacing: 2px;
}

.log-entry {
  border-left: 2px solid var(--border);
  padding: 8px 15px;
  margin: 10px 0;
  color: #667;
}

.log-entry .date {
  color: var(--accent-dim);
  font-size: 0.8em;
  letter-spacing: 2px;
}

.log-entry.error {
  border-left-color: var(--accent);
  color: #c88;
}

.grid-crew {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.crew-card {
  border: 1px solid var(--border);
  padding: 18px;
  text-align: center;
  transition: all 0.3s;
}

.crew-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(193, 58, 58, 0.2);
}

.crew-card .name {
  color: var(--accent);
  font-size: 1.1em;
  letter-spacing: 2px;
}

.crew-card .role {
  color: #556;
  font-size: 0.8em;
  margin-top: 5px;
}

.crew-card .status-deceased {
  color: var(--accent);
  font-size: 0.75em;
  margin-top: 8px;
  animation: blink 2s infinite;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th {
  text-align: left;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 10px;
  letter-spacing: 2px;
  font-size: 0.85em;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: #889;
  font-size: 0.9em;
}

.glitch-img {
  max-width: 100%;
  border: 3px solid var(--border);
  filter: saturate(0.3) contrast(1.2);
  animation: distort 8s infinite;
}

footer {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: #334;
  font-size: 0.75em;
  letter-spacing: 2px;
}

.terminal-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: inherit;
  font-size: 1em;
  padding: 8px;
  width: 100%;
  outline: none;
  letter-spacing: 2px;
  caret-color: var(--accent);
  animation: blink 1.5s infinite;
}

.terminal-input::placeholder {
  color: #334;
}

.signal-lost {
  text-align: center;
  font-size: 2em;
  color: var(--accent);
  animation: blink 0.8s infinite;
  margin: 40px 0;
  letter-spacing: 4px;
}

/* Скрытая отсылка к VPN */
.hidden-uplink {
  position: fixed;
  bottom: 10px;
  right: 15px;
  color: #111;
  font-size: 0.7em;
  z-index: 1000;
  transition: color 0.3s;
  cursor: default;
  letter-spacing: 1px;
}

.hidden-uplink:hover {
  color: #334;
}

@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 0.95; }
  42% { opacity: 0.2; }
  43% { opacity: 1; }
  69% { opacity: 0.88; }
  70% { opacity: 0.1; }
  71% { opacity: 1; }
}

.log-entry.error {
  animation: text-flicker 6s infinite;
}

.hidden-message {
  color: var(--bg);
  background: var(--bg);
  transition: color 0.5s;
  user-select: none;
}
.hidden-message:hover {
  color: var(--accent);
  background: transparent;
}