/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ========== CUSTOM CURSOR ========== */
* { cursor: none; }
input, textarea { cursor: auto; }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), opacity 0.15s, width 0.2s, height 0.2s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(108, 99, 255, 0.4);
}

body.cursor--hover .cursor-dot {
  transform: translate(-50%, -50%) scale(2.5);
  background: var(--accent-2);
}
body.cursor--hover .cursor-ring {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0.1;
}

/* ========== SCROLL PROGRESS ========== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gradient-accent);
  width: 0%;
  z-index: 10001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ========== FOCUS ========== */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--accent-glow), 0 0 20px var(--accent-glow-2);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-soft);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
  transform: translateY(-3px);
}

/* ========== PILL ========== */
.pill {
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  display: inline-block;
  white-space: nowrap;
  background: rgba(108, 99, 255, 0.04);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
