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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--tx-primary);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#how-it-works,
#faq {
  scroll-margin-top: 80px;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-page);
}

/* Background grid glow overlay */
.site-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Skip link for screen reader accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-standard);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

p {
  color: var(--tx-secondary);
  line-height: var(--lh-relaxed);
  max-width: 70ch;
}

h1, h2, h3, h4 {
  color: var(--tx-primary);
  line-height: var(--lh-snug);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Form element defaults */
input, select, textarea, button {
  font-family: inherit;
  font-size: var(--fs-base);
}

/* Hidden attribute handling */
[hidden] {
  display: none !important;
}

/* Inline SVG helpers */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
