/* ============================================
   Global Styles — Typography, Layout, Utilities
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--text-primary);
  background-color: var(--surface-page);
  line-height: var(--line-height-normal);
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
.heading-1 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); }
.heading-2 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); }
.heading-3 { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); }
.heading-4 { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); }
.body-lg { font-size: var(--font-size-md); line-height: var(--line-height-relaxed); }
.body-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--color-accent); }
.text-primary-color { color: var(--color-primary); }
.text-center { text-align: center; }
.text-bold { font-weight: var(--font-weight-bold); }

/* Section Containers */
.section { padding: var(--space-10) var(--container-padding); }
.section--tinted { background-color: var(--surface-tinted); }
.section--primary { background-color: var(--color-primary); color: var(--text-on-primary); }
.section--accent { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: var(--text-on-accent); }
.section--gray { background-color: var(--color-gray-50); }

/* Section Header */
.section-header { margin-bottom: var(--space-6); text-align: center; }
.section-label {
  display: inline-block; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary);
  background: var(--color-primary-bg); padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); margin-bottom: var(--space-2);
}
.section-title { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: var(--space-2); line-height: var(--line-height-tight); }
.section-subtitle { font-size: var(--font-size-sm); color: var(--text-secondary); max-width: 320px; margin: 0 auto; line-height: var(--line-height-relaxed); }

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }

/* Border Radius */
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-scale-in { opacity: 0; transform: scale(0.92); transition: opacity var(--transition-slow), transform var(--transition-spring); }
.animate-scale-in.is-visible { opacity: 1; transform: scale(1); }

.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }

.divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); border-radius: var(--radius-full); margin: var(--space-3) auto; }
.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; }
