/* Tokens visuais do design (Meca 3D Lab Monitor) — verbatim dos dois .dc.html */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #0b0d0f;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #e8ecef;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #2a3038; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a424c; }
::-webkit-scrollbar-track { background: transparent; }
button, input { font-family: inherit; }

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes sweepx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes beat { 0%, 72%, 100% { transform: scale(1); } 12% { transform: scale(1.32); } 26% { transform: scale(1); } }
@keyframes gridpan { from { background-position: 0 0; } to { background-position: 44px 44px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

html { scroll-behavior: smooth; }
a { text-decoration: none; }

/* Telas de app com viewport fixo (gerador, painel): nav no topo + linha sidebar/main. */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(1300px 900px at 80% -12%, #12181e, #0b0d0f 62%);
}

/* Páginas roláveis (home, estáticas): a página cresce e rola normalmente.
   NÃO usar overflow-x aqui — quebra o position:sticky da nav do topo. */
.page {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(1300px 900px at 80% -12%, #12181e, #0b0d0f 62%);
}
