:root {
  /* Cores */
  --bg:            #0a0a0a;
  --bg-elevated:   #141414;
  --yellow:        #FFE500;
  --text:          #e5e5e5;
  --text-muted:    #888;
  --text-dim:      #555;
  --border:        #2a2a2a;
  --border-strong: #3a3a3a;
  --danger:        #ff3b3b;
  --success:       #00d97e;
  --warning:       #ffa500;

  /* Tipografia */
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: 'Archivo Black', 'Inter', sans-serif;

  /* Escala de texto */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   16px;
  --text-lg:   20px;
  --text-xl:   28px;
  --text-2xl:  40px;
  --text-3xl:  64px;

  /* Espaçamento */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-8:  48px;
  --space-10: 64px;

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 56px;
  --banner-height: 40px;

  /* Zero arredondamento — exceção inputs/botões */
  --radius-input: 2px;

  --transition: 100ms ease;
}

html,
body {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Ring de foco acessível */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Visualmente oculto mas acessível a leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Base ─────────────────────────────────────────────────── */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── Tipografia ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--yellow);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover { opacity: 0.7; }

/* ─── Forms base ────────────────────────────────────────────── */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  width: 100%;
  font-family: var(--font-mono);
  color: var(--text);
  transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: var(--yellow);
}

button {
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ─── Section markers (// LABEL) ────────────────────────────── */
.section-marker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

/* ─── Utilitários ───────────────────────────────────────────── */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
