/**
 * Dev & Sec - Base Styles & Reset
 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* Efeito radial de iluminação ambiental neon */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(93, 255, 59, 0.11), transparent 28%),
    radial-gradient(circle at 10% 70%, rgba(0, 217, 95, 0.07), transparent 25%);
  z-index: -2;
}

/* Malha de grade sutil estilo terminal cibernético */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -1;
}

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

button, input, textarea, select {
  font: inherit;
}

/* Container centralizado */
.wrap {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

/* Skip link de acessibilidade */
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--green);
  color: #021005;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

/* Animações de entrada com IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Respeito às preferências de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
