/* 
 * Global Resets and Premium Base Styles
 */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Vercel-style subtle dot grid */
  background-image: radial-gradient(hsla(var(--color-primary-blue-h), 90%, 50%, 0.04) 1.2px, transparent 0);
  background-size: 28px 28px;
  background-attachment: scroll;
}

/* Custom Scrollbar for sleek aesthetic */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: hsla(var(--color-primary-blue-h), 10%, 80%, 1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--color-primary-blue-h), 30%, 70%, 1);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  max-width: var(--content-max-width);
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary-teal-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-default);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.max-w-3xl { max-width: 768px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Announcement Badge */
.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsla(var(--color-primary-blue-h), 90%, 50%, 0.04);
  border: 1px solid hsla(var(--color-primary-blue-h), 90%, 50%, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-blue);
  margin-bottom: var(--space-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.announcement-badge span.badge-pill {
  background: var(--color-primary-blue);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Premium Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Animation Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 
 * Global Responsiveness 
 */
@media (max-width: 992px) {
  h1 { font-size: calc(var(--text-4xl) * 0.9); }
  h2 { font-size: calc(var(--text-3xl) * 0.9); }
  h3 { font-size: calc(var(--text-2xl) * 0.9); }
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }
  
  body {
    font-size: 15px; /* slightly smaller base text for mobile readability */
  }
}
