@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Serif+Display:wght@400&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='256' height='256' fill='%23000' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-behind);
  mix-blend-mode: overlay;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
}

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

h3 {
  font-size: var(--text-3xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

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

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

button {
  background: none;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

button:hover {
  border-color: var(--color-text);
  background-color: rgba(200, 245, 66, 0.05);
}

/* Custom cursor */
#cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-tooltip);
  transition: none;
}

#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 245, 66, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-tooltip) - 1);
  mix-blend-mode: screen;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Section spacing */
section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

section:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Utility classes */
.text-muted {
  color: var(--color-muted);
}

.text-accent {
  color: var(--color-accent);
}

.bg-surface {
  background-color: var(--color-surface);
}

.border {
  border: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

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

  section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}
