/* === Global Reset & Typography === */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #05060a;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(122, 252, 255, 0.05) 25%, rgba(122, 252, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(122, 252, 255, 0.05) 75%, rgba(122, 252, 255, 0.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(122, 252, 255, 0.05) 25%, rgba(122, 252, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(122, 252, 255, 0.05) 75%, rgba(122, 252, 255, 0.05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  background-position: 0 0;
  animation: gridShift 20s linear infinite;
  position: relative;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  margin: 0;
}

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

button {
  font-family: inherit;
}


.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.08;
  z-index: 1;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence baseFrequency="0.7" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

/* === Main Layout === */

header {
  position: relative;
  z-index: var(--z-content);
  padding: 60px 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  max-width: 1100px;
  margin: 0 auto;
  user-select: none;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-md);
  position: relative;
  z-index: var(--z-content);
}

footer {
  position: relative;
  z-index: var(--z-content);
  max-width: 1100px;
  margin: var(--spacing-2xl) auto 80px;
  padding: var(--spacing-md);
  text-align: center;
}

/* === Responsive === */

@media (max-width: 600px) {
  header {
    padding-top: 40px;
  }
}

@media (max-width: 1000px) {
  /* Grid adjustments in components.css */
}
