/* ═══════════════════════════════════════════
   DIGIVOLTA DESIGN SYSTEM — Brutalist Precision
   ═══════════════════════════════════════════ */

/* Custom Properties */
:root {
  /* Colors */
  --c-primary: #0A4BFF;
  --c-primary-light: #3D6FFF;
  --c-primary-dark: #0036CC;
  --c-accent: #C6F84E;
  --c-accent-glow: rgba(198, 248, 78, 0.3);
  --c-bg: #FAFAF7;
  --c-bg-dark: #0A0A0A;
  --c-bg-darker: #050505;
  --c-surface: #F0F0EC;
  --c-surface-dark: #141414;
  --c-text: #0A0A0A;
  --c-text-muted: #6B6B6B;
  --c-text-light: #999;
  --c-text-on-dark: #FAFAF7;
  --c-text-on-dark-muted: rgba(250,250,247,.5);
  --c-border: #E5E5E0;
  --c-border-dark: rgba(255,255,255,.08);

  /* Typography */
  --f-display: 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale (8px base) */
  --s-1: 0.25rem;  /* 4px */
  --s-2: 0.5rem;   /* 8px */
  --s-3: 0.75rem;  /* 12px */
  --s-4: 1rem;     /* 16px */
  --s-5: 1.5rem;   /* 24px */
  --s-6: 2rem;     /* 32px */
  --s-7: 3rem;     /* 48px */
  --s-8: 4rem;     /* 64px */
  --s-9: 6rem;     /* 96px */
  --s-10: 8rem;    /* 128px */

  /* Shadows — multi-layer */
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 2px 8px rgba(10,10,10,.03);
  --shadow-md: 0 2px 4px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06), 0 24px 48px rgba(10,10,10,.04);
  --shadow-lg: 0 4px 8px rgba(10,10,10,.04), 0 16px 40px rgba(10,10,10,.08), 0 48px 80px rgba(10,10,10,.06);
  --shadow-glow: 0 0 40px rgba(10,75,255,.15), 0 0 80px rgba(10,75,255,.08);
  --shadow-accent: 0 0 30px var(--c-accent-glow), 0 0 60px rgba(198,248,78,.1);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Typography Scale */
.t-display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.t-display-xl { font-size: clamp(3.5rem, 10vw, 8rem); }
.t-display-lg { font-size: clamp(2.5rem, 6vw, 5rem); }
.t-display-md { font-size: clamp(2rem, 4vw, 3.5rem); }
.t-display-sm { font-size: clamp(1.5rem, 3vw, 2.5rem); }

.t-body { font-family: var(--f-body); }
.t-body-lg { font-size: 1.125rem; line-height: 1.7; }
.t-body-md { font-size: 1rem; line-height: 1.6; }
.t-body-sm { font-size: 0.875rem; line-height: 1.5; }

.t-mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Custom Cursor (Desktop) */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
  mix-blend-mode: difference;
}
.cursor-dot.is-hover {
  width: 48px;
  height: 48px;
  background: var(--c-accent);
  mix-blend-mode: normal;
  opacity: 0.6;
}

/* Utility */
.w { max-width: 1320px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.w-narrow { max-width: 900px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* Section Spacing */
.section { padding: clamp(4rem, 10vw, 10rem) 0; }
.section-dark { background: var(--c-bg-dark); color: var(--c-text-on-dark); }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile: disable custom cursor */
@media (max-width: 768px) {
  .cursor-dot { display: none; }
}
