@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }
}

@layer base {
  :root {
    /* Colors - OKLCH for vibrant, uniform hues */
    --bg-color: oklch(15% 0.02 260);
    --surface-color: oklch(20% 0.04 260 / 0.7);
    --primary-color: oklch(65% 0.2 280);
    --secondary-color: oklch(60% 0.25 310);
    --accent-color: oklch(75% 0.15 190);
    --text-primary: oklch(98% 0.01 260);
    --text-secondary: oklch(85% 0.03 260);
    
    /* Spacing & Borders */
    --radius-lg: 24px;
    --radius-md: 12px;
    --gap-xl: 4rem;
    --gap-lg: 2rem;
    --gap-md: 1rem;

    /* Effects */
    --glass-bg: blur(12px) saturate(180%);
    --shadow-glow: 0 0 20px oklch(65% 0.2 280 / 0.3);
    --shadow-deep: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  }

  body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
      radial-gradient(circle at 0% 0%, oklch(30% 0.1 280 / 0.15) 0%, transparent 50%),
      radial-gradient(circle at 100% 100%, oklch(30% 0.1 310 / 0.15) 0%, transparent 50%);
  }

  /* Noise Texture Overlay */
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  }

  h1, h2, h3 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
}

@layer utilities {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap-md);
  }

  .text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
