/* ============================================================
   LUVO — Design System (tokens + base)
   Estética: Linear / Vercel / Stripe / Notion.
   Minimalismo premium, geometria precisa, espaço negativo.
   Este arquivo é a "fonte da verdade" dos tokens (equivalente
   ao tailwind.config / theme.ts). É carregado ANTES de app.css.
   ============================================================ */

:root {
  /* ---- Backgrounds ---- */
  --bg-primary:   #000000;
  --bg-secondary: #0A0A0A;
  --bg-tertiary:  #111111;
  --bg-elevated:  rgba(10, 10, 10, 0.6);

  /* ---- Bordas ---- */
  --border-default:  #18181B;
  --border-strong:   #27272A;
  --border-stronger: #3F3F46;

  /* ---- Texto ---- */
  --text-primary:   #FFFFFF;
  --text-secondary: #D4D4D8;
  --text-tertiary:  #A1A1AA;
  --text-muted:     #52525B;
  --text-disabled:  #3F3F46;

  /* ---- Acento (marca) — usar com MUITA moderação ---- */
  --accent:      #00FF88;
  --accent-glow: rgba(0, 255, 136, 0.5);

  /* ---- Estados ---- */
  --success: #00FF88;
  --warning: #F59E0B;
  --error:   #EF4444;
  --info:    #3B82F6;

  /* ---- Raios ---- */
  --radius-sm:   6px;   /* buttons, inputs */
  --radius-md:   12px;  /* cards */
  --radius-lg:   16px;  /* modais */
  --radius-full: 999px; /* pílulas/badges */

  /* ---- Tipografia ---- */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ---- Transições ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s ease;

  /* ---- Layout ---- */
  --sidebar-w: 244px;
  --container-max: 1152px;

  /* ---- Mapeamento p/ tokens internos do Bootstrap ---- */
  --bs-body-bg: var(--bg-primary);
  --bs-body-color: var(--text-secondary);
  --bs-border-color: var(--border-strong);
  --bs-primary: var(--text-primary);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
  min-height: 100vh;
}

/* ---- Tipografia ---- */
h1, h2, h3, h4, h5 { color: var(--text-primary); margin: 0; }
h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }

.display {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text-primary);
}

small, .text-small { font-size: 13px; color: var(--text-tertiary); }

a { color: var(--text-secondary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text-primary); }

/* ---- Mono label (rótulo de seção/categoria) ---- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---- Utilitários de cor de texto ---- */
.text-primary-ds   { color: var(--text-primary)   !important; }
.text-secondary-ds { color: var(--text-secondary) !important; }
.text-tertiary-ds  { color: var(--text-tertiary)  !important; }
.text-muted-ds     { color: var(--text-muted)     !important; }
.text-accent       { color: var(--accent)         !important; }

/* ============================================================
   ASSINATURA DA MARCA — ponto verde
   ============================================================ */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  flex: 0 0 auto;
}
.status-dot--online  { background: var(--accent);  box-shadow: 0 0 6px var(--accent-glow); }
.status-dot--warning { background: var(--warning); }
.status-dot--error   { background: var(--error); }
.status-dot--idle    { background: var(--text-muted); }
.status-dot--live    { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); animation: softPulse 2.4s ease-in-out infinite; }

@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.92); }
}

/* ---- Brand (luvo●) ---- */
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); }
.brand__dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--accent); align-self: center; box-shadow: 0 0 8px var(--accent-glow); animation: softPulse 2.4s ease-in-out infinite; }

/* ============================================================
   GRID SUTIL DE FUNDO (hero/dashboard)
   ============================================================ */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(39,39,42,0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(39,39,42,0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-stronger); }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--bg-primary); }

/* ============================================================
   SELEÇÃO DE TEXTO
   ============================================================ */
::selection { background: var(--accent); color: #000; }
