/* Reset Moderno & Regras Globais */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-size-adjust: 100%;
}

/* Classes de estabilização do motor de rolagem inercial Lenis */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Torchlight Analógico & Luz Háptica de Nanquim */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(197, 160, 89, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 15% 85%, rgba(217, 119, 6, 0.05) 0%, transparent 60%),
    radial-gradient(circle at var(--torch-x, 50%) var(--torch-y, 50%), rgba(223, 192, 128, 0.04) 0%, transparent 380px);
  pointer-events: none;
  z-index: 1;
}

/* Salto Acessível de Navegação */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Tipografia Base & Hierarquia */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

/* Subtítulos Técnicos e Etiquetas Monospaçadas */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
}

/* Redução de Movimento Acessível */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  body::before {
    display: none;
  }
}
