/* ============================================
   SNAPPENED — Design System
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  /* Colors */
  --snp-black: #000;
  --snp-white: #fff;
  --snp-gray-100: #f5f5f5;
  --snp-gray-200: #e0e0e0;
  --snp-gray-300: #b0b0b0;
  --snp-gray-400: #808080;
  --snp-gray-500: #606060;
  --snp-gray-600: #404040;
  --snp-gray-700: #2a2a2a;
  --snp-gray-800: #1a1a1a;
  --snp-gray-900: #0d0d0d;
  --snp-accent: #ff4c00;
  --snp-accent-hover: #ff6a2a;

  /* Typography */
  --snp-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --snp-font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --snp-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Type Scale — responsive clamp */
  --snp-text-xs: clamp(0.625rem, 0.55rem + 0.25vw, 0.75rem);      /* 10–12px */
  --snp-text-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);         /* 12–14px */
  --snp-text-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);           /* 14–16px */
  --snp-text-md: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);              /* 16–20px */
  --snp-text-lg: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);             /* 20–28px */
  --snp-text-xl: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);             /* 24–40px */
  --snp-text-2xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);                /* 32–56px */
  --snp-text-3xl: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);              /* 40–80px */
  --snp-text-hero: clamp(3rem, 1.5rem + 5.5vw, 8rem);               /* 48–128px */

  /* Spacing — 8-point grid with clamp */
  --snp-space-xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);     /* 4–8px */
  --snp-space-sm: clamp(0.5rem, 0.4rem + 0.4vw, 1rem);        /* 8–16px */
  --snp-space-md: clamp(1rem, 0.8rem + 0.8vw, 2rem);           /* 16–32px */
  --snp-space-lg: clamp(2rem, 1.5rem + 1.5vw, 4rem);           /* 32–64px */
  --snp-space-xl: clamp(3rem, 2rem + 3vw, 6rem);               /* 48–96px */
  --snp-space-2xl: clamp(4rem, 2.5rem + 5vw, 10rem);           /* 64–160px */

  /* Easing */
  --snp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --snp-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --snp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --snp-duration-fast: 0.2s;
  --snp-duration-normal: 0.4s;
  --snp-duration-slow: 0.8s;

  /* Z-index scale */
  --snp-z-base: 1;
  --snp-z-content: 10;
  --snp-z-overlay: 100;
  --snp-z-header: 200;
  --snp-z-cursor: 300;
  --snp-z-player: 400;
  --snp-z-preloader: 500;

  /* Layout */
  --snp-container-max: 1400px;
  --snp-container-padding: clamp(1rem, 0.5rem + 2vw, 3rem);
}

/* --- Base Styles --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--snp-font-body);
  font-size: var(--snp-text-base);
  line-height: 1.6;
  color: var(--snp-white);
  background-color: var(--snp-black);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--snp-font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--snp-text-hero); }
h2 { font-size: var(--snp-text-3xl); }
h3 { font-size: var(--snp-text-2xl); }
h4 { font-size: var(--snp-text-xl); }

p {
  font-size: var(--snp-text-md);
  line-height: 1.7;
  color: var(--snp-gray-300);
}

a {
  color: var(--snp-white);
  text-decoration: none;
  transition: color var(--snp-duration-fast) var(--snp-ease-out);
}

a:hover {
  color: var(--snp-accent);
}

/* --- Utility --- */
.snp-container {
  width: 100%;
  max-width: var(--snp-container-max);
  margin: 0 auto;
  padding: 0 var(--snp-container-padding);
}

.snp-label {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--snp-gray-400);
}

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

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

.snp-divider {
  width: 100%;
  height: 1px;
  background: var(--snp-gray-800);
  border: none;
}

/* --- Selection --- */
::selection {
  background: var(--snp-accent);
  color: var(--snp-white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--snp-black);
}

::-webkit-scrollbar-thumb {
  background: var(--snp-gray-700);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--snp-gray-500);
}

/* --- Responsive images/videos --- */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
