/* ================================================
   ESTILOS GLOBAIS — Reset, base e utilitários
   ================================================ */

/* ── Reset ───────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  cursor: none;
}

/* ── Seleção de texto ────────────────────────── */
::selection {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

/* ── Links ───────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

/* ── Imagens ─────────────────────────────────── */
img {
  max-width: 100%;
  display: block;
}

/* ── Listas ──────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ── Botões ──────────────────────────────────── */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: none;
}

/* ── Scrollbar customizada ───────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ── Container ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── Seções ───────────────────────────────────── */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
}

.section__number {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-wide);
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.section__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Botões ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--primary:hover {
  background: var(--color-text-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
}

.btn--outline:hover {
  border-color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* ── Tags ────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  letter-spacing: var(--ls-wide);
  transition: all var(--transition-fast);
}

.tag:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-muted);
}

.tag--small {
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
}

/* ── Cursor Canvas ───────────────────────────── */
.cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-cursor);
}

/* ── Cursor ──────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--transition-fast), height var(--transition-fast);
}

.cursor--hover .cursor__dot {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Loader ──────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  z-index: var(--z-loader);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__content {
  text-align: center;
}

.loader__name {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
