/* ============================================
   Base Styles — Reset, Typography, Utilities
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

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

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

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

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__header h2 {
  margin-bottom: var(--space-4);
}

.section__header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--text-lg);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

/* Tag pills (tech labels) */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-primary-light);
  font-size: var(--text-sm);
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
