/* ============================================================
   n4n · EFFECTS — radii, shadows, glows, blur, motion
   Futuristic + smooth: generous rounding, soft elevation,
   accent glows, glassy blur, buttery easing.
   ============================================================ */
:root {
  /* Corner radii */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 999px;

  /* Elevation shadows (tuned for light canvas) */
  --shadow-sm:  0 1px 2px rgba(16,24,40,.06);
  --shadow-md:  0 4px 14px -4px rgba(16,24,40,.10);
  --shadow-lg:  0 12px 32px -8px rgba(16,24,40,.14);
  --shadow-xl:  0 24px 56px -12px rgba(16,24,40,.20);
  --shadow-pop: 0 8px 28px -6px rgba(16,24,40,.16), 0 0 0 1px var(--n-line);

  /* Accent glows */
  --glow-accent: 0 0 0 1px var(--n-accent-soft), 0 8px 22px -8px #2f6fed73;
  --glow-focus:  0 0 0 3px var(--n-accent-soft);

  /* Inset hairline (top edge highlight) */
  --edge-top: inset 0 1px 0 0 #ffffffb3; /* @kind shadow */

  /* Blur */
  --blur-sm: blur(6px); /* @kind other */
  --blur-md: blur(16px); /* @kind other */
  --blur-lg: blur(28px); /* @kind other */

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-1: 120ms; /* @kind other */
  --dur-2: 200ms; /* @kind other */
  --dur-3: 320ms; /* @kind other */
  --dur-4: 480ms; /* @kind other */
}

/* Dark theme: shadows deepen (true black, higher alpha), the top-edge
   highlight becomes a faint light seam, and the accent glow strengthens —
   glow carries elevation on a dark canvas the way shadows do on light. */
:root[data-theme="dark"] {
  --shadow-sm:  0 1px 2px rgba(0,0,0,.40);
  --shadow-md:  0 4px 14px -4px rgba(0,0,0,.50);
  --shadow-lg:  0 12px 32px -8px rgba(0,0,0,.55);
  --shadow-xl:  0 24px 56px -12px rgba(0,0,0,.60);
  --shadow-pop: 0 8px 28px -6px rgba(0,0,0,.55), 0 0 0 1px var(--n-line);

  --glow-accent: 0 0 0 1px var(--n-accent-soft), 0 8px 26px -6px #5b8df680;
  --glow-focus:  0 0 0 3px var(--n-accent-soft);

  --edge-top: inset 0 1px 0 0 #ffffff14; /* @kind shadow */
}
