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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-600); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--primary-700); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}
h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 600; }

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

::selection { background: var(--primary-100); color: var(--primary-900); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--container-pad); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--container-pad); }

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

/* Section Headings */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-600);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}
.section-desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}
.section-header {
  margin-bottom: var(--space-12);
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-brand { color: var(--primary-600); }

@media (max-width: 1024px) {
  .section { padding: var(--space-16) 0; }
}
@media (max-width: 640px) {
  .section { padding: var(--space-12) 0; }
}
