/* ==========================================================================
   NULLPOINT™ — Global Design Tokens & Main Styles
   Brand: An independent organization dedicated to the advancement of absolutely nothing.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darkest: #040407;
  --bg-primary: #07070b;
  --bg-secondary: #0c0d14;
  --bg-tertiary: #131422;
  --bg-card: rgba(14, 15, 26, 0.75);
  --bg-card-hover: rgba(22, 24, 42, 0.85);
  --bg-glass: rgba(12, 13, 22, 0.65);
  
  /* Accents & Glows */
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-purple-deep: #6366f1;
  --accent-blue: #00dfd8;
  --accent-blue-deep: #0070f3;
  --accent-blue-glow: rgba(0, 223, 216, 0.3);
  --accent-violet: #a855f7;
  --accent-danger: #f43f5e;
  --accent-warning: #f59e0b;
  --accent-success: #10b981;
  
  /* Text & Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-highlight: #e2e8f0;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(139, 92, 246, 0.3);
  --border-focus: rgba(0, 223, 216, 0.4);
  
  /* Typography Families */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', SFMono-Regular, Consolas, monospace;
  
  /* Transitions & Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout Spacing */
  --nav-height: 80px;
  --container-max: 1360px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Z-Indices */
  --z-bg: -10;
  --z-canvas: -1;
  --z-content: 10;
  --z-floating: 20;
  --z-header: 100;
  --z-modal: 500;
  --z-toast: 800;
  --z-cursor: 9998;
  --z-loader: 9999;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* Handled smoothly by Lenis */
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #1e1f33;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #ffffff;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  z-index: var(--z-content);
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 0 6rem;
  overflow: hidden;
}

@media (max-width: 991px) {
  .section-hero {
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + 1.5rem) 0 4rem;
    min-height: auto;
  }
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.section-tag.cyan {
  background: rgba(0, 223, 216, 0.08);
  border-color: rgba(0, 223, 216, 0.25);
  color: var(--accent-blue);
}

.section-tag.cyan::before {
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.section-title {
  font-size: clamp(1.85rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 800px;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a855f7 70%, #00dfd8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

/* Background Layers */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}

.bg-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-bg);
  background: 
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 223, 216, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(7, 7, 11, 0.95) 0%, #040407 100%);
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-bg);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

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