We proceed to develop an intuitive understanding of the inner product by appealing to a geometric picture. We then proceed to apply straightforward vector algebra.
First, we draw two vectors $\vec A$ and $\vec B$ that originate at the origin. The vector $\vec A-\vec B$ is the vector from $\vec B$ to $\vec A$. Therefore, the three vectors $\vec A$, $\vec B$, and $\vec A-\vec B$ form a triangle.
From the Law of Cosines, we have
$$|\vec A|^2+|\vec B|^2-2|\vec A|\,|\vec B|\cos(\theta)=|\vec A-\vec B|^2 \tag 1$$
where $\theta\in [0,\pi]$ is the angle between $\vec A$ and $\vec B$.
But note that
$$\begin{align}
|\vec A-\vec B|^2=&(A_1-B_1)^2+(A_2-B_2)^2+(A_3-B_3)^2\\\\
&=\color{red}{(A_1^2+A_2^2+A_3^2)}+\color{green}{(B_1^2+B_2^2+B_3^2)}-2\color{blue}{(A_1B_1+A_2B_2+A_3B_3)}\\\\
&=\color{red}{|\vec A|^2}+\color{green}{|\vec B|^2}-2\color{blue}{(\vec A\cdot \vec B)}\tag2
\end{align}$$
Using $(1)$ in $(2)$ yields
$$\vec A\cdot \vec B=|\vec A|\,|\vec B|\cos(\theta)\tag 3$$
Finally, note from $(3)$ that if $\vec A\cdot \vec B=0$, then $\cos(\theta)=0$, so that $\theta =\pi/2$, and thus $\vec A$ and $\vec B$ are orthogonal.