/* ═══════════════════════════════════════════════════════════
   VERUM — базовые стили
   ═══════════════════════════════════════════════════════════ */

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

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

/* ─── Утилиты ─── */
.text-dim   { color: var(--text-dim); }
.text-mid   { color: var(--text-mid); }
.text-right { text-align: right; }
.text-center{ text-align: center; }
.mono       { font-family: var(--mono); }



/* ─── Скроллбар ─── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-active);
}

/* ─── Скелетон (загрузка) ─── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Анимации ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Плавность карточек и секций ─── */
.card, details.disclosure, .stat-grid .stat {
  transition: border-color 200ms cubic-bezier(0.4,0,0.2,1),
              transform 200ms cubic-bezier(0.4,0,0.2,1),
              background 200ms cubic-bezier(0.4,0,0.2,1);
}
.stat-grid .stat:hover { border-color: var(--border-strong); }

/* ─── Кнопки: мягче тень и нажатие ─── */
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}


/* Декоративные слои не перекрывают рабочие элементы. */
.app {position:relative;z-index:1}
#stars-canvas {position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.55}
.glow {position:fixed;z-index:0;pointer-events:none;border-radius:50%;filter:blur(90px);opacity:.3}
.glow.g1 {width:400px;height:400px;left:-160px;top:0;background:var(--green-dim)}
.glow.g2 {width:330px;height:330px;right:-150px;bottom:0;background:var(--amber-dim)}
.glow.g3 {display:none}
