/* Reset & Base Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.75rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.2rem, 1.75rem);
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.2rem;
}

p {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-light);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-primary);
  background-color: var(--purple-light);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(109, 40, 217, 0.12);
}

.section-dark .eyebrow {
  color: var(--blue-sky);
  background-color: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.section-subtitle {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.25rem);
}

/* Gradient Text */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Accessibility: prefers-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;
  }
}
