/* BASE — reset, CSS variables, body, noise, cursor, progress-bar */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #03030c;
  --bg2:   #060615;
  --bg3:   #0c0c22;
  --c:     #00f5ff;
  --p:     #b060ff;
  --o:     #ff7a1a;
  --g:     #0fce88;
  --text:  #f8fafc;
  --muted: #7a8fa8;
  --glass: rgba(255,255,255,0.06);
  --gb:    rgba(255,255,255,0.12);
  --grad:  linear-gradient(135deg, #00f5ff, #b060ff);
  --grad2: linear-gradient(135deg, #b060ff, #ff7a1a);
  --grad3: linear-gradient(135deg, #0fce88, #00f5ff);
  --font:  'Inter', sans-serif;
  --mono:  'JetBrains Mono', monospace;
  --r:     16px;
  --shadow: 0 25px 60px rgba(0,0,0,0.85);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: rgba(0,245,255,0.2); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--grad); }

#cursor-ring {
  position: fixed; pointer-events: none; z-index: 99999;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(0,245,255,0.7);
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.3s, height 0.3s, border-color 0.3s, box-shadow 0.3s;
  mix-blend-mode: difference;
  box-shadow: 0 0 12px rgba(0,245,255,0.35), inset 0 0 8px rgba(0,245,255,0.1);
}
#cursor-dot {
  position: fixed; pointer-events: none; z-index: 99999;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c); transform: translate(-50%, -50%);
  transition: transform 0.03s;
}
body:has(a:hover, button:hover) #cursor-ring {
  width: 60px; height: 60px;
  border-color: rgba(176,96,255,0.9);
  background: rgba(176,96,255,0.1);
  box-shadow: 0 0 20px rgba(176,96,255,0.5), inset 0 0 12px rgba(176,96,255,0.15);
}

#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 10000;
  height: 2px; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 18px var(--c), 0 0 40px rgba(0,245,255,0.5);
  transition: width 0.1s;
}
