/* IntelGen V2 — design tokens (flame orange primary) */

:root {
  --red: #ff6a00;
  --red-bright: #ffb020;
  --red-dim: rgba(255, 106, 0, 0.45);
  --red-glow: rgba(255, 106, 0, 0.55);
  --glow-size: 180px;
  --bg-dark: #0a0602;
  --bg-panel: rgba(14, 8, 2, 0.72);
  --text: #f5ebe0;
  --text-dim: rgba(245, 235, 224, 0.55);
  --border: rgba(255, 106, 0, 0.35);
  --ok: #6eff9a;
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
  --radius: 6px;
  --transition: 0.25s ease;
  --nav-h: 64px;
  --accent-deep: #8b3a00;

  /* Module / project channel colors */
  --ch-tasks: #ff6a00;
  --ch-projects: #ffd060;
  --ch-shop: #2ec4ff;
  --ch-orders: #6eff9a;
  --ch-shelf: #b56bff;
  --ch-ideas: #8a9bb0;
  --ch-nanolab: #ff6a00;
  --ch-nanogui: #f0a020;
  --ch-sysbuild: #2ec4ff;
  --ch-qtos: #6eff9a;
  --ch-revival: #b56bff;
  --ch-intelgen: #ff3355;
  --ch-mayhem: #8a9bb0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-dark);
}

body.boot-active {
  overflow: hidden;
}

html.boot-skip #boot-screen,
html.boot-skip #loading-ui-screen {
  display: none !important;
}

html.boot-skip body.boot-active {
  overflow-x: hidden;
  overflow-y: auto;
}

html.boot-skip #site.hidden {
  display: block !important;
}

html.boot-skip #site {
  visibility: visible;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--red) rgba(10, 6, 2, 0.85);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(90deg, rgba(10, 6, 2, 0.95), rgba(24, 12, 2, 0.9));
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 50%, var(--accent-deep) 100%);
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--red-bright);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--red-glow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
