/* Resets and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Atmospheric Ambient Background Glows */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--color-glow) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%); /* subtle blue secondary glow */
  z-index: -1;
  pointer-events: none;
}

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

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

p {
  color: var(--color-text-muted);
}

/* Typography Utilities */
.text-primary { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-primary); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.title-xl {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.title-md {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.title-sm {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.text-lead {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: 140px 0;
}

.text-center {
  text-align: center;
}

/* Reduced Motion */
@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;
  }
}
