@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

/* ==========================================================================
   DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
  --bg-primary: #000000;
  --bg-warm-mid: #121212;
  --bg-dark: #070707;
  --bg-card: #151515;
  --bg-card-hover: #222222;
  --shadow-deep: #000000;
  
  --text-primary: #FFFFFF;
  --text-body: #E8ECEE;
  --text-secondary: #B0B9C0;
  --text-muted: #555555;
  
  --border-default: #1a1a1a;
  --border-hover: #2d2d2d;
  --glow-hover: rgba(255, 255, 255, 0.1);
  
  --accent-availability: #22C55E;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  --navbar-height: 80px;
}

/* ==========================================================================
   RESET & SYSTEM STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto !important; /* Managed by Lenis */
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: opacity 350ms ease;
  opacity: 1;
  /* Hide native cursor — replaced by custom JS cursor on desktop */
  cursor: none;
}

/* Restore default cursor on mobile (custom JS cursor is hidden on mobile) */
@media (max-width: 768px) {
  body, a, button, input, select, textarea {
    cursor: auto;
  }
}

/* Page Transition States */
body.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

/* ==========================================================================
   BACKGROUND TEXTURE & ATMOSPHERE
   ========================================================================== */

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

/* 2. Diagonal Scratch Lines */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 120px),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 180px);
  pointer-events: none;
}

/* 3. Radial Vignette Overlay */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 900;
}

h2 {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h3 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

p {
  font-weight: 400;
  color: var(--text-body);
}

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

button {
  cursor: none;
}

.mono-text {
  font-family: var(--font-mono);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  position: relative;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.thin-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-default);
  border: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-card-hover);
}

/* Lenis Custom Integration */
html.lenis {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis-stopped {
  overflow: hidden;
}
