*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2000;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--emerald-500);
  color: white;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.55);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--emerald-500);
  color: white;
}


::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-700);
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


.animated-gradient {
  background: linear-gradient(90deg, #6EE7B7, #34D399, #10B981, #34D399, #6EE7B7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
}

.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.875rem; }


/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
  h1 { font-size: clamp(2.25rem, 4vw, 2.75rem); }
  h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
  h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
  h4 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
}

/* Mobile and below (max-width: 640px) */
@media (max-width: 640px) {
  h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
  h2 { font-size: clamp(1.5rem, 4.5vw, 1.875rem); }
  h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
  h4 { font-size: clamp(1.1rem, 3vw, 1.25rem); }
}
