/* ==========================================================================
   NEXO MARKETING — BASE & RESET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--color-deep-black);
  color: var(--color-white);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-muted-green);
  background-color: var(--color-deep-black);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Cyber Grid Texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(27, 58, 27, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 58, 27, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 85%);
}

/* Sophisticated ambient glow spots */
.ambient-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100vw);
  height: 650px;
  background: radial-gradient(circle at 50% 0%, rgba(102, 255, 0, 0.14) 0%, rgba(6, 16, 6, 0.4) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Custom Cyber Selection */
::selection {
  background-color: var(--color-neon-green);
  color: var(--color-deep-black);
  text-shadow: none;
}

/* Custom Neon Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--color-deep-black);
  border-left: 1px solid var(--color-border-green);
}

::-webkit-scrollbar-thumb {
  background: var(--color-card-green);
  border: 1px solid var(--color-border-green);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neon-green);
  box-shadow: 0 0 10px var(--color-neon-green);
}

/* Accessibility Focus Rings */
:focus-visible {
  outline: 2px solid var(--color-neon-green);
  outline-offset: 3px;
}

/* High Contrast & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
