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

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: var(--bg-mesh);
  background-size: 80px 80px; /* Blueprint Grid Size */
  background-attachment: fixed;
}

/* Global Content Wrapper to definitively kill mobile horizontal scroll bugs */
main {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* App Wrapper to catch any rogue overflows */
#app-wrap {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Global Background Gloss & Movement */
.bg-gloss {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  width: 90vw;
  height: 90vh;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  opacity: 0.6;
}

.bg-glow--1 {
  top: -20%;
  left: -20%;
  background: var(--bg-glow-1);
}

.bg-glow--2 {
  bottom: -20%;
  right: -20%;
  background: var(--bg-glow-2);
}

/* Global Section Watermarks */
.bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(15rem, 25vw, 35rem);
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  letter-spacing: -0.05em;
  font-family: 'Outfit', sans-serif;
}



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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
  width: 100%;
  overflow: hidden; /* Prevent watermarks/glows from leaking */
  will-change: transform;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

.highlight {
  color: var(--accent-primary);
}

/* Custom Scrollbar for better integration */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Base Button Styles */
.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}
