/* ==========================================================================
   Base & Resets - APEX
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: initial;
  background-color: var(--clr-bg);
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-tech);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
  /* Carbon fiber / Mesh background texture */
  background-image: 
    linear-gradient(rgba(11, 12, 16, 0.95), rgba(11, 12, 16, 0.95)),
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(31, 40, 51, 0.2) 2px, rgba(31, 40, 51, 0.2) 4px);
}

/* Custom Selection */
::selection {
  background-color: var(--clr-red);
  color: var(--clr-text);
}

/* Scrollbar - Mechanical */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
  border-left: 1px solid var(--clr-steel);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-red);
  border-radius: 0; /* Sharp edges */
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-text);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--clr-text);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  color: var(--clr-text-muted); /* Cyan telemetry text */
  max-width: 60ch;
}

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

img, video {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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