/* ============================================================
   ORION DEMON — base: reset, tipografia, foco, movimento
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
[data-theme="light"] { color-scheme: light; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* fundo: constelação bem baixa + tinta roxa (o espaço visto de dentro do olho) */
.bg-space {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--void);
}
.bg-space::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bg-image) center / cover no-repeat;
  opacity: var(--bg-image-opacity);
}
.bg-space::after {
  content: ""; position: absolute; inset: 0;
  background: var(--bg-tint);
}

::selection { background: rgba(168, 85, 247, .35); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: padding-box; }

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--ink); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
img { display: block; max-width: 100%; }
code, kbd, pre, .mono { font-family: var(--font-mono); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

/* rótulo de sistema: Chakra Petch em caixa alta, tracking largo — a voz do SO */
.label, .sys {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}

/* eyebrow em vernáculo de código: // live, // core, // plugins */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}

/* foco visível sempre */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------- borda em gradiente (assinatura antiga, agora discreta) --------- */
.grad-border {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.grad-border::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: .32;
}

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop-in  { from { opacity: 0; transform: scale(.985); } }
@keyframes slide-right { from { transform: translateX(24px); opacity: 0; } }
@keyframes pulse-eye {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,85,.55), 0 0 10px 2px rgba(255,45,85,.55); }
  50%      { box-shadow: 0 0 0 5px rgba(255,45,85,0), 0 0 4px 1px rgba(255,45,85,.35); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
