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

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

:root {
  /* Colors */
  --color-bg: #F8F9FA;
  --color-text: #000000;
  --color-white: #FFFFFF;
  --color-dark-from: #1A1A1A;
  --color-dark-to: #2D2D2D;
  --color-accent: #4CAF50;
  --color-accent-hover: #388E3C;
  --color-muted: #9E9E9E;
  --color-border: #EEEEEE;
  --color-input-bg: #F9F9F9;
  --color-problem-bg: #0F0F0F;

  /* Gradients */
  --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);

  /* Typography */
  --font-body: 'Montserrat', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  /* Border radius */
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Shadows */
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 8px 20px rgba(76, 175, 80, 0.40);
  --shadow-hero: 0 15px 30px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

p {
  line-height: 1.7;
}

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

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

ul, ol {
  list-style: none;
}

button, input {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-1);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }

/* Material Symbols sizing */
.material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}

/* Section base styles */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section-label--light {
  color: rgba(76, 175, 80, 0.85);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2, .section-title { font-size: 1.75rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
