/* CRIMSONTEK INDUSTRIES — ДНК: глубина + неоновый красный */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Rajdhani:wght@400;600&display=swap');

:root {
  --ct-bg: #050505;
  --ct-bg2: #0b0b0b;
  --ct-bg3: #111111;
  --ct-red: #ff0033;
  --ct-red-dark: #cc0029;
  --ct-red-blood: #8b0000;
  --ct-flash: #ff1a4d;
  --ct-neon-soft: #ff4d6d;
  --ct-organic: #330000;
  --ct-organic2: #1a0000;
  --ct-text: #e6e6e6;
  --ct-text2: #aaaaaa;
  --ct-muted: #666666;
  --ct-glow: 0 0 12px rgba(255, 0, 51, 0.55);
  --ct-glow-lg: 0 0 24px rgba(255, 0, 51, 0.35);
}

html {
  background: var(--ct-bg);
  font-size: 18px;
}

body {
  background: radial-gradient(circle, var(--ct-organic2) 0%, var(--ct-bg) 70%);
  color: var(--ct-text);
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  position: relative;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
.ct-heading {
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

code,
.ct-mono {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.92em;
}

/* Сетка «система» */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99997;
  background-image:
    linear-gradient(rgba(255, 0, 51, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 51, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
}

/* Сканлайны */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 0, 51, 0.035) 2px,
    rgba(255, 0, 51, 0.035) 4px
  );
  animation: ct-flicker 3.5s ease-in-out infinite;
}

@keyframes ct-flicker {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

/* Импульсная линия */
html::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  z-index: 99999;
  background: linear-gradient(90deg, transparent, var(--ct-red), transparent);
  box-shadow: var(--ct-glow);
  animation: ct-scanline 8s linear infinite;
}

@keyframes ct-scanline {
  0% {
    top: -4px;
    opacity: 0.35;
  }
  100% {
    top: 100%;
    opacity: 0.2;
  }
}

/* Утилиты карточек */
.ct-panel {
  background: var(--ct-bg2);
  border: 1px solid rgba(255, 0, 51, 0.35);
  box-shadow: var(--ct-glow-lg);
}

.ct-btn-primary {
  background: var(--ct-red);
  color: #050505;
  border: none;
  font-weight: 700;
  box-shadow: var(--ct-glow);
}

.ct-btn-primary:hover {
  background: var(--ct-flash);
}
